1
PTlooker
Changing server...
  • 2004/1/2 4:08

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Hi!
Im now changing server and when i put everything on the new server and go to the page it gives me this error:

Fatal error: Call to a member function on a non-object in /home/weblook/public_html/kernel/configitem.php on line 286

In that line i have this:

$sql = 'SELECT * FROM '.$this->db->prefix('config');

Please tell me whats my problem and how can i solve it...
Thanks in advance!

2
PTlooker
Re: Changing server...and fatal error!
  • 2004/1/2 6:05

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


Still waiting for an answer plz...

3
NRTMOD
Re: Changing server...and fatal error!
  • 2004/1/2 6:10

  • NRTMOD

  • Just popping in

  • Posts: 31

  • Since: 2003/12/13


How about the MySQL server? have you changed that too.
This error seems to be an access error to the database.

I change my server recently and had to mess around with the SQL settings for it to work properly.


4
PTlooker
Re: Changing server...and fatal error!
  • 2004/1/2 6:33

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


i make a backup from the old database and now in this one i have update the .sql file...seems everything like the old one...

5
PTlooker
Re: Changing server...and fatal error!
  • 2004/1/2 11:10

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


please anyone help me...

6
Mithrandir
Re: Changing server...and fatal error!

Well, the problem is that the database object is not getting instantiated properly. Check your mainfile.php to see if the settings are correct. That's the best I can do atm.

7
PTlooker
Re: Changing server...and fatal error!
  • 2004/1/2 11:27

  • PTlooker

  • Just can't stay away

  • Posts: 447

  • Since: 2003/6/15


but what do i check in mainfile.php? please tell me exactly what to do...

8
Herko
Re: Changing server...and fatal error!
  • 2004/1/2 11:36

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Whoa... Please next time before you try to undertake something you're not familiar with, do a little research in advance. This question has been answered MANY times before in these forums, so a little search would have wielded a wealth of information. And tone down a little on the demanding tone, we're all trying to help you

Anyways, what you need to do EXACTLY, is download the mainfile.php file from your server, open it in your fav text editor, and make sure that the database servername, database username, database user password and database name are absolutely correct. You should have these values provided by your hosting provider. Make sure that it is correctly spelled, that the servername has NO trailing slash, and that the usernames and passwords are case sensitive. When you have corrected this, save, upload to your server, overwriting the defect mainfile.php, make sure it is set to read-only (chmod 444), and reload your site by going to your sites URL.

Herko

9
NRTMOD
Re: Changing server...and fatal error!
  • 2004/1/2 18:53

  • NRTMOD

  • Just popping in

  • Posts: 31

  • Since: 2003/12/13


yep. check that mainfile.php

Sorry I should of stated that earlier...

10
tewlz
Re: Changing server...
  • 2004/1/12 13:37

  • tewlz

  • Just popping in

  • Posts: 1

  • Since: 2002/6/26


I am also trying to move the installation and get the same error. It appears that this is a common problem:
http://www.google.ca/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=configitem.php+on+line+286

I have checked the mainfile.php - I am positive that it is correct - the database exists, has "stuff" in it, usernames and passwords are correct (although different than on the original install).

Login

Who's Online

206 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 206


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