butikisabella Posted October 8, 2013 Share Posted October 8, 2013 Hello, i've searched the internet but i couldn't find a solution for this problem. Fatal error: Call to undefined method Tools::nl2br() in home1/kaastrup/public_html/classes/db/Db.php on line 627 You can find it on butikisabella.com I tried several methods, including adding some stuff in db.php and also Tools14.php ... None of them worked I would appreciate if someone would point out some options i could try Best regards Butikisabella. Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 hello i've got one question: this issue appeared without any reason? or maybe you changed something? or updated? Link to comment Share on other sites More sharing options...
tuk66 Posted October 9, 2013 Share Posted October 9, 2013 It looks like you are using an old /classes/Tools.php version. The Tools::nl2br() function is only in v1.5.*. Link to comment Share on other sites More sharing options...
butikisabella Posted October 9, 2013 Author Share Posted October 9, 2013 So should i just replace the Tools.php? or how would i update it if i cannot access the site safely Link to comment Share on other sites More sharing options...
tuk66 Posted October 9, 2013 Share Posted October 9, 2013 The questions are what is your PrestaShop version and what happened with the Tools.php. Link to comment Share on other sites More sharing options...
butikisabella Posted October 11, 2013 Author Share Posted October 11, 2013 hello i've got one question: this issue appeared without any reason? or maybe you changed something? or updated? hello i ordert a auction-modul from Prestashop, and put it on my website, and after that we updatet to v.5,0 but we dident now that it's been updatet and after that it all was gone, you can try looking at the site www.butikisabella.com, i hope yuo can help us. regarding joan, Butikisabella. Link to comment Share on other sites More sharing options...
butikisabella Posted October 14, 2013 Author Share Posted October 14, 2013 Solved this problem by going in /public_html/classes/Tools.php and adding this: /** Convert \n and \r\n and \r to <br /> * * @param string $string String to transform * @return string New string */ public static function nl2br($str) { return str_replace(array("\r\n", "\r", "\n"), '<br />', $str); } That solved THIS issue.Now we got another issue.Fatal error: Call to undefined method Tools::getSafeModeStatus() in /home1/kaastrup/public_html/config/smarty.config.inc.php on line 35Any idea any one`? Regards Dániel, Butikisabella Link to comment Share on other sites More sharing options...
tuk66 Posted October 14, 2013 Share Posted October 14, 2013 I would not go this way. You probably have mixed files from more PrestaShop versions and similar issues can happen many many times. Link to comment Share on other sites More sharing options...
Recommended Posts