Jump to content

preg_replace - Compilation failed ?


Recommended Posts

Hello Guys,

I have a PS 1.5.6.2 installation, and I just discovered that my error_log file is huge (3,5gb) with the same error:

 

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

 

What is the problem here, and how do I deal with it ?

 

Thanks.

Link to comment
Share on other sites

  • 6 months later...

PS 1.5.6.2

 

Just got the same thing this morning, no idea what had changed but the error logs were huge. What seems to cure the problem with no code changes is to go to Backoffice ->Preferences->SEO & URL's. On "Accented URL", make sure this is switched OFF. I'm sure ours was switched off, but when I checked it was on. The error in the logs was appearing almost every second, but after switching this option off, no more errors were written to the log. Very strange indeed.

Link to comment
Share on other sites

×
×
  • Create New...