Forums / General Questions / failed to open stream: No such file or directory

failed to open stream: No such file or directory

Locked

Views: 4,563

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
25 Jul 2009, 7:25 AM
#1
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

failed to open stream: No such file or directory

Hi,

Was hacked a few days ago, have removed the files and encryption coding left by the hacker (well as much as I can find at this time) I have an old version 1.2.4.
I thought id change my admin folder to make it harder to hack into, I did all that was required changed the 3 lines in the configure file, I get this error when I open the admin page, even going back to standard setting I still get this error, I also reloaded a back up file of that changed file and still get the same error. anyone know what the problem is?

Warning: main(/var/users/knoxie/dpt.co.nz/htdocs/includes/filenames.php): failed to open stream: No such file or directory in /var/users/dpt/dpt.co.nz/htdocs/***/includes/application_top.php on line 58

Warning: main(/var/users/knoxie/dpt.co.nz/htdocs/includes/filenames.php): failed to open stream: No such file or directory in /var/users/dpt/dpt.co.nz/htdocs/***/includes/application_top.php on line 58

Fatal error: main(): Failed opening required '/var/users/knoxie/dpt.co.nz/htdocs/includes/filenames.php' (include_path='.:/usr/local/lib/php') in /var/users/dpt/dpt.co.nz/htdocs/***/includes/application_top.php on line 58

25 Jul 2009, 8:49 AM
#2
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

Hi,

If you're not sure if you've removed all the hacked files would it not be safer to do a fresh install of zen cart? You could have vulnerabilities in your store that could come back to haunt you. :ohmy:

I would make a backup of the file I have then reinstall. If you have any mods reinstall them from the zen downloads page (instead of transferring directly from your original backup) as these might have vulnerable code in them.

I think this would be a safer bet. :smile:

25 Jul 2009, 9:27 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: failed to open stream: No such file or directory

It looks like the YOUR_NEW_ADMIN_FOLDER_NAME/includes/configure.php is missing or corrupted.

25 Jul 2009, 11:15 PM
#4
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

I re uploaded the configure file from the back up version, no change.

26 Jul 2009, 5:31 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: failed to open stream: No such file or directory

daz59:

Warning: main(/var/users/knoxie/dpt.co.nz/htdocs/includes/filenames.php): failed to open stream: No such file or directory in /var/users/dpt/dpt.co.nz/htdocs/***/includes/application_top.php on line 58
If you dissect that error message, you will see more clearly what's wrong:

This part says what file the system is being told to look for:

Warning: main(*/var/users/knoxie/dpt.co.nz/htdocs/includes/filenames.php):
And this part reveals the real information about where your files are really located:
... failed to open stream: No such file or directory in /var/users/dpt/dpt.co.nz/htdocs/
/includes/application_top.php on line 58

So ... inside your configure.php file, you need to fix the references to "knoxie/dpt.co.nz" to correctly point to "dpt.dpt.co.nz".

.
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.

26 Jul 2009, 10:43 AM
#6
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

when i change i to dpt as sugested I get this error

0 DB_ERROR_NOT_CONNECTED

26 Jul 2009, 10:47 AM
#7
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

deletee

26 Jul 2009, 11:01 AM
#8
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

thats with the forward slash there, with the full stop as you said I get the same message as my first post just with dpt instead of the knoxie

26 Jul 2009, 8:13 PM
#9
daz59 avatar

daz59

New Zenner

Join Date:
Feb 2005
Posts:
25
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

Remember this still happens after the back up files have been uploaded, so where else could the problem be?