My environment:
Php 4.4
Windows Server 2003 IIS 6.0
MySQL 4.0.24
Drupal 4.6.2
Hosting: www.webhost4life.com
Website url: site295.webhost4life.com/cmsaub
Settings:
I have checked and double checked the appropriate php.ini settings.
Since I’m on IIS, .htaccess doesn’t apply.
I have checked and confirmed the database is setup and connected correctly through the settings.php file.
I have loaded the database.mysql tables
At installation, when I point my browser to the url where drupal is installed and set up, I get the following error:
Fatal error: Call to undefined function: db_fetch_object() in c:\...\includes\bootstrap.inc on line 199
I found the function in the includes/database.mysql.inc file, so I included this file in the index.php file. Now I get the error:
Fatal error: Call to undefined function: db_query() in c:\...\includes\bootstrap.inc on line 199
I have yet to find where that function is defined, but now I'm beginning to wonder if there is something wrong with the installation files for Drupal 4.6.2 specifically regarding the correct include statements for the required files.
Comments
Comment #1
killes@www.drop.org commentedI've no idea what is happening here. Since it does not seem to be a common error it migth be particular install. Setting to normal.
Comment #2
DriesK commentedHis site now says:
Fatal error: _setconfig(): Failed opening required './configuration.php' (include_path='.;c:\php\includes') in c:\hosting\webhost4life\member\cmsaub\includes\mambo.php on line 553
Doesn't seem Drupal-related anymore.
Comment #3
killes@www.drop.org commentedthanks for spotting that, closing
Comment #4
zirafi commentedHi,
I got the same kind of error while doing the install on Solaris 10:
Apache2
MySQL4.0.15
PHP5.0.5
Mozilla browser
I opened my site as http://localhost/index.php and the browser comes up with the following Fatal error:
--------------------------------------------------------------------------------------------------
Warning: main(sites/default/settings.php) [function.main]: failed to open stream: No such file or directory in /var/apache2/www/drupal-4.6.3/includes/bootstrap.inc on line 642
...............................
...............................
Warning: main() [function.include]: Failed opening 'includes/module.inc' for inclusion (include_path='/usr/local/lib/php') in /var/apache2/www/drupal-4.6.3/includes/bootstrap.inc on line 645
Fatal error: Call to undefined function db_fetch_object() in /var/apache2/www/drupal-4.6.3/includes/bootstrap.inc on line 199
------------------------------------------------------------------------------------------------
When i installed PHP 5.0.5 and i was prompted to do this.
"You may want to add: /usr/local/lib/php to your php.ini include_path"
Then i edited php.ini and add the line like this.
........................................................
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
include_path ="/usr/local/lib/php"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes
......................................................
Am i doing something wrong here.
Quick help is highly appreciated.
Thanks,
Paradesi
www.eparadesi.com
Comment #5
chx commentedCan't believe that someone with a simple support issue could file a critical bug report...