Jump to content

updating all addons


jphellemons

Recommended Posts

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.

Link to comment
Share on other sites

So no clue with this error or what log to check? I just need to rename 111 folders

 

http://imgur.com/jXbhGPQ

 

I have started adding a 2 behind the module name to narrow it down and after renaming 111 directories I found out that it did not work. Still exactly the same error. also after restarting IIS and of course F5 the page (after every dir rename)

 

Look forward to the next suggestion, because I still have no clue how to troubleshoot this or in what direction to search for a solution.

 

ps. I also tried to clean the smarty cache dir (except the index file)

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

That rules out the modules directory. It could still be an override. Or it could just be a bug in PrestaShop v1.6.0.6 that's been fixed in later versions. At the moment, I can only guess.

 

I remember reading a post recently where updating the Core and Adapter directories to the latest versions fixed an issue. You could back up those directories and try that.

Link to comment
Share on other sites

I have downloaded 1.6.1.7 and have overwritten everything. site is back up now! removed the install folder and everything seems back to normal to me. Consider it solved. I have asked someone who works on a daily basis with the website to verify that everything is okay now.

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