Jump to content

Tools.php error


Recommended Posts

Hello,

 

I happen to have a problem with tools.php

 

This error is filling up the error log and taking vast amounts of storage space:

PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/.../public_html/prestashop/prestashop/classes/Tools.php on line 1150

I have this code on line 1150:

$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str);

Any idea about what could be causing it ?

 

 

Thanks in advance,

Edited by icee (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

It would be of much help if I could find out from what this code came from (original prestashop code or modules).

 

I found something related to this: LINK

 

 

Also, can anyone explain to me what is the function of tools.php in Prestashop ? I did not found any documentation on this.

 

 

 

Regards,

Edited by icee (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...