Fatal Error Call To Undefined Function Db_query In Drupal
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Domain AccessIssues Fatal error: Call to undefined function db_query() in /sites/all/modules/domain/domain.bootstrap.inc Closed (duplicate)Project:Domain AccessVersion:7.x-3.11Component:CodePriority:MajorCategory:Bug reportAssigned:UnassignedReporter:garrettfisherCreated:January 12, 2012 - 22:24Updated:May 21, 2015 - 16:55 Log in or register to update this issue Jump to:Most recent comment 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 agentrickard CreditAttribution: agentrickard commented January 12, 2012 at 10:39pm Category: bug » support Status: Active » Postponed (maintainer needs more info) Have you editing settings.php as instructed? Seriously, if this were a real issue, I'd never have released the module. Log in or register to post comments Comment #2 agentrickard CreditAttribution: agentrickard commented January 12, 2012 at 10:40pm Status: Postponed (maintainer needs more info) » Closed (works as designed) https://drupal.org/node/477372 Log in or register to post comments Comment #3 jwilson3 CreditAttribution: jwilson3 commented June 14, 2013 at 1:59pm In my case,
that make connections all over the world. Join today Community Community Home Getting Involved Chat Forum SupportPost installation Unable to load function db_query() in cache.inc Posted by pcfeeler@gmail.com on July 23, 2012 at 3:33pm my site returns this error: Fatal error: Call to undefined function https://www.drupal.org/node/1403264 db_query() in /home/admin/domains/dupalparsi.com/public_html/drupalparsi/includes/cache.inc on line 357 i use apc. i have tried registry rebuild module but it didn`t help. does anybody know the solution? please help, my site is down. Log in or register to post comments ⋅ Categories: Drupal 7.x https://www.drupal.org/node/1697838 Comments Solution for: Reply to comment Unable to load function db_query RaulMuroc commented November 19, 2012 at 9:18pm Here is the workarounds and possible solutions: #1176856: Anonymous users get failure if page_cache_without_database = TRUE and page_cache_invoke_hooks = FALSE Hope it helps. Log in or register to post comments News itemsDrupal news Planet Drupal Association news Social media directory Security announcements Jobs Our communityCommunity Getting involved Services, Training & Hosting Groups & Meetups DrupalCon Code of conduct DocumentationDocumentation Drupal 8 docs Drupal 7 docs Developer docs api.drupal.org Drupal code baseDownload & Extend Drupal core Modules Themes Distributions Governance of communityAbout Web accessibility The Drupal Association About Drupal.org Terms of service Privacy policy Drupal is a registered trademark of Dries Buytaert.
that make connections all over the world. Join today Community Community Home Getting Involved Chat Forum SupportTheme development Fatal Error: https://www.drupal.org/node/673680 call to undefined function db_query() Posted by kuldeepkaundal on January 4, 2010 at 11:02am hi, i am trying o call a php file through ajax using following code inside a page in my themes directory: $(document).ready(function(){ $("#selectionresult").hide(); $("#country").change( function() { $("#selectionresult").hide(); $("#result").html('Retrieving ...'); $.ajax({ type: "POST", data: "data=" + $(this).val(), url: " echo path_to_theme(); /get_states.php", fatal error success: function(msg){ if (msg != ''){ $("#selectionresult").html(msg).show(); $("#result").html(''); } else{ $("#result").html('No item result'); } } }); }); }); The get_states.php file makes use of db_query and other drupal functions. but i keep getting Fatal Error: call to undefined function db_query() error,plz suggest me a way to resolve this issue. Thanks, Kul. Log in or register to fatal error call post comments ⋅ Categories: Drupal 5.x Comments Outside of Drupal stevenc commented January 4, 2010 at 4:20pm Your "get_states.php" file is outside of Drupal, therefore it doesn't have access to any of Drupal's functions. Basically, you can't just add PHP files to a Drupal framework and call them directly. The processing code must exist within another module. What I think you want to do here is create a Menu item in your module, then have the menu callback refer to whatever code you want it to implement. ---------------------------------Steven Wright Log in or register to post comments No,that file is not outside kuldeepkaundal commented January 5, 2010 at 4:32am No,that file is not outside drupal, its in the themes directory itself, i am calling this file inside my custom page. Log in or register to post comments Drupal framework, not directory stevenc commented January 5, 2010 at 1:44pm By "outside" I meant that the file was outside of the Drupal framework. Drupal has no aware