Closed (duplicate)
Project:
Domain
Version:
7.x-3.11
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2012 at 22:24 UTC
Updated:
21 May 2015 at 16:55 UTC
Jump to comment: Most recent
Unable to install Domain Access module in Drupal 7.10. After following installation instructions to a T, I get following error:
Fatal error: Call to undefined function db_query() in /sites/all/modules/domain/domain.bootstrap.inc on line 115
Then I add:
include_once DRUPAL_ROOT . '/includes/database/database.inc';
...to top of domain.bootstrap.inc
And then I get:
Fatal error: Call to undefined function theme() in /includes/install.core.inc on line 707
And the chain just keeps going and going with more and more errors no matter what I include. I am using latest module code and latest Drupal core. Ideas?
Comments
Comment #1
agentrickardHave you editing settings.php as instructed?
Seriously, if this were a real issue, I'd never have released the module.
Comment #2
agentrickardhttps://drupal.org/node/477372
Comment #3
jwilson3In my case, I was getting this error because the
include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';was coming *before* the$databasesarray, due to the nature of how we have our settings.php files setup, we have a shared_settings.php file that gets included for all settings environments.Since each environment has a different database, the only solution was to create duplicate code, by putting the domain settings include file in each environment's settings file *after* the database declaration, instead of in the ideal place (inside the shared settings include).
Comment #3.0
jwilson3Fatal error: Call to undefined function db_query() in /sites/all/modules/domain/domain.bootstrap.inc on line 115
Comment #4
br0kenThe error occurs when I'm trying to use Behat. I've included the "settings.inc" of the Domain module into my "settings.php", then execute the "behat -dl" and got an error: "Fatal error: Call to undefined function db_query() in /private/var/www/drupal/drupal-builds/compass/site/profiles/compass/modules/contrib/domain/domain.bootstrap.inc on line 112"
Comment #5
br0kenComment #6
br0kenComment #7
br0kenPlease, look at the related issue!!
Comment #8
Mahavir_Drupal commentedDoes any one has a solution to this issue yet???
Comment #9
agentrickardThe proper issue is the linked Behat. Otherwise, this is an installation error that was fixed long ago.