Drupal 6 Install Profile Fail: Call to undefined function db_result() in path.inc

Aug
23
0

I’ve just spent hours trying to get an install profile to work, which was giving me this error:

Fatal error: Call to undefined function db_result() in [site_root]/includes/path.inc on line 54

Google helped to an extent; the problem, it seemed, cropped up with a number of installation profiles and it’s during the execution of hook_profile_modules() that it appears. The most common cause, it seemed, was to do with the JQuery UI module, and in particular the link to the library itself, which you have to download separately. I had no such problem, however – thanks to a couple of lines in my (Dush) make file it had already been downloaded, and removing JQuery Ui from the list of modules to install didn’t fix it. Nor did excluding date_api, another module with which this problem can occur.

In the end I had to go through each of the modules I wanted my installation profile to enable for me – a lot of them – systematically in order to find the culprit.

The culprit, it turns out, was robotstxt. Hope this is of some help to someone – I’ve wasted hours of today!

(I should point out, by the way, that this probably isn’t the fault of the module in question!)

Posted

August 23rd, 2011

Category

Drupal

Comments

no comments

 

No comments

Add your comment

The content of this field is kept private and will not be shown publicly.

About Me

Lukas White, LAMP Developer Manchester

I'm a web developer based in Manchester, England. I also design websites.  I generally favour open-source technologies such as PHP, MySQL and JQuery, and I have extensive experience using Drupal.

Read more »

Recent Comments

1 hour 15 min ago Anonymous commented on Gift Certificates in Drupal Commerce:

I am using the steps which you are given...
1) created a line item type "Gift Certificate...

Read more...
5 days 19 hours ago tabernario commented on Using an Additional Database in Drupal 7:

Thank you. I've spent a lot of time trying to conect to a civicrm database.

Perfect...

Read more...
1 week 4 days ago Anonymous commented on Using an Additional Database in Drupal 7:

Hi
I have small issue coming when i was migrate drupal 6 to drupal 7 site..
My...

Read more...