PDA

View Full Version : Error after moving to a new server


maxa
04-24-2006, 04:58 PM
Hello,

I moved my site to a new server, copied the database and I updated rows 49-53 in include/config.php.

Now I get this:

Fatal error: Call to a member function on a non-object in /home/www/xxxxx.com/links/include/functions.php on line 47

Are there more configurations I need to do?

maxa
04-26-2006, 09:35 AM
Is there really no answer to this?

I would be very grateful for any help.

Boby
04-26-2006, 11:43 AM
Hello!

What version are you using? phpLD 2.0?
It would be good if you remove first all files in temp/templates/ and reinstall the script via http://www.yourdomain.com/install/index.php

Boby

maxa
04-26-2006, 12:22 PM
eh, where can I se version number if page is not loaded?

If I do a new install as you say, will I not loose anything of my records, settings or layout?

Thanks.

Boby
04-26-2006, 12:30 PM
Content visible to registered users only.
Hmm, just edit an original PHP file and somewhere on top you can see what ver. you are using. But it's not the important.

Content visible to registered users only.
Just keep all your files and you are OK. But remember, a backup is always good ;) (both files and DB)

Boby

maxa
04-26-2006, 04:11 PM
I'm sorry. It looks like I had done something wrong when I copied the database at the first place. That's why nothing was shown.

Now I started all over, copied files and database from old server, and now all looks fine at beginning. Directory first page looks fine. Latest links is showing the links, I can even log in to admin area, BUT WHEN I CLICK ON ANY OF THE DIRECTORY CATEGORIES, I GET 404 ERROR! :(

So I thought I'd follow you advice anyhow and run install. I copied the install folder again and tried to run /install/index.php, but I am only redirected to admin/login.php. Why can't I run the install? :cry:

Edit: The new server is with the same webhost with the same settings. So it should not be a mod_rewrite thing or so.

Boby
04-26-2006, 05:54 PM
The admin login page shows because you, the owner, must validate your username+password. Someone else could reinstall your script, it's just a security feature. After you enter correct user&passw you can start again with the installation.

Do you have the correct .htaccess file on your new domain? Is URL rewriting enabled for the new domain? Yes, it can be the same hoster, same server, same owner ... but htaccess files can be disabled for some domains. Can you show us an example (link to your directory)?

Boby

maxa
04-28-2006, 06:04 PM
Edit: Sorry - i didn't se that message posted. It did not give me an e-mail notificateion... I'll read now.

maxa
04-28-2006, 06:15 PM
Thank you very much! Problem solved. The .htaccess had disapeared. Sorry for beeing so stupid! :oops: