AzharXaiden Posted November 26, 2022 Share Posted November 26, 2022 (edited) Hey all, I downloaded the latest release of prestashop 8.0.0, and followed this guide: https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/#modules-upgrade However this doesn't come with the autoupgrade module, I also get errors on my website such as: Warning: include(/customers/e/6/7/example.com/httpd.www/example/vendor/composer/../doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php): failed to open stream: No such file or directory in /customers/e/6/7/example.com/httpd.www/example/vendor/composer/ClassLoader.php on line 571 Warning: include(): Failed opening '/customers/e/6/7/example.com/httpd.www/example/vendor/composer/../doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php' for inclusion (include_path='/customers/e/6/7/example.com/httpd.www/example/vendor/pear/pear_exception:/customers/e/6/7/example.com/httpd.www/example/vendor/pear/console_getopt:/customers/e/6/7/example.com/httpd.www/example/vendor/pear/pear-core-minimal/src:/customers/e/6/7/example.com/httpd.www/example/vendor/pear/archive_tar:.:/usr/share/php') in /customers/e/6/7/example.com/httpd.www/example/vendor/composer/ClassLoader.php on line 571 Fatal error: Uncaught Error: Class 'Symfony\Component\Cache\DoctrineProvider' not found in /customers/e/6/7/example.com/httpd.www/example/src/Adapter/ContainerBuilder.php:211 Stack trace: #0 /customers/e/6/7/example.com/httpd.www/example/src/Adapter/ContainerBuilder.php(132): PrestaShop\PrestaShop\Adapter\ContainerBuilder->loadDoctrineAnnotationMetadata() #1 /customers/e/6/7/example.com/httpd.www/example/src/Adapter/ContainerBuilder.php(102): PrestaShop\PrestaShop\Adapter\ContainerBuilder->buildContainer('front') #2 /customers/e/6/7/example.com/httpd.www/example/classes/controller/FrontController.php(2035): PrestaShop\PrestaShop\Adapter\ContainerBuilder::getContainer('front', true) #3 /customers/e/6/7/example.com/httpd.www/example/classes/controller/Controller.php(204): FrontControllerCore->buildContainer() #4 /customers/e/6/7/example.com/httpd.www/example/classes/controller/FrontController.php(279): ControllerCore->init() #5 /customers/e/6/7/example.com/httpd.www/Top in /customers/e/6/7/example.com/httpd.www/example/src/Adapter/ContainerBuilder.php on line 211 What can I do to upgrade to 8.0.0? I have tried the one click upgrade module, doesn't work as seen in my previous post. I have tried this manual one, issues are above. Thanks Edited November 26, 2022 by AzharXaiden (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted November 26, 2022 Share Posted November 26, 2022 Have you done all the steps from the guide? Cache disabled? Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 26, 2022 Author Share Posted November 26, 2022 2 minutes ago, ComGrafPL said: Have you done all the steps from the guide? Cache disabled? I didn't find anything about memcache in there so I didn't, but I deleted both folders though Link to comment Share on other sites More sharing options...
ComGrafPL Posted November 26, 2022 Share Posted November 26, 2022 1 minutę temu, AzharXaiden napisał: I didn't find anything about memcache in there so I didn't, but I deleted both folders though What's your PS and PHP version for this moment? Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 26, 2022 Author Share Posted November 26, 2022 (edited) 7 minutes ago, ComGrafPL said: What's your PS and PHP version for this moment? Right now it is at 8.0.0 (not working because of a above issues) because of the attempted manual upgrade, but before I did it, it was 1.7.8. Also check this please: Maybe is related? Edited November 26, 2022 by AzharXaiden (see edit history) Link to comment Share on other sites More sharing options...
MMGS Posted November 26, 2022 Share Posted November 26, 2022 so tbh is that 1.7.8 not working with PHP8.0? and no clear solution to fix that probelm, only upgrade ( seems not working?) I have the same problem. looking for solution Link to comment Share on other sites More sharing options...
idnovate.com Posted November 27, 2022 Share Posted November 27, 2022 "autoupgrade" module is not compatible with PS 8 yet. Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 27, 2022 Author Share Posted November 27, 2022 12 hours ago, idnovate.com said: "autoupgrade" module is not compatible with PS 8 yet. So why are they telling me to use the autoupgrade module in the guide Link to comment Share on other sites More sharing options...
rthakur Posted November 28, 2022 Share Posted November 28, 2022 Hola, Módulo 1-Click Upgrade Puedes realizar las siguientes actualizaciones: de 1.4 a versiones secundarias de 1.4. de 1.4 a 1.5. - De 1.4 a 1.6. de 1.5 a versiones secundarias de 1.5. de 1.5 a 1.6. de 1.6 a versiones secundarias de 1.6. de 1.7 a versiones secundarias de 1.7. El módulo de un clic funciona solo en la misma versión. Link to comment Share on other sites More sharing options...
idnovate.com Posted November 28, 2022 Share Posted November 28, 2022 12 hours ago, AzharXaiden said: So why are they telling me to use the autoupgrade module in the guide This is a documentation "for the future" 😅 https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/use-autoupgrade-module/ Quote The latest versions of this module allow updates from PS 1.6 to PS 1.7 only. Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 28, 2022 Author Share Posted November 28, 2022 11 hours ago, rthakur said: Hola, Módulo 1-Click Upgrade Puedes realizar las siguientes actualizaciones: de 1.4 a versiones secundarias de 1.4. de 1.4 a 1.5. - De 1.4 a 1.6. de 1.5 a versiones secundarias de 1.5. de 1.5 a 1.6. de 1.6 a versiones secundarias de 1.6. de 1.7 a versiones secundarias de 1.7. El módulo de un clic funciona solo en la misma versión. Hola, ¿Es posible hacer una actualización manual? ¡Gracias! Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 28, 2022 Author Share Posted November 28, 2022 (edited) 11 hours ago, idnovate.com said: This is a documentation "for the future" 😅 https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/use-autoupgrade-module/ I see, that is sad, that it is not an option now. Edited November 28, 2022 by AzharXaiden (see edit history) Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 28, 2022 Author Share Posted November 28, 2022 My question now:Is it possible to manually update prestashop 1.7.8 to 8.0.0? I've followed this guide but it didn't work due to the database upgrader and other issues mentioned above: https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/#modules-upgrade Thanks Link to comment Share on other sites More sharing options...
razaro Posted November 28, 2022 Share Posted November 28, 2022 I think PrestaShop 8.0.0 is still only for testing as it is so new. But I did not have time yet to test it. If you want to try check this video https://youtu.be/SBz7lApJ_pA?t=1064 and https://github.com/PrestaShop/autoupgrade/pull/513 version of auto-upgrade module mentioned in video. Again this is not for production and just for testing. Also if you want to ask developers or team more directly try on http://prestashop.slack.com/ 1 2 Link to comment Share on other sites More sharing options...
MMGS Posted November 28, 2022 Share Posted November 28, 2022 After few years with presta im leaving . just practical reasons if have to rebuild everything will be easier to start another, fresh project Link to comment Share on other sites More sharing options...
joseantgv Posted November 29, 2022 Share Posted November 29, 2022 14 hours ago, MMGS said: After few years with presta im leaving . just practical reasons if have to rebuild everything will be easier to start another, fresh project And where are you moving? Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 29, 2022 Author Share Posted November 29, 2022 (edited) After a long hassle of splitting .sql files and importing them into that fucking stupid one.com host. I finally got it upgraded to Prestashop 8.0.0. However 1 more bug: If I set this line to false again, links to products / categories (the rest works) lead me back to the localhost. I have changed ns_shop_url urls and ps_configuration ssl and normal url define('_PS_MODE_DEV_', false); BUG SOLVED, Deleted both var/cache/dev and var/cache/prod Edited November 29, 2022 by AzharXaiden solved (see edit history) Link to comment Share on other sites More sharing options...
AzharXaiden Posted November 29, 2022 Author Share Posted November 29, 2022 (edited) On 11/28/2022 at 8:22 PM, razaro said: I think PrestaShop 8.0.0 is still only for testing as it is so new. But I did not have time yet to test it. If you want to try check this video https://youtu.be/SBz7lApJ_pA?t=1064 and https://github.com/PrestaShop/autoupgrade/pull/513 version of auto-upgrade module mentioned in video. Again this is not for production and just for testing. Also if you want to ask developers or team more directly try on http://prestashop.slack.com/ Thankyou sir, this solved my issue, now just to check if my (important) modules work. How did you find that video :O, it must've been burried very deep in the internet Edited November 29, 2022 by AzharXaiden (see edit history) 1 1 Link to comment Share on other sites More sharing options...
pixelmeister Posted November 30, 2022 Share Posted November 30, 2022 (edited) Hi all I have the same problem, my shop crashed because my webhost updated php to version 8.0 and 8.1 and removed all previous versions. Since the shop are dead i tried to do a manual upgrade to PS 8 following the instructions here: https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/ All i get now is this: Fatal error: Uncaught Error: Access to undeclared static property Hook::$_hook_modules_cache_exec in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php:241 Stack trace: #0 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Hook.php(778): Hook::getHookModuleExecList('actionDispatche...') #1 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Dispatcher.php(344): HookCore::exec('actionDispatche...', Array) #2 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/index.php(28): DispatcherCore->dispatch() #3 {main} thrown in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php on line 241 I see that there is other people having the same problem and i have tried some suggestions that i have found but so far no luck😪 Could it have to do with that i have modules that is not compatible and if so how do i update them without access to PS? I would appreciate any suggestions you have on how to get it working. Edit: added a screendump of what happens when i try to log in to admin. Edited November 30, 2022 by pixelmeister Added screendump (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted December 1, 2022 Share Posted December 1, 2022 13 hours ago, pixelmeister said: Hi all I have the same problem, my shop crashed because my webhost updated php to version 8.0 and 8.1 and removed all previous versions. Since the shop are dead i tried to do a manual upgrade to PS 8 following the instructions here: https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/ All i get now is this: Fatal error: Uncaught Error: Access to undeclared static property Hook::$_hook_modules_cache_exec in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php:241 Stack trace: #0 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Hook.php(778): Hook::getHookModuleExecList('actionDispatche...') #1 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Dispatcher.php(344): HookCore::exec('actionDispatche...', Array) #2 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/index.php(28): DispatcherCore->dispatch() #3 {main} thrown in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php on line 241 I see that there is other people having the same problem and i have tried some suggestions that i have found but so far no luck😪 Could it have to do with that i have modules that is not compatible and if so how do i update them without access to PS? I would appreciate any suggestions you have on how to get it working. Edit: added a screendump of what happens when i try to log in to admin. For the first error, try to rename the folder /override. Rename the folder /var/cache too. Let's see if you can turn on the store. Link to comment Share on other sites More sharing options...
pixelmeister Posted December 1, 2022 Share Posted December 1, 2022 10 hours ago, idnovate.com said: For the first error, try to rename the folder /override. Rename the folder /var/cache too. Let's see if you can turn on the store. Hi Thanks for the suggestion, the result is that the first problem has changed to this🤣: Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/modules/angarbanners/angarbanners.php on line 632 This time it is something with the theme, i will have a look at the file and see if i can do something about it. The problem with the admin page is the same Link to comment Share on other sites More sharing options...
pixelmeister Posted December 1, 2022 Share Posted December 1, 2022 Hi again I updated a file in the theme and got the front page working partly, but as soon i try to view a product i get this. And i still can´t access admin. I tried to run the database upgrade script, http://<shop_domain>/modules/autoupgrade/upgrade/upgrade.php, but i wont run, i get a http 500 error when i try. Is there any way to upgrade the database manually? Link to comment Share on other sites More sharing options...
HemaShop Posted December 6, 2022 Share Posted December 6, 2022 On 11/26/2022 at 4:49 PM, ComGrafPL said: Have you done all the steps from the guide? Cache disabled? On 11/30/2022 at 9:11 PM, pixelmeister said: Hi all I have the same problem, my shop crashed because my webhost updated php to version 8.0 and 8.1 and removed all previous versions. Since the shop are dead i tried to do a manual upgrade to PS 8 following the instructions here: https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/ All i get now is this: Fatal error: Uncaught Error: Access to undeclared static property Hook::$_hook_modules_cache_exec in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php:241 Stack trace: #0 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Hook.php(778): Hook::getHookModuleExecList('actionDispatche...') #1 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/classes/Dispatcher.php(344): HookCore::exec('actionDispatche...', Array) #2 /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/index.php(28): DispatcherCore->dispatch() #3 {main} thrown in /www/webvol2/r4/e7g196j0ft9pmls/stockholmsvapenfabrik.se/public_html/shop/override/classes/Hook.php on line 241 I see that there is other people having the same problem and i have tried some suggestions that i have found but so far no luck😪 Could it have to do with that i have modules that is not compatible and if so how do i update them without access to PS? I would appreciate any suggestions you have on how to get it working. Edit: added a screendump of what happens when i try to log in to admin. Got excactly the same i cleared the cache and no change dunno what to do Link to comment Share on other sites More sharing options...
HemaShop Posted December 7, 2022 Share Posted December 7, 2022 On 12/1/2022 at 9:48 PM, pixelmeister said: Hi again I updated a file in the theme and got the front page working partly, but as soon i try to view a product i get this. And i still can´t access admin. I tried to run the database upgrade script, http://<shop_domain>/modules/autoupgrade/upgrade/upgrade.php, but i wont run, i get a http 500 error when i try. Is there any way to upgrade the database manually? you can do it via phpmyadmin you just have te rename "prefix_" into your prefix, standart would be "ps_" Link to comment Share on other sites More sharing options...
idnovate.com Posted January 24, 2023 Share Posted January 24, 2023 Autoupgrade module is already compatible with PS 8: https://github.com/PrestaShop/autoupgrade/releases 1 Link to comment Share on other sites More sharing options...
njs Posted January 29, 2023 Share Posted January 29, 2023 (edited) On 1/24/2023 at 11:32 AM, idnovate.com said: Autoupgrade module is already compatible with PS 8: https://github.com/PrestaShop/autoupgrade/releases Compatible or not, but still broken, following error when I run "php modules/autoupgrade/upgrade/upgrade.php" (1.7.8.8 -> 8.0.1) PHP Warning: require_once(/home/folder1/public_html/modules/autoupgrade/upgrade/../../vendor/autoload.php): failed to open stream: No such file or directory in /home/folder1/public_html/modules/autoupgrade/upgrade/upgrade.php on line 47 PHP Fatal error: require_once(): Failed opening required '/home/folder1/public_html/modules/autoupgrade/upgrade/../../vendor/autoload.php' (include_path='.:/usr/local/php74/lib/php') in /home/folder1/public_html/modules/autoupgrade/upgrade/upgrade.php on line 47 I can fix the paths, but then I get error from somewhere else. Has anyone been able to manually run all needed SQL scripts? upgrade\sql\8.0.0.sql is easy modify, but PHP scripts needs some work. Edited January 29, 2023 by njs (see edit history) Link to comment Share on other sites More sharing options...
CedCommerce Team Posted February 14, 2023 Share Posted February 14, 2023 Hello, manual upgrade is safe instead of using auto upgrade module because in module have static features for upgrade through which few functions get override or missed so it throws errors. Manual upgrade is safe and upgrade it correctly without data loss. solutions have given. Thanks 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