junior_pat Posted May 11, 2019 Share Posted May 11, 2019 Hello, I have two warning messages : 1. Warning: preg_match() [function.preg-match.php]: The /e modifier is no longer supported, use preg_replace_callback instead in /home/sites/hebfree.org/aux-naturelles/public_html/shop/classes/seo.class.php on line 637 Warning: preg_match() [function.preg-match.php]: The /e modifier is no longer supported, use preg_replace_callback instead in /home/sites/hebfree.org/aux-naturelles/public_html/shop/classes/seo.class.php on line 637 When I go in public_html/shop/classes/seo.class.php on line 637, I have that : if (preg_match('#^(.*/)?[\w]+.[a-z]+\?_a\=([\w]+)(?:\&(amp;)?([\w\[\]]+)\=([\w\-\_]+)([^"\']*))$#ieS', $path, $match)) { 2. File: [controller.admin.pre_session.inc.php] Line: [26] "SET @@time_zone = 'Europe/Berlin'" - Unknown or incorrect time zone: 'Europe/Berlin' I have that : $GLOBALS['db']->misc("SET @@time_zone = '".$time_zone."'"); Whenever a page is refreshed or I go on another page, these errors are registered in the logs errors. My question is how to remove these two warning? What should I change because I can not see? Thank you for your help. Link to comment Share on other sites More sharing options...
bsmither Posted May 11, 2019 Share Posted May 11, 2019 The first warning is caused by the server environment running a more recent version of PHP that is too far ahead of the version of CubeCart. The code was changed to use callbacks several versions ago. The second warning is caused by the server environment having a database server that has not populated a system table that holds timezone information. A system technician will need to run a database server script to populate that table. The latest version of CubeCart has a work-around for this issue. I note that the first warning is caused by using a version of the CubeCart codebase that is many versions past. Yet, the second warning is caused by using a very recent version of CubeCart. I just checked CC625's file seo.class.php, and the modifier is there. So, this needs looking at. Link to comment Share on other sites More sharing options...
junior_pat Posted May 11, 2019 Author Share Posted May 11, 2019 Hello, Thank you for your message. I upgrade each time with the setup file and update to the most current version. I have the 6.2.5. Should I redo the update? Link to comment Share on other sites More sharing options...
bsmither Posted May 11, 2019 Share Posted May 11, 2019 No. You have a correct installation of CC625. An issue has been posted to the Github. Link to comment Share on other sites More sharing options...
junior_pat Posted May 12, 2019 Author Share Posted May 12, 2019 Hello, For the first warining it's ok whith your solution (Github) For the second warning. I have now two warning : File: [controller.admin.pre_session.inc.php] Line: [26] "SET @@time_zone = Europe/Berlin'" - Unknown or incorrect time zone: 'Europe/Berlin' File: [controller.index.inc.php] Line: [27] "SET @@time_zone = 'Europe/Berlin'" - Unknown or incorrect time zone: 'Europe/Berlin' Can you tell me which table I have to fill in the time zone? Thank's for help Link to comment Share on other sites More sharing options...
bsmither Posted May 12, 2019 Share Posted May 12, 2019 If you are the server administrator, then there are procedures to follow that are discussed on various sites. Please make an Internet search for mysql timezone table. If you are being hosted or managed by a hosting company, then please submit a service ticket to them to get the timezones system table populated. As a normal user of the database, you do not have the necessary permission to perform this procedure. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.