krutu Posted September 10, 2014 Share Posted September 10, 2014 Hi, My website is using Prestashop v. 1.5.2.0 since several month and all was ok 'til today. On the top of the main page of my website an error message appears : "Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/toxicote/public_html/shop/classes/Tools.php on line 982" As you can see through www.toxicotest.com Could you please help me to fix that ! I would like an issue without upgrading Prestashop to v 1.6. Thanks a lot for your help !! Link to comment Share on other sites More sharing options...
krutu Posted September 12, 2014 Author Share Posted September 12, 2014 nobody can help me ? Link to comment Share on other sites More sharing options...
musicmaster Posted September 12, 2014 Share Posted September 12, 2014 You have the message "Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/toxicote/public_html/shop/classes/Tools.php on line 982" repeated a few dozen times at the top of your page. Now it is very unlikely that anyone will download Prestashop version 1.5.2 and look for you at that Tools.php file on line 982. So I would suggest that you have a look yourself and that you place a copy of the function in which that happens with line 982 highlighted. If you know a little bit about PHP you might also place an echo command before that line 982 to see which text causes that trouble. There may also be a more quick and dirty way to get rid of this warning. As it is just a warning and no error the site might still work if you increase the php error level so that warnings are no longer displayed. It looks like the site is now in development mode. But this is a matter of trying... Link to comment Share on other sites More sharing options...
Recommended Posts