Hi, I have read the rules for this forum. But I am rather desperate with this crashed prestashop website, so I might have posted this in the wrong section. Please feel free to move it to the right section of the forum. It was running prestashop 1.6 on php 5.5.x I believe. The sky was blue and there were no clouds and the sun was shining, birds singing etc.
Some admin user pressed the update all add-ons button and the site went blank.
I have edited some php file so that it would display the error. It gave me a file (and the file location) and the exact line of code where the crash is. But the stacktrace was unclear to me. I have googled a lot. Have asked the question on the webmasters stackexchange website and got a minimum amount of views and no answers. So I am really hoping that someone can give me a few pointers of where to look.
Fatal error: Uncaught exception 'Adapter_Exception' with message 'Service container is not set.' in \prestashop\Adapter\Adapter_ServiceLocator.php:49 Stack trace: #0 \prestashop\classes\ObjectModel.php(232): Adapter_ServiceLocator::get('Adapter_EntityM...') #1 \prestashop\classes\shop\Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 \prestashop\classes\shop\Shop.php(397): ShopCore->__construct('1') #3 \prestashop\config\config.inc.php(94): ShopCore::initialize() #4 \prestashop\index.php(27): require('...') #5 {main} thrown in \prestashop\Adapter\Adapter_ServiceLocator.php on line 49
I shortened the path in the error a bit to keep it more readable. this error causes my site to be unavailable.
By editing line 49 in Adapter_ServiceLocator.php to this:
throw new Adapter_Exception('Service container is not set. for service ' .$serviceName);I got this message:
Service container is not set. for service Adapter_EntityMapper
Maybe that makes more sense? I still have no clue.
I do not know what addon cause'd it and have no idea how to troubleshoot this issue.