Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

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

    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  4. #4
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

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

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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    Quote Originally Posted by daz59 View Post
    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.

  6. #6
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

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

    deletee

  8. #8
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Feb 2005
    Posts
    25
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. failed to open stream: No such file or directory
    By Cnotation in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Oct 2008, 05:10 PM
  2. failed to open stream: No such file or directory
    By IllusionGuy in forum General Questions
    Replies: 3
    Last Post: 31 Aug 2007, 02:18 AM
  3. failed to open stream: No such file or directory
    By Liza_with_a_Z in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 2 Aug 2007, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg