Jump to content

Fatal error after upgrade from 1.7 to 8.1.6 HTTP ERROR 500


Cozzi

Recommended Posts

Hello,
After upgrade from 1.7 to 8.1.6 is administration works but homepage has error.
Can you help me some solution please?
PHP:7.4.33

Fatal error: Uncaught PrestaShop\PrestaShop\Core\Exception\ContainerNotFoundException: Kernel Container is not available in /home/www/firelovers.com/www/firelovers.com/src/Adapter/ContainerFinder.php:77 Stack trace: #0 /home/www/firelovers.com/www/firelovers.com/classes/module/Module.php(1674): PrestaShop\PrestaShop\Adapter\ContainerFinder->getContainer() #1 /home/www/firelovers.com/www/firelovers.com/classes/module/Module.php(1663): ModuleCore::getModuleRepository() #2 /home/www/firelovers.com/www/firelovers.com/classes/Hook.php(878): ModuleCore::getNativeModuleList() #3 /home/www/firelovers.com/www/firelovers.com/classes/Dispatcher.php(606): HookCore::exec() #4 /home/www/firelovers.com/www/firelovers.com/classes/Dispatcher.php(243): DispatcherCore->loadRoutes() #5 /home/www/firelovers.com/www/firelovers.com/classes/Dispatcher.php(201): DispatcherCore->__construct() #6 /home/www/firelovers.com/www/firelovers.com/index.php(28): DispatcherCore::getInstance() #7 {main} thrown in /home/www/firelovers.com/www/firelovers.com/src/Adapter/ContainerFinder.php on line 77

Edited by Cozzi (see edit history)
Link to comment
Share on other sites

  • Cozzi changed the title to Fatal error after upgrade from 1.7 to 8.1.6 HTTP ERROR 500
1 minute ago, ComGrafPL said:

First try with clearing cache in VAR folder, then enable debug mode and try with PHP 8+. Most probably theme or some modules not working on PS 8.1.

Thank you,

I already tried that. I deleted the cache and VAR folders. I also uploaded the modules folder from the new downloaded prestashop version. It is still the same.

I am trying it with and without the debug mode.

Link to comment
Share on other sites

Hello 👋🏻!

I have few questions:

  1. Can you describe how you performed the version upgrade and from exactly which PrestaShop version (1.7.5/6/7/8)?
  2. Do you have a backup made before the update? 

Why I ask?
Because it makes a huge difference what version exactly the update was made from and how it was made (there are quite a few dependencies and they vary from version to version).

The most common problem arises due to modules, overrides and incompatibility of the theme with a newer version.

Link to comment
Share on other sites

1) It was 1.7.8. and it was the todays actualized 1-clic upgrade module.
All modules was desibled.
2) I have backup but I am not sure if it is working. Because my data is over 20GB and It was backuping for 5 hours and the process didn´t ended.

I have some old modules deactivated but it is not possible to delete them at the admin.
 

 

Link to comment
Share on other sites

Ok, of course You can delete modules manually. By deleting selected module from the folder modules/<module_name_folder>, removing information from the database table ps_module and related tables.  

Anyway, let's focus on errors You have now on front Kernel Container is not available in ... Adapter/ContainerFinder.php:77
This can happen due to various reasons, such as file permission issues, incomplete upgrades, or compatibility issues with certain modules or customizations.

  1. Check Error Logs in www/yourdomainname.com/vars/logs/ prod.log or dev.log
  2. Temporarily disable all third-party modules installed on your PrestaShop store (Advanced Parameters → Performance → Disable non built-in modules)
  3. Disable (in Advanced Parameters→ Performance) Smarty cache & cache for CSS, JS and Apache optimization
  4. Clean cache in www/yourdomainname.com/vars/cache folder
  5. If You can, try to test store with default theme (classic)

Check related topics with similar error:
👉🏻 https://github.com/PrestaShop/PrestaShop/issues/15503#issuecomment-530800626

 

I hope my suggestions have pointed you in the right direction. 🚀

Link to comment
Share on other sites

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...