1
Booga
Server Move = Fata Error - Database
  • 2005/1/24 23:17

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


Hi, I have just moved a site to a new server. All files and database would appear ok as I have done this many times before.

The error i'm getting is:
Fatal error: Class xoopsmysqldatabaseCannot inherit from undefined class xoopsdatabase in /home/****/public_html/class/database/mysqldatabase.php on line 55


and the code in this file is:
51. 
52. * @package     kernel
53. 
* @subpackage  database
54. 
*/
55.class XoopsMySQLDatabase extends XoopsDatabase
56.
{
57.    /**
58.     * Database connection
59.     * @var resource
60.     */


I am thinking I have missed something simple. Does anyone have any ideas??

Marty.

2
brash
Re: Server Move = Fata Error - Database
  • 2005/1/24 23:27

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I'm assume you have altered your mainfile.php with any necessary changes?

3
Booga
Re: Server Move = Fata Error - Database
  • 2005/1/24 23:47

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


well, all information in mainfile.php should be the same. All usernames and passwords are the same.

4
brash
Re: Server Move = Fata Error - Database
  • 2005/1/25 0:00

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I'd double check the XOOPS_ROOT_PATH value just to be sure. Are there any differences in webserver or PHP version or environment from the old server to this new one?

5
Booga
Re: Server Move = Fata Error - Database
  • 2005/1/25 0:13

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


Hi Brash, thanks for helping, I have moved from 1 server to another at the same host. I would imagine they are configured the same as I have done this only a week ago with a different site and had no troubles.

I am sending a support ticket to see what they say.

I just deleted the database and re-restored it and now I am going to re-restore the site - maybe something went a bit silly with my FTP upload.

If you think of anything else that may be wrong please be kind and let me know.

Marty.

6
Booga
Re: Server Move = Fata Error - Database
  • 2005/1/25 0:18

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


here is the XOOPS_ROOT_PATH value which i'm sure is correct:

if (!isset($xoopsOption['nocommon'])) {
        include 
XOOPS_ROOT_PATH."/include/common.php";


is it supposed to be double quotes (") ??

7
brash
Re: Server Move = Fata Error - Database
  • 2005/1/25 0:27

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


No, that is just an include statement that is using the XOOPS_ROOT_PATH. To find what XOOPS_ROOT_PATH actually equals, you will need to look in your mainfile.php in your XOOPS root.

8
Booga
Re: Server Move = Fata Error - Database
  • 2005/1/25 0:43

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


Sorry Brash, I was looking in the wrong place.

Yes, the XOOPS_ROOT_PATH is correct = home/****/public_html

9
brash
Re: Server Move = Fata Error - Database
  • 2005/1/25 1:22

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


You might be able to get some more environment ifo by doing this. Create a file called phpinfo.php and place the following code into it;
Quote:

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

Once you've done this upload it to your XOOPS root direcotry and then access via your browser, e.ghttp://yourdomain.com/phpinfo.php . You should see a page detailing most of you webserver info.

10
Booga
Re: Server Move = Fata Error - Database
  • 2005/1/25 3:19

  • Booga

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/11/29


Hi, I did that and all appears to be good. This has got me totally confused.

I don't see anything wrong with the restored site.

Any other ideas are of course welcome.

Login

Who's Online

239 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits