Zen Cart Logo
Forums / General Questions / Front End Pages Blank after Admin folder Rename

Front End Pages Blank after Admin folder Rename

Locked

Views: 2,464

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
15 Dec 2010, 3:35 AM
#1
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Front End Pages Blank after Admin folder Rename

I renamed my admin folder and everything seemed to work as planned. I can access everything in the Admin via the renamed folder without a problem. When I visit the front end of my site however I get nothing but a blank white page. I know there has to be a simple solution, but can not find anything in the help on what to do. Please Help!

Cory

15 Dec 2010, 3:51 AM
#3
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Thanks for the reply Kobra. I have already stepped through this help file however. Maybe if you can see my config file it would help. I took out the database info and replaced my admin folder name with 'myadminfolder'

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://www.alsliquor.com'); define('HTTPS_SERVER', 'https://www.alsliquor.com'); define('HTTP_CATALOG_SERVER', 'http://www.alsliquor.com'); define('HTTPS_CATALOG_SERVER', 'https://www.alsliquor.com'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_ADMIN', '/myadminfolder/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/myadminfolder/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/home/www/alsliquor.com/myadminfolder/'); define('DIR_FS_CATALOG', '/home/www/alsliquor.com/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection [changed to keep this a secret] define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'prefix'); define('DB_SERVER', 'server'); define('DB_SERVER_USERNAME', 'user'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/www/alsliquor.com/cache'); // EOF
15 Dec 2010, 3:53 AM
#4
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Also when I edited this file, I only changed the three spots from 'admin' to my specified name. After I completed this, I changed my admin folder name on my server. Also I CHMOD the configure.php file to 444.

15 Dec 2010, 3:57 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

Front End Pages Blank after Admin folder Rename

I have already stepped through this help file however

Actually changing the admin configure file does not impact the front end

There must have been some other thing that was done/changed

You can look with FTP at your non admin files at the modified date

15 Dec 2010, 6:02 PM
#6
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

You are right Kobra, I did open and re-upload my configure.php file that is found in the 'includes' folder. However I did not change anything in this file. Please see below:

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://www.alsliquor.com'); define('HTTPS_SERVER', 'https://www.alsliquor.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/www/alsliquor.com/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'prefix'); define('DB_SERVER', 'server'); define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/www/alsliquor.com/cache'); // EOF
15 Dec 2010, 7:53 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

I did open and re-upload my configure.php file
If that is the only file with a recent date I woud quadruple check that it is not corrupt

What do you use to open/edit these files with

Maybe ias long as you have it locally, delete the one on the server and upload your local copy

If you did not change it, why did you reload it?

15 Dec 2010, 8:52 PM
#8
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

I used Textpad to edit the file and FileZilla to upload and CHMOD.

I have been asking myself why did I re-upload the file quite a few times in the last 12 hours. I have tried to upload my backup file and this is still giving me the same result. I have tried just about everything I can think of.

Thanks for the help, is there anything else you know of to do?

15 Dec 2010, 9:29 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

Thanks for the help, is there anything else you know of to do?
Computers and code do not make decisions

There has to be something else that changed

15 Dec 2010, 9:59 PM
#10
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

I agree Kobra. I will retrace my steps again to ensure there was nothing else edited and will be sure to let you know what I find, if anything. Thanks

15 Dec 2010, 10:46 PM
#11
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Is there a way I can re-create the configure.php file and give that a whirl? Do you know of a good place to start sense I can't use a file from a fresh install because this is the file created when running the zc_install?

I have checked all files across the site and I have only edited the two configure files in the last week according to two different ftp programs.

I am very willing to try anything at this point. Thanks again Kobra.

15 Dec 2010, 11:45 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

In the tutorial, it discusses error logs
If using ver 1.3.9h and may be any 1.3.9.x install they will be in your /cache dir

What do they say?

16 Dec 2010, 9:39 PM
#13
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Unfortuantally I am running v1.3.8a. I did try to install the cache system as instructed in the tutorial, but could not get it to report anything in the cache folder.

I did however check it today and there is a .sql file that was written with today's date, but when I open it there is just a couple very long lines of gibberish. If you think it would be helpful I could post that.

Thanks again for the help.

17 Dec 2010, 1:25 AM
#14
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Is there any other files besides the configure.php file that may cause the entire front end of the site to not show up. There isn't even anything when I check the source code. I am really running out of ideas here, if you can please let me know if there is anything else I can check. Thanks.

17 Dec 2010, 3:03 AM
#15
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

OK I finally got the cache file record to work and here was the content of the file that was written when I went to the home page of my front end.

installerConfigKeys|a:1:{s:8:"language";s:7:"english";}logfilename|s:27:"Dec-17-2010_02-37-45-j8mTLW";installerConfigInfo|a:0:{}

I have no idea what this means. I have also tried a couple different things without any success. I have circled around and come back to where I have started. I am thinking now I may have deleted a file off of my server unintentionally. Hope this may help you diagnose my probs it possible. Thanks!

18 Dec 2010, 7:35 PM
#16
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Alright so I am just going to keep posting what I am up to trying to hammer my way through this in hopes that someone out there can help.

I am still working with the configure.php file that is located in the root --> includes of my site. I am getting a completely blank page (source code and everything) when visiting the front end of my site. When I change the table prefix to nothing and refresh my page it still comes up blank, but it takes me to the 'down_for_maintenance' in the address bar, still coming up blank.

When I put my table prefix back in place my homepage comes up blank once again.

18 Dec 2010, 9:51 PM
#17
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

OK I did some more changing and I am still without success, but I did however get a different error in my error log. If someone can please tell me what this means:

[18-Dec-2010 21:47:32] PHP Fatal error: Call to undefined function: file_put_contents() in /home/www/alsliquor.com/index.php on line 14

I am thinking this means I have a line messed up somewhere but am drawing a blank as where to find it.

18 Dec 2010, 10:50 PM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

If this is a new install and you are just beginning to edit/change things....
Try reloading/overwriting all the files from a fresh distribution of the same version that you first installed

With FTP this should be only a few drag & drop excecutions

18 Dec 2010, 10:57 PM
#19
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Front End Pages Blank after Admin folder Rename

Thanks for the reply Kobra. Unfortunately this was a store I created about 2 years ago and I was just getting around to moving the admin folder when I had this problem. I have quite a few mods done and I am a little cautious about reloading all of the core files. Is there a way to know which files may be causing my problem? I know it is probably a needle in a hay stack.

18 Dec 2010, 11:03 PM
#20
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Front End Pages Blank after Admin folder Rename

[18-Dec-2010 21:47:32] [B]PHP Fatal error[/B]: Call to undefined function:

Search the tutorials for "PHP Fatal error"