Billy Posted March 16, 2019 Share Posted March 16, 2019 Let me start with a snap of the issue. As you can see the site just kinda squeezed together in the middle. lol --- 301 files left to upgrade. All files upgraded. Now upgrading database... [Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " 500 Server Error Oops, something went wrong. Try to refresh this page or feel free to contact us if the problem persists. " Link to comment Share on other sites More sharing options...
Billy Posted March 16, 2019 Author Share Posted March 16, 2019 (edited) I found this in the admin/autoupgrade folder error_log. [16-Mar-2019 09:51:15 UTC] PHP Fatal error: Class 'Tools14' not found in /home/xxx/clone1.xxx.com/Admin/autoupgrade/ajax-upgradetab.php(51) : eval()'d code on line 1 Many lines with the PHP Fatal error. As each one is displayed the time is incrementally increased all the way to 10:39:49 UTC [16-Mar-2019 10:39:49 UTC] PHP Fatal error: Class 'Tools14' not found in /home/xxx/clone1.xxx.com/Admin/autoupgrade/ajax-upgradetab.php(51) : eval()'d code on line 1 Edited March 16, 2019 by Billy (see edit history) Link to comment Share on other sites More sharing options...
Billy Posted March 16, 2019 Author Share Posted March 16, 2019 (edited) This one was found in the public_html/admin folder error_log [16-Mar-2019 09:54:43 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/xxx/clone1.xxx.com/classes/db/DbQuery.php:96 Stack trace: #0 /home/xxx/clone1.xxx.com/Adapter/Adapter_EntityMapper.php(45): DbQueryCore->from('shop', 'a') #1 /home/xxx/clone1.xxx.com/classes/ObjectModel.php(233): Adapter_EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /home/xxx/clone1.xxx.com/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #3 /home/xxx/clone1.xxx.com/classes/shop/Shop.php(397): ShopCore->__construct('1') #4 /home/xxx/clone1.xxx.com/config/config.inc.php(114): ShopCore::initialize() #5 /home/xxx/clone1.xxx.com/Admin/ajax.php(30): include('/home/xxxxx/...') #6 {main} thrown in /home/xxx/clone1.xxx.com/classes/db/DbQuery.php on line 96 Edited April 26, 2019 by Billy (see edit history) Link to comment Share on other sites More sharing options...
Billy Posted March 16, 2019 Author Share Posted March 16, 2019 Let me add in that the main website is PHP 5.6. I switched to PHP 7.1 and fixed all my errors before running the one click module. Now i couldn't update at first because the file checker inside the "one click module" was just spinning. My solution was to download https://github.com/PrestaShop/autoupgrade and add all those files to my website admin/autoupgrade folder. Which included the Tools14.php https://github.com/PrestaShop/autoupgrade/blob/master/classes/Tools14.php Link to comment Share on other sites More sharing options...
Billy Posted March 16, 2019 Author Share Posted March 16, 2019 So i'm stuck at the moment and i'm not sure what else i should try. So my website can now be on presta v1.7.5.1 as PHP 5.6 is EOL. Does anyone have any more ideas on how to proceed? Thanks for any advise in advance. Billy Link to comment Share on other sites More sharing options...
ttoine Posted March 18, 2019 Share Posted March 18, 2019 usually, this kind of error on an upgrade is because of a bad module or some customisation with overrides. did you try to disable modules? Link to comment Share on other sites More sharing options...
tuk66 Posted March 19, 2019 Share Posted March 19, 2019 Upgrade to PS 1.7 is difficult. I have done many and no one was smooth due to different reasons. Anyway, I found a way how to do it. Link to comment Share on other sites More sharing options...
ttoine Posted March 19, 2019 Share Posted March 19, 2019 if you could share the reason that would be interesting, in order to improve the upgrade module Link to comment Share on other sites More sharing options...
tuk66 Posted March 19, 2019 Share Posted March 19, 2019 No, there is no exact reason. There was another problem each time. Often more different problems at once. PHP version, incompatible modules, PHP timeout, wrong database schema and so on. Everything you can imagine. I do upgrade with my notepad full of notes, often 5 or 15 times (!). It is very difficult to do it without a debugger. Link to comment Share on other sites More sharing options...
ttoine Posted March 19, 2019 Share Posted March 19, 2019 ok, interesting. if you want to help, feel free to open issues on GitHub: https://github.com/PrestaShop/autoupgrade/issues Link to comment Share on other sites More sharing options...
Billy Posted April 24, 2019 Author Share Posted April 24, 2019 (edited) On 3/18/2019 at 11:31 AM, ttoine said: usually, this kind of error on an upgrade is because of a bad module or some customisation with overrides. did you try to disable modules? Hi ttoine! How would i check all my modules to see which one is the problem? I don't have any output anywhere saying i have a problem with a specific module. I have no overrides installed. Thank you for your time in advance! Edited April 24, 2019 by Billy (see edit history) Link to comment Share on other sites More sharing options...
ttoine Posted April 24, 2019 Share Posted April 24, 2019 the usual best way on every CMS: create another installation of your shop on the server (maybe in a subfolder), set the php version, and then install and enable one module after one. And also, note that this can a combination of modules, and not one module alone. Link to comment Share on other sites More sharing options...
Billy Posted April 24, 2019 Author Share Posted April 24, 2019 So your saying install my ps 1.6.1.x modules into a new ps 1.7.5 installation to see if i have any errors? Am i understanding you correctly @ttoine Thank you again for your time! Link to comment Share on other sites More sharing options...
ttoine Posted April 24, 2019 Share Posted April 24, 2019 yes. BTW, some modules my have new versions for 1.7.5, check that too. and of course, you should take this opportunity to check that the modules works with PHP 7.1 too. Link to comment Share on other sites More sharing options...
Billy Posted April 24, 2019 Author Share Posted April 24, 2019 (edited) That is an issue as i am running PHP 7.2 just fine now with PS 1.6.1.x i didn't think about that issue. When will PS 1.7.5 be ready for PHP 7.2 @ttoine Edited April 24, 2019 by Billy (see edit history) Link to comment Share on other sites More sharing options...
ttoine Posted April 24, 2019 Share Posted April 24, 2019 1.7.5 is ready for PHP 7.2 by design... most of issues people report are bad overrides in shop customization, or modules that are not working with PHP 7.2. Link to comment Share on other sites More sharing options...
Billy Posted April 24, 2019 Author Share Posted April 24, 2019 Sweet man your a wealth of knowledge & thanks again! 1 Link to comment Share on other sites More sharing options...
EdEichman Posted July 6, 2020 Share Posted July 6, 2020 On 3/16/2019 at 6:11 PM, Billy said: I found this in the admin/autoupgrade folder error_log. [16-Mar-2019 09:51:15 UTC] PHP Fatal error: Class 'Tools14' not found in /home/xxx/clone1.xxx.com/Admin/autoupgrade/ajax-upgradetab.php(51) : eval()'d code on line 1 Many lines with the PHP Fatal error. As each one is displayed the time is incrementally increased all the way to 10:39:49 UTC [16-Mar-2019 10:39:49 UTC] PHP Fatal error: Class 'Tools14' not found in /home/xxx/clone1.xxx.com/Admin/autoupgrade/ajax-upgradetab.php(51) : eval()'d code on line 1 Hi Billy, I fixed this by going to the auto-upgrade module in the admin area and selecting "reset" for the module. Ed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now