phase2 / drupal-lab

A sample Drupal 8 site with a Pattern Lab Twig powered theme.
GNU General Public License v2.0
60 stars 22 forks source link

site-setup.sh (install) > Fatal error: Call to undefined function system_get_info() #21

Closed ElijahLynn closed 8 years ago

ElijahLynn commented 8 years ago

Installing off of master with site-setup.sh and getting this error towards the end. Debugging now.

Installing site...
You are about to CREATE the 'sites/default/files/.ht.sqlite' database. Do you want to continue? (y/n): y
PHP Fatal error:  Call to undefined function system_get_info() in /home/elijah/websites/sandbox/drupal-lab/web/core/includes/install.inc on line 109
PHP Stack trace:
PHP   1. {main}() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/drush.php:0
PHP   2. drush_main() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/drush.php:12
PHP   3. Drush\Boot\BaseBoot->bootstrap_and_dispatch() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/preflight.inc:66
PHP   4. drush_dispatch() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP   5. call_user_func_array:{/home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:185}() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:185
PHP   6. drush_command() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:185
PHP   7. _drush_invoke_hooks() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:217
PHP   8. call_user_func_array:{/home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:366}() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:366
PHP   9. drush_core_site_install() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/includes/command.inc:366
PHP  10. drush_core_site_install_version() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/commands/core/site_install.drush.inc:247
PHP  11. install_begin_request() /home/elijah/websites/sandbox/drupal-lab/vendor/drush/drush/commands/core/drupal/site_install.inc:17
PHP  12. install_verify_database_settings() /home/elijah/websites/sandbox/drupal-lab/web/core/includes/install.core.inc:365
PHP  13. install_database_errors() /home/elijah/websites/sandbox/drupal-lab/web/core/includes/install.core.inc:1093
PHP  14. drupal_install_profile_distribution_name() /home/elijah/websites/sandbox/drupal-lab/web/core/includes/install.core.inc:1126
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                        [error]
Error: Call to undefined function system_get_info() in /home/elijah/websites/sandbox/drupal-lab/web/core/includes/install.inc, line 109
ElijahLynn commented 8 years ago

K, looks like when I went from PHP 5.5 to 5.6 I didn't reinstall SQLite.

For those on Ubuntu, 14.04 in my case run:

sudo apt-get install php5-sqlite or sudo apt-get install php5.6-sqlite

Then do a php --info | grep sqlite to see if you have it installed.

ElijahLynn commented 8 years ago

We should probably do a check for the .ht.sqlite file but maybe that should actually be upstream in Drush.