I have uploaded Drupal 6-2 file and got this error:

Fatal error: Call to undefined function: db_is_active() in /home/www/vambutai.atwebpages.com/includes/bootstrap.inc on line 387

WHAT to do?

Comments

djdub’s picture

this is my first ever attempt to install Drupal.

Fatal error: Unknown function: db_is_active() in /home/vanguardmedia/htdocs/includes/bootstrap.inc on line 387

the call is in boostrap.inc, but where is this function (supposed to be) defined?

Beata43’s picture

I love Joomla

It seems with Drupal no success and nobody can help.
I wanted to try Drupal but it seems I need stay better with Joomla

djdub’s picture

Well, I told myself several days ago to be patient, because I have heard that support responses are slow here, but I am just about to give up and try mambo or joomla.
I really wanted to try to run Drupal because when I did some comparitive searches on CMSs, I have heard that it's design schema is much better, and that it is less resource intensive (the two things are probably not coincidental and usually go hand in had, BTW), but it makes no sense for me to wait weeks or re-ask questions just to get this thing off the ground.
I am not exactly wet behind the ears when it comes to PHP or the LAMP environment (although I was attempting to install this on a shared host, not my own server, I had full access to the mysql database), it would help if someone could atleast come into this thread and share where the db_is_active() function is supposed to be so I can try to track down why it wasn't included.

HotDrupal.com’s picture

Have you tried just cleaning out the directory, redownloading and unpacking 6.2, and uploading all the files again into a fresh directory?

I've never seen this error with my clients.

Steve
HotDrupal.com - Drupal Hosting

Beata43’s picture

Because I didn't get help, I left Drupal

Now I am trying Wordpress

stattler’s picture

I am facing the same error when I run the update.php file.I don't know how to fix this. I will be with Drupal, by the way.

_________________________________
Let's talk statistics at www.stattalk.org

supanup’s picture

Today is my first day with Drupal!
Unable to figure out this Fatal Error
Any help is much appreciated.

ainigma32’s picture

The function db_is_active is located in /includes/database.inc The reason this error pops up is that this file is not yet included at the time that the function is called. This is obviously a bug (will report this later and link here)

The reason this only happens to some users is that the function is only called if the system is unable to find certain vital files.
In this case the files concerned are /modules/system/system.module and /modules/filter/filter.module if either of these cannot be found the system tries to do a database lookup to locate the files.
Prior to the database call the system checks if the database is available and there is the link to the db_is_active function.

So it would appear that the advice by hotdrupal.com in #872606 was spot on: reupload/copy the files again and make sure alle the files are there.

HTH

allanmboyd’s picture

I got the same problem today - also my first time installing Drupal. I am using Windows which might make a difference.

The fix was to ensure appropriate directories within the drupal install were readable and executable. (Personally I took no chances and modified all the directories in my apache html root - htdocs - to be rx to everyone i.e. chmod -R uog+rx *). I don't know what the equivalent Windows command is - I am using cygwin - but the principal is the same.

- Allan.

mashik’s picture

You are absolutely right. I had the same error, checked the files you've mentioned and one of them was corrupted. I uploaded the file again and everything is working now.
THANKS!