1
Hostile
Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/14 18:22

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I just uploaded all the files in the 2.0.4 -> 2.0.5 upgrade and when I try to access my site I get the following error:

[b]Fatal error[/b]: Call to undefined function: getdatabaseconnection() in [b]/home/hostile/public_html/st/include/common.php[/bon line [b]75[/b]


I opened the new common.php and here is the entire snippet of code with line 75 in bold:

// #################### Connect to DB ##################
    
require_once XOOPS_ROOT_PATH.'/class/database/databasefactory.php';
    if (
$HTTP_SERVER_VARS['REQUEST_METHOD'] != 'POST' || !xoops_refcheck(XOOPS_DB_CHKREF)) {
        
define('XOOPS_DB_PROXY'1);
    }
    [
b]$xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection();[/b]


I have not modified any code and the only 3rd party module I have installed is XoopsChat which I doubt is a problem.

2
ronhab
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/14 20:48

  • ronhab

  • Friend of XOOPS

  • Posts: 160

  • Since: 2003/4/27


That doesn't necessarily mean it is an error with the code in that file, per se. XOOPS throws that type of error whenever it can not connect to the database. Did mainfile.php change at all? That is the file that contains the connection settings to the DB.

3
onokazu
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 2:00

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Try re-uploading files under class/database.

4
Hostile
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 2:03

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


mainfile.php was not a file in the new update so it has not been changed.

Can anyone help me? My website has been down all day after I updated to a "stable, recommended" version. I have not modified the code in anyway. I installed 2.0.3 fresh and have updated to 2.0.4 and now 2.0.5.

This is getting ridiclious.

5
Hostile
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 2:06

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


Quote:

onokazu wrote:
Try re-uploading files under class/database.


It did nothing.

6
onokazu
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 2:10

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Then try php debug. If it is reading the correct file (class/database/databasefactory.php), the error shouldnt appear since the function (getDatabaseConnection) is defined in that file.

7
Hostile
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 11:22

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I ran all the files in that directory and I just got a blank browser window.

8
costi
Re: Fatal error with upgrade from 2.0.4 -> 2.0.5
  • 2003/10/15 12:31

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


Something like that happened to me when I upgraded. It was because I had PHPAccelerator instaled and the cache files were not cleared.

I just uninstalled the damn thing. I needed it for EzPublish, but XOOPS is fast enough.

Login

Who's Online

174 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits