Jump to content

Manual upgrade to Prestashop 8.0.0, no autoupgrade module?


Recommended Posts

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 by AzharXaiden (see edit history)
Link to comment
Share on other sites

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

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

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/

 

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

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 by AzharXaiden
solved (see edit history)
Link to comment
Share on other sites

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 by AzharXaiden (see edit history)
  • Like 1
  • Haha 1
Link to comment
Share on other sites

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.

Namnlöst-1.jpg

Edited by pixelmeister
Added screendump (see edit history)
Link to comment
Share on other sites

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.

Namnlöst-1.jpg

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

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

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?

 

50393201_Namnlst-2.thumb.jpg.db06bb0636ee5613c5193129e260d889.jpg

Link to comment
Share on other sites

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.

Namnlöst-1.jpg

Got excactly the same i cleared the cache and no change dunno what to do

Link to comment
Share on other sites

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?

 

50393201_Namnlst-2.thumb.jpg.db06bb0636ee5613c5193129e260d889.jpg

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

  • 1 month later...
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 by njs (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...