Forums / General Questions / Not sure what to make of this..

Not sure what to make of this..

Locked

Views: 975

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Dec 2007, 5:03 PM
#1
cfe avatar

cfe

New Zenner

Join Date:
Jun 2006
Posts:
86
Plugin Contributions:
0

Not sure what to make of this..

Possible hacking activity, but also perhaps just an odd occurrence.

The other day my website (www.cascadefire.com) suddenly began throwing php error's from the main page and the admin portal. I hadn't been editing the site, or really interacting with it in any way - and nor had anyone else to my knowledge. For this reason I wrote it off as a server issue and decided to wait for a few minutes. The main page came back up in that time, but the admin portal was still throwing a few errors that looked like the following:

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /home/cascade/public_html/Admin/includes/application_top.php on line 127

I checked the files mentioned, which were intact, but I restored their backed up counterparts anyways. No effect. I finally resolved the issue by restoring the 'config.core.php' file that resided in the Admin directory, not the one in the standard catalog directory. That file simply was no longer there, for some reason or another... :-/

I didn't find any suspicious activity in the logs, and no-one from another IP had accessed the ftp server. Nevertheless, it's a little disconcerting to have a critical file disappear....

Any thoughts?

Also, why didn't the PHP error point to the file in the Admin directory as the source of the problem?

Thanks!!

PS - According to my host nothing unusual was happened with my server that day.

20 Dec 2007, 9:38 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Not sure what to make of this..

cfe:

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /home/cascade/public_html/Admin/includes/application_top.php on line 127

Also, why didn't the PHP error point to the file in the Admin directory as the source of the problem?

Actually, it did.
You were running it "from" the "Admin" folder. As such, the includes/auto_loaders..... reference meant the one inside the Admin folder. If it had a preceding slash (/) then it would be an absolute path. But it didn't ... thus it was relative to the current working folder.
Hence, the second part of the error message which did mention the Admin folder gave you the second half of the information you needed to sort out what was happening.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2007, 4:20 PM
#3
cfe avatar

cfe

New Zenner

Join Date:
Jun 2006
Posts:
86
Plugin Contributions:
0

Re: Not sure what to make of this..

Ah

For some reason I thought these PHP error's always used absolute paths, my bad.

:oops: