I am trying to install Drupal 8 on IIS 7. When I run Drupal for the first time, I get an error.
PHP Fatal error: Call to a member function get() on a non-object in C:\inetpub\wwwroot\drupal\core\lib\Drupal.php on line 275
The code causing the error is the following one.
<?php
/**
* Retrieves a configuration object.
*
* This is the main entry point to the configuration API. Calling
* @code \Drupal::config('book.admin') @endcode will return a configuration
* object in which the book module can store its administrative settings.
*
* @param string $name
* The name of the configuration object to retrieve. The name corresponds to
* a configuration file. For @code \Drupal::config('book.admin') @endcode, the config
* object returned will contain the contents of book.admin configuration file.
*
* @return \Drupal\Core\Config\Config
* A configuration object.
*/
public static function config($name) {
return static::$container->get('config.factory')->get($name);
}
?>I do not have a path to match the configuration object in the comments. How can I fix it? Where do I get the file from?
I looked at the installation instructions, but I could not find anything about a missing configuration file. Is it because I am using the development version? I didn't see any other version to use. Mine is not a production system.
I am using PHP 5.5.10; I looked in the directory it shows, but there's nothing there. I don't have a Config\Config, just \Drupal\Core\Config. The real location is here,
C:\inetpub\wwwroot\drupal\core\lib\Drupal\Core\Config
This is what I have from the zip; I have not changed anything, and it is the same as what's on Github.
How do I get Drupal 8 running? Thanks.
Comments
Solved
I was able to get the install by browsing to http://myserver/drupal/core/install.php. I will troubleshoot other items as necessary, but Drupal 8 did install.