WebmasterSite.net

After server move - path doesn't change

Version: 5.0.27
URL: http://lj-directory.com

PrintPrint


After server move - path doesn't change
Jenny
Forum Regular
Avatar

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Posts: 199
quote post #1
Posted 06/09/10 - 1:26 PM:

I have moved an older installation of WSN Links to a new server. I haven't encountered any errors except for one small problem: I changed the path in config.php to the new one (the domain is the same, it's just pointing to a new server), but for some reason the script is still looking for files at the old path location. I remember that the path used to be stored in the database as well, but I couldn't find it anymore... I also deleted .htaccess by the way.

I also can't login, which I assume is related?!? I had a new password generated, which isn't working.

This is the error message:

An error occoured at http://lj-directory.com/index.php?action=userlogin on 2010-06-09 21:08:37. Please relay this data to support. Error #2: 'include(/home/content/l/j/i/ljicon/html/logs/write_logs.php) [function.include]: failed to open stream: No such file or directory' in /home/ljdirect/public_html/index.php on line 217.

An error occoured at http://lj-directory.com/index.php?action=userlogin on 2010-06-09 21:08:37. Please relay this data to support. Error #2: 'include() [function.include]: Failed opening '/home/content/l/j/i/ljicon/html/logs/write_logs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')' in /home/ljdirect/public_html/index.php on line 217.



This "/home/content/l/j/i/ljicon/html/logs/write_logs.php" is still pointing to the old path, but this ($uploadpath = '/home/ljdirect/public_html/attachments/'wink is what's in config.php. Is there any other location where I have to change this?

Thanks.
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 06/09/10 - 9:17 PM:

write_logs.php is not a WSN file, it must be something you've placed in a template. The template PHP you wrote is the problem, you need to update it.

Edited by Paul on 06/09/10 - 9:21 PM
Jenny
Forum Regular
Avatar

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Posts: 199
quote post #3
Posted 06/10/10 - 12:18 AM:

Okay, so I did a lot of digging and finally found this bit of code at the end of index.php. I absolutely didn't put it there, I have no idea what it is. Maybe something from my old host?

$sid="451749";
include("/home/content/l/j/i/ljicon/html/logs/write_logs.php");

I took it out and the error is gone, so thanks for pointing me into the right direction :-)

But I still can't login (password is still supposed to be wrong) or register a new user account ("You did not complete all of the required fields. That name is already registered to another user. Please select a different name.")

I suppose I can't just somehow upload a new set of files and upgrade the databases??? The db information seems to be correct, all the categories, links and members show up fine.

Edited by Jenny on 06/10/10 - 12:28 AM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 06/10/10 - 7:02 PM:

If you didn't put it there, could you have been hacked? Check the content of the file or send it to me. Seems to be at least masquerading as a stats tracker or logging tool.

Did you try resetting your password? http://scripts.webmastersite.net/w...in-to-admin-panel-104.html
Jenny
Forum Regular
Avatar

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Posts: 199
quote post #5
Posted 06/10/10 - 11:26 PM:

I had downloaded the entire account from that server a few times as a backup, and I just checked all of the backups, but this /logs folder is nowhere. It might have been added by the old host (GoDaddy) and actual BE a stats tool...

I did reset the password, but I can't login with the new one either.
Jenny
Forum Regular
Avatar

Usergroup: Customer
Joined: May 11, 2003

Total Topics: 64
Total Posts: 199
quote post #6
Posted 06/12/10 - 6:08 AM:

I just did a manual upgrade to the latest version and whatever the problem was it seems to be gone. I just logged in as an admin.
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.