Jump to content

Help needed with prestashop! Fatal error: Call to undefined method Tools::nl2br()


Recommended Posts

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

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

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 35

Any idea any one`? :)

 

 

Regards Dániel, Butikisabella :)

 

Link to comment
Share on other sites

×
×
  • Create New...