Follow-up to #2456401: Update the initialization and reset of the container

When I try to run site update.php I get this error. Any I idea why?
Fatal error: Call to a member function get() on a non-object in /sites/all/modules/service_container/lib/Drupal.php on line 52

Comments

fabianx’s picture

Status: Reviewed & tested by the community » Active

Need to run during hook_boot(), need to check that service_container is cached to prevent bad things from happening.

Need to ensure to work properly with registry_rebuild.

pol’s picture

Status: Active » Fixed

I think this is all fixed now with recent version of service_container.

I will close the issue, feel free to reopen if you still have the problem after you upgraded.

fabianx’s picture

Status: Fixed » Postponed (maintainer needs more info)

I want to give this one more check locally.

recidive’s picture

This happened to me too with beta 5.

phildu’s picture

same error with beta 5 too

jsst’s picture

I can confirm 7.x-1.0-beta5 does not play well with registry_rebuild:

Fatal error: Call to a member function get() on null in /var/www/acme/docroot/sites/all/modules/contrib/service_container/lib/Drupal.php on line 52

Not actively using update.php, but drush site-install and updatedb work just fine.

lamp5’s picture

Try to install latest dev version and run drush rr

dan_metille’s picture

@lamp5 good idea, but it is getting worst with the dev version: https://www.drupal.org/node/2781735

markhalliwell’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
markhalliwell’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Closed (outdated)

The 7.x-2.x branch was premature, this project has been deprecated in favor of https://www.drupal.org/project/backport.

beautifulmind’s picture

If these issues aren't going to be addressed, this modules should be removed or unpublish all its releases.

Regards.