when I run update.php in my D8 site. fatal error as below show:
Fatal error: Call to a member function get() on a non-object in d8/core/lib/Drupal.php on line 138
in Drupal.php, line 138 get the ID of service
/**
* Retrieves a service from the container.
*
* Use this method if the desired service is not one of those with a dedicated
* accessor method below. If it is listed below, those methods are preferred
* as they can return useful type hints.
*
* @param string $id
* The ID of the service to retrieve.
* @return mixed
* The specified service.
*/
public static function service($id) {
return static::$container->get($id);
}
Anyone know how I can resolve it, tks.
Comments
Drupal 8 is still under
Drupal 8 is still under development, so better to use this once it is ready to release.
Pushpinder Rana #pushpinderdrupal
Acquia Certified Drupal Expert
Quite right, D8 is for
Quite right, D8 is for developer use only and will certainly give you many problems if you try to use it for a live site.
Sometimes these problems in D8 can be solved using Cache Rebuild. There is a drush command for this. If you are a Drupal developer, you will certainly be using drush. If you are not, you should leave Drupal 8 alone, because any Drupal 8 site will certainly break many times between now and the day the software is in beta, or is officially released.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors