Forums / General Questions / Error Message After Renaming Admin Folder

Error Message After Renaming Admin Folder

Locked

Started by bgroup99 on 3 Oct 2006, 10:43 PM · Views: 2,142

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
3 Oct 2006, 10:43 PM
#1
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Error Message After Renaming Admin Folder

I recently renamed my admin folder to secure my site. The admin section of my store works fine; however, when I go to shop.thebricktongroup.com I get the following message:

Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.require]: failed to open stream: No such file or directory in /home/.frowsy/bgroup01/shop.thebricktongroup.com/index.php on line 43

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/local/php5/lib/php') in /home/.frowsy/bgroup01/shop.thebricktongroup.com/index.php on line 43

I had a similar, but slightly different error message before after I had deleted my template_default folder by mistake. However, this time the template_default folder appears to be in good order.

Any suggestions on what I should do? I'm pretty stumped.

Thanks,

Nate

4 Oct 2006, 12:40 AM
#2
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Error Message After Renaming Admin Folder

The error message is telling you where to look:

Warning: require(DIR_WS_TEMPLATEStemplate_default/common ...

Check your shop/includes/config.php file: - 'DIR_WS_TEMPLATES' is not being defined.

It should look like:

define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
4 Oct 2006, 4:03 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Error Message After Renaming Admin Folder

... and that suggests that you may have introduced a typo in your admin configure.php file when you edited it ... perhaps you didn't close a define() statement properly, or maybe your FTP upload of the changes is incomplete, etc.

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

16 Jul 2007, 11:33 AM
#4
milelk avatar

milelk

New Zenner

Join Date:
May 2007
Posts:
19
Plugin Contributions:
0

Re: Error Message After Renaming Admin Folder

I'm getting an opposite error, where my shop is working but I can't get into the admin area... My error is:

Warning: require(../../zen-cart-v1.3.7-full-fileset-12302006/admin/includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/windowam/public_html/store/admin/index.php on line 23

Warning: require(../../zen-cart-v1.3.7-full-fileset-12302006/admin/includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/windowam/public_html/store/admin/index.php on line 23

Fatal error: require() [function.require]: Failed opening required '../../zen-cart-v1.3.7-full-fileset-12302006/admin/includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/windowam/public_html/store/admin/index.php on line 23

I don't know if I should be changing things in the application_top file though...

16 Jul 2007, 11:40 AM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Error Message After Renaming Admin Folder

no if you renamed the admin folder then you will need to open the admin/includes/configure.php and redefine the three places that show /admin/
to / whatever you renamed to/

Zen cart PCI compliant Hosting

23 Jul 2007, 9:49 AM
#6
milelk avatar

milelk

New Zenner

Join Date:
May 2007
Posts:
19
Plugin Contributions:
0

Re: Error Message After Renaming Admin Folder

Dr Byte helped me out with my answer in this thread http://www.zen-cart.com/forum/showthread.php?t=66001, but basically my problem was I allowed Dreamweaver to update my paths automatically and incorrectly when I changed the admin folder name...