Zen Cart Logo
Forums / General Questions / Accidentally overwrote index.php

Accidentally overwrote index.php

Views: 1,017

Results 1 to 8 of 8
13 Jan 2012, 3:12 PM
#1
mikemetz avatar

mikemetz

New Zenner

Join Date:
Jan 2012
Posts:
5
Plugin Contributions:
0

Accidentally overwrote index.php

Hi,
I've accidentally overwritten an index.php file. The path to the file is:
http://mywebsite.com/mywebsitename/adminurrhtcqq/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

13 Jan 2012, 3:18 PM
#2
stevesh avatar

stevesh

Black Belt

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

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.

13 Jan 2012, 3:27 PM
#3
mikemetz avatar

mikemetz

New Zenner

Join Date:
Jan 2012
Posts:
5
Plugin Contributions:
0

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

13 Jan 2012, 3:31 PM
#4
mikemetz avatar

mikemetz

New Zenner

Join Date:
Jan 2012
Posts:
5
Plugin Contributions:
0

Re: Accidentally overwrote index.php

Is there an alternate way of logging into my site?

13 Jan 2012, 3:42 PM
#5
stevesh avatar

stevesh

Black Belt

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

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.

13 Jan 2012, 3:55 PM
#6
mikemetz avatar

mikemetz

New Zenner

Join Date:
Jan 2012
Posts:
5
Plugin Contributions:
0

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

13 Jan 2012, 4:03 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Accidentally overwrote index.php

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

13 Jan 2012, 4:09 PM
#8
mikemetz avatar

mikemetz

New Zenner

Join Date:
Jan 2012
Posts:
5
Plugin Contributions:
0

Re: Accidentally overwrote index.php

THAT WAS IT!!!!!!

WOW!! Thanks a million.