Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2012
    Posts
    5
    Plugin Contributions
    0

    Default Accidentally overwrote index.php

    Hi,
    I've accidentally overwritten an index.php file. The path to the file is:
    http://mywebsite.com/mywebsitename/a...tcqq/index.php

    The store is up and running just fine but I can't get to the administration page. I've tried replacing the file with a file from a zipped shopping cart without success. I might not be replacing the correct index.php, or more likely, there was info in the file I overwrote that points to my store. If that is the case I could sure use some help figuring out which lines to edit.
    I'm sorry if this is the wrong category. I couldn't figure out where to post this.
    Thanks for any and all help.
    Mike

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

    Default Re: Accidentally overwrote index.php

    The forum compacts links, so we can't see the path, but if your custom admin folder name ends in tcqq, it's the index.php file from the zip file's admin folder you want. That file isn't edited, as a rule.

  3. #3
    Join Date
    Jan 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Accidentally overwrote index.php

    Hi,
    I've replaced the index.php from the admin folder in the zip file but, when I try to login to my site, I get a blank page.
    Mike

  4. #4
    Join Date
    Jan 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Accidentally overwrote index.php

    Is there an alternate way of logging into my site?

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

    Default Re: Accidentally overwrote index.php

    Not that I know of.

    Check this: https://www.zen-cart.com/tutorials/index.php?article=82 and see if there are any error logs in your /cache folder.

  6. #6
    Join Date
    Jan 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Accidentally overwrote index.php

    The message from one of the DEBUG files:
    [13-Jan-2012 08:40:03] PHP Fatal error: Call to undefined function zen_check_url_get_terms() in /home/content/31/8765931/html/PROFISHCO/adminurrhtcqq/includes/languages/english/index.php on line 30

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

    Default Re: Accidentally overwrote index.php

    Looks like you might have overwritten that file, then ( adminurrhtcqq/includes/languages/english/index.php ).

  8. #8
    Join Date
    Jan 2012
    Posts
    5
    Plugin Contributions
    0

    Default Re: Accidentally overwrote index.php

    THAT WAS IT!!!!!!

    WOW!! Thanks a million.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 31 May 2013, 07:20 PM
  2. v150 Index.php file - Accidentally deleted
    By luxebohochic in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Aug 2012, 02:11 AM
  3. Accident: Overwrote configure.php
    By bpoilspill in forum General Questions
    Replies: 10
    Last Post: 23 Jul 2011, 04:06 AM
  4. Help - Overwrote configure.php file!
    By paulsingleton in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 May 2006, 09:07 PM

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