View Full Version : Error after moving to a new server
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?
Is there really no answer to this?
I would be very grateful for any help.
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
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.
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
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.
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
Edit: Sorry - i didn't se that message posted. It did not give me an e-mail notificateion... I'll read now.
Thank you very much! Problem solved. The .htaccess had disapeared. Sorry for beeing so stupid! :oops:
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.