Apparently
$ballpark = $this->ballparkDetailsHandler->getBallparkDetailsByProjectId($projectId);
is not returning a «ballpark» at all. Probably it is returning an error, or something like an empty array.
Try var_dump()‘ing $ballpark immediately before the line that raises the error, and see what it contains (probably False, NULL, array() or something equally un-ballparky.
Then, inspect the ballparkDetailsByProjectId() function in the BallparkDetailsHandler.php file. At a guess, you might be passing an invalid (i.e. nonexistent, removed, etc.) $projectId.
Then you might rewrite the code with error checking:
if($projectStatusId == ProjectStatusKeys::BALLPARK_ACTIVE) {
$ballpark = $this->ballparkDetailsHandler->getBallparkDetailsByProjectId($projectId);
if (!is_object($ballpark))
trigger_error("Error: bad project ID: '$projectId': $ballpark",
E_USER_ERROR);
$projectDetails["startdate"] = $ballpark->getBallparkDetailsStartDate();
$projectDetails["enddate"] = $ballpark->getBallparkDetailsEndDate();
$projectDetails["projectid"] = $projectId;
$projectDetails["name"] = $ballpark->getBallparkDetailsBookingRef();
$projectDetails["status"] = ProjectStatusKeys::BALLPARK_ACTIVE;
}
Then in the BallparkDetailsHandler.php file you could modify this code:
// Prepare query or die
if (!($stmt = $this->mysqli->prepare($query))
return "Error in PREPARE: $query";
$stmt->bind_param("i", $projectId);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($ballparkDetailsBookingRef, $bankRef, $regionName,
$projectStatusId, $projectStatusName, $ballparkDetailsDescription,
$ballparkDetailsNotes, $ballparkDetailsStartDate, $ballparkDetailsEndDate,
$ballparkDetailsExpiryDate);
$stmt->fetch();
// If no data, then die
if(!$stmt->num_rows)
return "No data in DB for projectID '$projectId': $query";
// Should be clear sailing from here on. Actually I ought to check
// whether all these new() here do return anything sensible, or not
$bank = new Bank("", "", $bankRef, "");
$region = new Region("", $regionName, "");
$projectStatus = new ProjectStatus($projectStatusId, $projectStatusName);
$project = new Project($projectId, $bank, $region, $projectStatus);
return new BallparkDetails("", $project,
$ballparkDetailsBookingRef, $ballparkDetailsStartDate,
$ballparkDetailsEndDate, $ballparkDetailsExpiryDate,
$ballparkDetailsDescription, $ballparkDetailsNotes);
Trying to move from local host to new server. Fresh install worked fine, no problems. When I uploaded my files mydomain.com/admin comes up with a white screen and mydomain.com produces this error:
Fatal error: Call to a member function get() on a non-object in /home4/pawpostc/public_html/index.php on line 103.
So I took a look at index.php line 103:
if ($config->get('config_error_display')) {
echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';
}
Seems like there is a problem with my config files. So I went and had a look at them. I have gone over them a few times but can not find the mistake, probably missing something, so here are the config files.
config.php (in my root www. folder):
<?php
// HTTP
define('HTTP_SERVER', 'http://www.pawpost.com.au/');
define('HTTP_IMAGE', 'http://www.pawpost.com.au/image/');
define('HTTP_ADMIN', 'http://www.pawpost.com.au/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://www.pawpost.com.au/');
define('HTTPS_IMAGE', 'http://www.pawpost.com.au/image/');
// DIR
define('DIR_APPLICATION', '/home4/pawpostc/public_html/catalog/');
define('DIR_SYSTEM', '/home4/pawpostc/public_html/system/');
define('DIR_DATABASE', '/home4/pawpostc/public_html/system/database/');
define('DIR_LANGUAGE', '/home4/pawpostc/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home4/pawpostc/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home4/pawpostc/public_html/system/config/');
define('DIR_IMAGE', '/home4/pawpostc/public_html/image/');
define('DIR_CACHE', '/home4/pawpostc/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home4/pawpostc/public_html/download/');
define('DIR_LOGS', '/home4/pawpostc/public_html/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'my user name');
define('DB_PASSWORD', 'my password');
define('DB_DATABASE', 'my database');
define('DB_PREFIX', 'oc_');
?>
admin/config.php:
<?php
// HTTP
define('HTTP_SERVER', 'http://www.pawpost.com.au/admin/');
define('HTTP_CATALOG', 'http://www.pawpost.com.au/');
define('HTTP_IMAGE', 'http://www.pawpost.com.au/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.pawpost.com.au/admin/');
define('HTTPS_CATALOG', 'http://www.pawpost.com.au/');
define('HTTPS_IMAGE', 'http://www.pawpost.com.au/image/');
// DIR
define('DIR_APPLICATION', '/home4/pawpostc/public_html/admin/');
define('DIR_SYSTEM', '/home4/pawpostc/public_html/system/');
define('DIR_DATABASE', '/home4/pawpostc/public_html/system/database/');
define('DIR_LANGUAGE', '/home4/pawpostc/public_html/admin/language/');
define('DIR_TEMPLATE', '/home4/pawpostc/public_html/admin/view/template/');
define('DIR_CONFIG', '/home4/pawpostc/public_html/system/config/');
define('DIR_IMAGE', '/home4/pawpostc/public_html/image/');
define('DIR_CACHE', '/home4/pawpostc/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home4/pawpostc/public_html/download/');
define('DIR_LOGS', '/home4/pawpostc/public_html/system/logs/');
define('DIR_CATALOG', '/home4/pawpostc/public_html/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'my user name');
define('DB_PASSWORD', 'my password');
define('DB_DATABASE', 'my database');
define('DB_PREFIX', 'oc_');
?>
Any help on this would be appreciated.
I am trying to duplicate a view and modify it, but it is giving me an error.
Before this, I did it with other views and it worked perfectly, all I had to do was rename the views and modify the code.
But now , I get this error:
Fatal error: Call to a member function get() on a non-object in D:UniServerZvhostsrestaurantadministratorcomponentscom_restaurantviewsreviewsview.html.php on line 54
Line 54 has this code:
$canDo = RestaurantHelper::getActions($state->get('filter.category_id'));
var_dump($this); gives me the following ->
object(RestaurantViewReviews)#156 (18) {
["items":protected]=>
NULL
["pagination":protected]=>
NULL
["state":protected]=>
NULL
["_name":protected]=>
string(7) "reviews"
["_models":protected]=>
array(0) {
}
["_basePath":protected]=>
string(71) "D:UniServerZvhostsrestaurantadministrator/components/com_restaurant"
["_defaultModel":protected]=>
NULL
["_layout":protected]=>
string(7) "default"
["_layoutExt":protected]=>
string(3) "php"
["_layoutTemplate":protected]=>
string(1) "_"
["_path":protected]=>
array(2) {
["template"]=>
array(2) {
[0]=>
string(89) "D:UniServerZvhostsrestaurantadministratortemplatesisishtmlcom_restaurantreviews"
[1]=>
string(91) "D:UniServerZvhostsrestaurantadministratorcomponentscom_restaurantviewsreviewstmpl"
}
["helper"]=>
array(1) {
[0]=>
string(80) "D:UniServerZvhostsrestaurantadministratorcomponentscom_restauranthelpers"
}
}
["_template":protected]=>
NULL
["_output":protected]=>
NULL
["_escape":protected]=>
string(16) "htmlspecialchars"
["_charset":protected]=>
string(5) "UTF-8"
["_errors":protected]=>
array(0) {
}
["baseurl"]=>
string(14) "/administrator"
["document"]=>
object(JDocumentHTML)#122 (32) {
["_links"]=>
array(0) {
}
["_custom"]=>
array(0) {
}
["template"]=>
NULL
["baseurl"]=>
NULL
["params"]=>
NULL
["_file"]=>
NULL
["_template":protected]=>
string(0) ""
["_template_tags":protected]=>
array(0) {
}
["_caching":protected]=>
NULL
["_html5":"JDocumentHTML":private]=>
NULL
["title"]=>
string(27) "Restaurant - Administration"
["description"]=>
string(24) "Restaurant description.."
["link"]=>
string(0) ""
["base"]=>
string(0) ""
["language"]=>
string(5) "en-gb"
["direction"]=>
string(3) "ltr"
["_generator"]=>
string(40) "Joomla! - Open Source Content Management"
["_mdate"]=>
string(0) ""
["_tab"]=>
string(2) " "
["_lineEnd"]=>
string(1) "
"
["_charset"]=>
string(5) "utf-8"
["_mime"]=>
string(9) "text/html"
["_namespace"]=>
string(0) ""
["_profile"]=>
string(0) ""
["_scripts"]=>
array(0) {
}
["_script"]=>
array(0) {
}
["_styleSheets"]=>
array(0) {
}
["_style"]=>
array(0) {
}
["_metaTags"]=>
array(2) {
["http-equiv"]=>
array(1) {
["content-type"]=>
string(24) "text/html; charset=utf-8"
}
["standard"]=>
array(1) {
["keywords"]=>
NULL
}
}
["_engine"]=>
NULL
["_type"]=>
string(4) "html"
["mediaVersion":protected]=>
string(32) "5a22c74e31c4742e55ee891853d099a2"
}
}
Any help regarding this would be greatly appreciated,
Thanks
Hi,
I git pull’d drupal 8 5 minutes ago, and I got this error PHP Fatal error: Call to a member function get() on a non-object in my logs.
Regards,
Comments
I can confirm this, and I have a stack trace as well:
[Sat Mar 22 11:38:38.536629 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP Fatal error: Call to a member function get() on a non-object in /home/boobaa/drupal/d8/core/lib/Drupal.php on line 275
[Sat Mar 22 11:38:38.536738 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP Stack trace:
[Sat Mar 22 11:38:38.536754 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP 1. _drupal_exception_handler() /home/boobaa/drupal/d8/core/includes/bootstrap.inc:0
[Sat Mar 22 11:38:38.536767 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP 2. _drupal_log_error() /home/boobaa/drupal/d8/core/includes/bootstrap.inc:1554
[Sat Mar 22 11:38:38.536785 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP 3. drupal_maintenance_theme() /home/boobaa/drupal/d8/core/includes/errors.inc:135
[Sat Mar 22 11:38:38.536798 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP 4. _drupal_maintenance_theme() /home/boobaa/drupal/d8/core/includes/bootstrap.inc:1882
[Sat Mar 22 11:38:38.536811 2014] [fcgid:warn] [pid 24737:tid 140352719599360] [client 127.0.0.1:51015] mod_fcgid: stderr: PHP 5. Drupal::config() /home/boobaa/drupal/d8/core/includes/theme.maintenance.inc:57
These lines have been added to my apache’s error.log right at the first screen of the installer, the language selector.
- Log in or register to post comments
It looks like if the bootstrap can’t find settings, then it goes down till DrupalComponentPhpStoragePhpStorageFactory::get() which tries to build a $configuration array using drupal_get_hash_salt(), which in turn tries to use the not-yet-existing settings, so it throws a RuntimeException with message being «Missing $settings[‘hash_salt’] in settings.php.» – of course it’s missing, since it hasn’t been created yet.
- Log in or register to post comments
Disable the error handler and exception handler when you experience errors in an early bootstrap phase. They currently trigger errors on their own and by doing so will hide the underlying cause.
The error and exception handlers are set in core/includes/bootstrap.inc, lines in _drupal_bootstrap_configuration. Disable them by commenting out the following lines:
// Set the Drupal custom error handler. (requires Drupal::config())
#set_error_handler('_drupal_error_handler');
#set_exception_handler('_drupal_exception_handler');
- Log in or register to post comments
| Category: | Bug report | » Support request |
| Priority: | Critical | » Normal |
Did you try rebuilding first? See core/rebuild.php or drush cr.
- Log in or register to post comments
Comment #6
Kartagis
Turkish
Istanbul
CreditAttribution: Kartagis commented 28 March 2014 at 07:00
Okay,
I git pull’d drupal 8 a minute ago, and this is what I got when I did drush cr
[root@webciniz drupal-8]# time drush cr
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Missing $settings['hash_salt'] in settings.php.' in /var/www/drupal-8/core/includes/bootstrap.inc:1497
Stack trace:
#0 /var/www/drupal-8/core/lib/Drupal/Component/PhpStorage/PhpStorageFactory.php(47): drupal_get_hash_salt()
#1 /var/www/drupal-8/core/includes/utility.inc(46): DrupalComponentPhpStoragePhpStorageFactory::get('service_contain...')
#2 /usr/local/bin/drush/commands/core/cache.drush.inc(238): drupal_rebuild()
#3 [internal function]: drush_cache_rebuild()
#4 /usr/local/bin/drush/includes/command.inc(362): call_user_func_array('drush_cache_reb...', Array)
#5 /usr/local/bin/drush/includes/command.inc(214): _drush_invoke_hooks(Array, Array)
#6 [internal function]: drush_command()
#7 /usr/local/bin/drush/includes/command.inc(182): call_user_func_array('drush_command', Array)
#8 /usr/local/bin/drush/drush.php(98): drush_dispatch(Array)
#9 /usr/local/bin/drush/drush.php(61): _drush_bootstrap_and_dispatch()
#10 /usr/local/bin/drush/drush.php(16): drush_ in /var/www/drupal-8/core/includes/bootstrap.inc on line 1497
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught exception 'RuntimeException' with message 'Missing
$settings['hash_salt'] in settings.php.' in
/var/www/drupal-8/core/includes/bootstrap.inc:1497
Stack trace:
#0
/var/www/drupal-8/core/lib/Drupal/Component/PhpStorage/PhpStorageFactory.php(47):
drupal_get_hash_salt()
#1 /var/www/drupal-8/core/includes/utility.inc(46):
DrupalComponentPhpStoragePhpStorageFactory::get('service_contain...')
#2 /usr/local/bin/drush/commands/core/cache.drush.inc(238):
drupal_rebuild()
#3 [internal function]: drush_cache_rebuild()
#4 /usr/local/bin/drush/includes/command.inc(362):
call_user_func_array('drush_cache_reb...', Array)
#5 /usr/local/bin/drush/includes/command.inc(214):
_drush_invoke_hooks(Array, Array)
#6 [internal function]: drush_command()
#7 /usr/local/bin/drush/includes/command.inc(182):
call_user_func_array('drush_command', Array)
#8 /usr/local/bin/drush/drush.php(98): drush_dispatch(Array)
#9 /usr/local/bin/drush/drush.php(61): _drush_bootstrap_and_dispatch()
#10 /usr/local/bin/drush/drush.php(16): drush_ in
/var/www/drupal-8/core/includes/bootstrap.inc, line 1497
Regards,
- Log in or register to post comments
This is the key:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Missing $settings['hash_salt'] in settings.php.' in /var/www/drupal-8/core/includes/bootstrap.inc:1497
Reinstall, and be sure to start with a fresh copy of settings.php
- Log in or register to post comments
Comment #8
Kartagis
Turkish
Istanbul
CreditAttribution: Kartagis commented 28 March 2014 at 10:45
I have cp sites/default/default.settings.php sites/default/settings.php in my alias for pulling d8.
- Log in or register to post comments
| Component: | configuration system | » update.module |
I got this same error when I tried updating an older Drupal 8 according to the protocol laid out in upgrade.txt, which is pretty much the Drupal 7 method. I wanted to test if upgrading rather than reinstalling would work. But maybe it is not related to upgrade at all?
However, a fresh installation worked fine. Just the upgrade attempt failed.
It may be that upgrade is just not on a critical path at the moment?
************
Upgrade attempt:
[28-Mar-2014 12:11:15 America/Los_Angeles] PHP Fatal error: Call to a member function get() on a non-object in . . drupal8corelibDrupal.php on line 275
GIT pulled Drupal 8 yesterday (3/27/2014) at about 8:45 p.m.
The only detectable change in the settings.php was
$drupal_hash_salt = »;
changed to
$settings[‘hash_salt’] = »;
So I moved that salt value over to the settings.php and added the database configuration items.
I set the free upgrade access setting.
Database was old.
Tried to access the site, got fatal error.
*****************
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP Fatal error: Call to a member function get() on a non-object in C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupal.php on line 275
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP Stack trace:
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 1. {main}() C:UserspkosenkoDocumentsMy Web Sitesdrupal8index.php:0
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 2. drupal_handle_request() C:UserspkosenkoDocumentsMy Web Sitesdrupal8index.php:15
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 3. DrupalCoreDrupalKernel->boot() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludesbootstrap.inc:1455
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 4. DrupalCoreDrupalKernel->initializeContainer() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDrupalKernel.php:177
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 5. DrupalCoreDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDrupalKernel.php:417
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 6. SymfonyComponentDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDependencyInjectionContainer.php:21
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 7. service_container_prod->getConfig_FactoryService() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corevendorsymfonydependency-injectionSymfonyComponentDependencyInjectionContainer.php:312
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 8. DrupalCoreDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8sitesdefaultfilesphpservice_containerservice_container_prod.phpee4db37c805b53cf4742077273a172eb73b456ffe9176c517d4806dfced83e52.php:1260
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 9. SymfonyComponentDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDependencyInjectionContainer.php:21
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 10. service_container_prod->getConfig_StorageService() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corevendorsymfonydependency-injectionSymfonyComponentDependencyInjectionContainer.php:312
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 11. DrupalCoreDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8sitesdefaultfilesphpservice_containerservice_container_prod.phpee4db37c805b53cf4742077273a172eb73b456ffe9176c517d4806dfced83e52.php:1299
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 12. SymfonyComponentDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDependencyInjectionContainer.php:21
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 13. service_container_prod->getCache_ConfigService() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corevendorsymfonydependency-injectionSymfonyComponentDependencyInjectionContainer.php:312
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 14. DrupalCoreDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8sitesdefaultfilesphpservice_containerservice_container_prod.phpee4db37c805b53cf4742077273a172eb73b456ffe9176c517d4806dfced83e52.php:1048
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 15. SymfonyComponentDependencyInjectionContainer->get() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupalCoreDependencyInjectionContainer.php:21
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 16. service_container_prod->getCacheFactoryService() C:UserspkosenkoDocumentsMy Web Sitesdrupal8corevendorsymfonydependency-injectionSymfonyComponentDependencyInjectionContainer.php:312
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 17. DrupalCoreCacheCacheFactory->__construct() C:UserspkosenkoDocumentsMy Web Sitesdrupal8sitesdefaultfilesphpservice_containerservice_container_prod.phpee4db37c805b53cf4742077273a172eb73b456ffe9176c517d4806dfced83e52.php:1178
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 18. _drupal_error_handler() C:UserspkosenkoDocumentsMy Web Sitesdrupal8sitesdefaultfilesphpservice_containerservice_container_prod.phpee4db37c805b53cf4742077273a172eb73b456ffe9176c517d4806dfced83e52.php:32
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 19. _drupal_error_handler_real() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludesbootstrap.inc:1519
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 20. _drupal_log_error() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludeserrors.inc:79
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 21. drupal_maintenance_theme() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludeserrors.inc:135
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 22. _drupal_maintenance_theme() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludesbootstrap.inc:1865
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP 23. Drupal::config() C:UserspkosenkoDocumentsMy Web Sitesdrupal8coreincludestheme.maintenance.inc:58
[28-Mar-2014 12:04:33 America/Los_Angeles] PHP Fatal error: Call to a member function get() on a non-object in C:UserspkosenkoDocumentsMy Web Sitesdrupal8corelibDrupal.php on line 275
- Log in or register to post comments
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commented 1 June 2014 at 21:46
I’m mentoring someone who is experiencing this issue on their first D8 install, we have reinstalled to no avail. We need to have the ability to drush so we can test the migration path.
The configuration is a Mac using MAMP and it produces an error that suggests looking at #1428638: Forcing 127.0.0.1 instead of localhost for drush, however, it does not look like there is a problem based on what I’m seeing in the /etc/hosts file.
- Log in or register to post comments
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commented 1 June 2014 at 22:58
We figured it out. If you run drush sql-cli against D7 it will give you an error something like «mysql not found» and it turns out that running «which mysql» in fact did not produce anything.
So we had to update the $PATH environment variable for the terminal. In this case we put it into .bash_profile, adding the following path:
/Applications/MAMP/Library/bin
Then after adding this to the path we closed the terminal and opened a new session, typed «env» to confirm that the item now appears in the path.
Another solution is to install Acquia Dev Desktop: http://drupal.org/dctdi
- Log in or register to post comments
Thanks Ryan. Your solution in #11 worked. mysql was missing from my path variable on windows 7.
I am using wamp, drush and git bash
Updating the path variable fixed the error.
- Log in or register to post comments
Hi Kartagis,
I have the same errors on my Ubuntu instance. How did you get yours fixed?
- Log in or register to post comments
Comment #14
Kartagis
Turkish
Istanbul
CreditAttribution: Kartagis commented 6 September 2014 at 18:14
@wanflap, the error still stands on my CentOS VPS, however it doesn’t stop you from installing.
- Log in or register to post comments
| Version: | 8.0.x-dev | » 8.0.0-beta1 |
| Category: | Support request | » Bug report |
| Issue tags: | +Amsterdam2014 |
I´m Using MAMP 2.1.1
PHP 5.4.4
drupal-8.0.0-beta1.tar.gz
I fill the following steps:
1. Select an installation profile
2. Database configuration
and then i get this Error in my browser:
«The connection was reset
The connection to the server was reset while the page was loading.
- The site could be temporarily unavailable or too busy. Try again in a few moments.
- If you are unable to load any pages, check your computer’s network connection.
- If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.»
php_error.LOG
[03-Oct-2014 11:19:38 UTC] PHP Fatal error: Call to a member function get() on a non-object in /Users/myself/Documents/drupal.sites/drupal8/core/lib/Drupal.php on line 566
[03-Oct-2014 11:19:38 UTC] PHP Stack trace:
[03-Oct-2014 11:19:38 UTC] PHP 1. _drupal_exception_handler() /Users/myself/Documents/drupal.sites/drupal8/core/includes/bootstrap.inc:0
[03-Oct-2014 11:19:38 UTC] PHP 2. _drupal_log_error() /Users/myself/Documents/drupal.sites/drupal8/core/includes/bootstrap.inc:1080
[03-Oct-2014 11:19:38 UTC] PHP 3. Drupal::theme() /Users/myself/Documents/drupal.sites/drupal8/core/includes/errors.inc:128
- Log in or register to post comments
Comment #16
jelo CreditAttribution: jelo commented 18 October 2014 at 23:03
Running XAMPP on Windows results in the same error. D8 B1 does not install at all…
- Log in or register to post comments
| Version: | 8.0.0-beta1 | » 8.0.x-dev |
| Component: | update.module | » install system |
- Log in or register to post comments
Comment #19
Berdir
German
Switzerland
CreditAttribution: Berdir commented 22 October 2014 at 22:36
| Status: | Active | » Postponed (maintainer needs more info) |
See my notes in #2322269: Undefined method addDependencyTrait() Breaks VPS Install
As written there, this happens when an error happens very early. In this case it is an exception. You need to figure out what exception exactly by adding debug statements to _drupal_exception_handler(), like var_dump($e->getMessage()) and var_dump($e->getTraceAsString().
- Log in or register to post comments
I have been seeing this error
[Mon Nov 03 20:02:21.491327 2014] [:error] [pid 4671] [client ::1:50210] PHP Fatal error: Call to a member function get() on a non-object in /Users/rocks/Sites/drupal8/core/lib/Drupal.php on line 566
for a very long time in D8, maybe a year or more. It happens very early in install, before the 1st install page is displayed, only shows up once, only in the apache error log, and seems to have no affect on the install. The last is why I have mostly ignored it. But since D8 is now in beta it is probably more important to clean this up. I tried your debug statements in #19 but this error doesn’t seem to be going thru that code. If you can suggest someplace else to try to debug, I’ll give it a try.
- Log in or register to post comments
I just got this error on a fresh Drupal-8.0.0-beta3 install.
If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild
Fatal error: Call to a member function get() on a non-object in /home/harold/checkout/d8/core/lib/Drupal.php on line 566
I’ll try to debug this, but the reason I installed D8 is that I don’t understand anything in D8 
- Log in or register to post comments
I got this when I pushed some site code (theme, custom modules) from dev to test, and imported my database from dev to test (beta 2).
I tried truncating all cache_ tables and clearing php files in files dir, but that didn’t help.
update: Figured out my problem was caused by an empty salt string in $settings[‘hash_salt’] on my remote environment. (The salt is only generated on install). See also this drush issue on github.
- Log in or register to post comments
- Log in or register to post comments
- Log in or register to post comments
Seems like the other problems described in this issue have been dealt with. Can we close this issue?
- Log in or register to post comments
- Log in or register to post comments
| Status: | Postponed (maintainer needs more info) | » Closed (duplicate) |
- Log in or register to post comments
- Log in or register to post comments











