Forums / General Questions / Home page blank, admin works fine

Home page blank, admin works fine

Views: 1,668

Results 1 to 12 of 12
1 Jan 2016, 9:35 PM
#1
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Home page blank, admin works fine

I have a seasonal business on my website and have not looked at it recently. I went to try and do some work on it today and noticed that the store home page is blank. The admin control panel works fine and seems to be communicating with the database fine.

I haven't made any changes to this system in months, and it worked fine the last time I looked at it. There are no error messages in the log files.

I'm at a bit of a loss on how to troubleshoot this problem. The only clue I can give (which may not be much), is that when I click on "Online Catalog" from the Admin home page, it is sending the browser to "website address/index.php?main_page=". There is nothing after the "=", but I'm not sure there is supposed to be or not.

I have checked out the support page on blank pages, but that hasn't been much help since the log files are not giving up any information.

Anyone have any ideas on where to start looking?

2 Jan 2016, 1:50 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Home page blank, admin works fine

FloridaJohn:

I have a seasonal business on my website and have not looked at it recently. I went to try and do some work on it today and noticed that the store home page is blank. The admin control panel works fine and seems to be communicating with the database fine.

I haven't made any changes to this system in months, and it worked fine the last time I looked at it. There are no error messages in the log files.

I'm at a bit of a loss on how to troubleshoot this problem. The only clue I can give (which may not be much), is that when I click on "Online Catalog" from the Admin home page, it is sending the browser to "website address/index.php?main_page=". There is nothing after the "=", but I'm not sure there is supposed to be or not.

I have checked out the support page on blank pages, but that hasn't been much help since the log files are not giving up any information.

Anyone have any ideas on where to start looking?

I would verify that the folder location to store the log files is identified to the proper location... This is easiest done by posting the contents of includes/configure.php (obscure DB login credentials)

It may be possible that something has been overwritten/lost but the important thing is for you to try to access the site like a customer which normally wouldn't include anything past website address..

Do you host sub-sites/sub-domains? what if you try to access: website address/index.php

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Jan 2016, 2:53 AM
#3
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Re: Home page blank, admin works fine

mc12345678:

I would verify that the folder location to store the log files is identified to the proper location... This is easiest done by posting the contents of includes/configure.php (obscure DB login credentials)
Here it is:

<?php

/**

 * dist-configure.php

 *

 * @package Configuration Settings

 * @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

 * @version $Id: dist-configure.php 6329 2007-05-16 15:36:56Z drbyte $

 * @private

 */

// Define the webserver and path parameters

// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com

// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com

define('HTTP_SERVER', 'http://websitename.com');

define('HTTPS_SERVER', 'https://websitename.com');



// Use secure webserver for checkout procedure?

define('ENABLE_SSL', 'true');



// 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', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');



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', '/websitedirectory/');



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', 'zen_'); // prefix for database table names -- preferred to be left empty

define('DB_SERVER', 'serverlocation');

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'db'); 

// 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', '/websitedirectory');



?>

mc12345678:

Do you host sub-sites/sub-domains? what if you try to access: website address/index.php
Yes, there is more to this particular website than just the store. All the other 'static' pages are working just fine. Just the landing page to the store is coming up blank.

Thanks for the help. I hope it's something simple I am overlooking.

3 Jan 2016, 9:37 PM
#4
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Re: Home page blank, admin works fine

I still haven't solved this issue, but looking at the system logs (not the zencart ones), I see the following error appear several times:

[Sun Jan 03 12:32:53 2016] [error] [client 50.62.130.219] ModSecurity: Access denied with connection close (phase 2). 1 [file "/web/httpd2/modsecurity.d/activated_rules/modsecurity_gd_07_post_guardian.conf"] [line "25"] [id "10710"] [msg "BLOCKED - Automated Floods(cached)"] [hostname "72.167.158.233"] [uri "/"] [unique_id "Vol3Za3J2F8AACap13QAAAAz"]

Some basic research shows this could be a hack attempt (and ModSecurity is working as designed), but I am wondering if something in the zencart system got corrupted and is sending something out that is being interpreted as "bad" and therefore preventing my main page from appearing.

The Admin panel continues to work perfectly without any hiccups. I just can't get the main page to display.

There are no recent entries in the zencart log files.

Any help in tracking this problem down would be much appreciated. This system was working fine as late as Dec 15, and I have made no changes to the system what so ever, aside from some pricing updates from within the Admin system.

4 Jan 2016, 12:15 AM
#5
kobra avatar

kobra

Black Belt

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

Re: Home page blank, admin works fine

What is your "Landing Page" comprised of??
Is it a ZenCart Page?

You also posted the contents of "dist-configure.php" when contents of "configure.php" was asked for
We can not help if you respond with erroneous information

Zen-Venom Get Bitten

4 Jan 2016, 1:44 AM
#6
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Re: Home page blank, admin works fine

kobra:

What is your "Landing Page" comprised of??
Is it a ZenCart Page?
I'm not sure what you mean exactly by "landing page." If you mean the home page of the website, then, no, that is not a zencart page. If you mean the main page of the "store", then, yes, it is the main zencart page. The first page a customer will see when interacting with zencart. This is the page that will not appear, located at "website address/index.php?main_page=".

kobra:

You also posted the contents of "dist-configure.php" when contents of "configure.php" was asked for
We can not help if you respond with erroneous information
That is the contents of my "configure.php" file located in my "/include/" directory. Are you saying that is not the correct configure file that should be in that location? It has worked successfully for several years in that location.

4 Jan 2016, 3:15 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Home page blank, admin works fine

FloridaJohn:

//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/

define('DIR_FS_CATALOG', '/websitedirectory/');
You've taken the time to obscure all the helpful information, so we must ask: Is "/websitedirectory/" in this DIR_FS_CATALOG entry actually the complete physical path to the folder in which your ZC files are stored? It needs to be. It's not a "relative path" which assumes it's located below some other folder. It must be the complete actual folder path.

I'm assuming you've taken the same liberty with DIR_FS_SQL_CACHE and that it's the same as DIR_FS_CATALOG with '/cache/' on the end.

On the assumption that everything else you've obscured is factually correct, there doesn't appear to be anything wrong with the configure.php contents.

So, since you've said there are no myDebug-xxxxxx.log error logs being recorded in the /logs or /cache folders (per http://www.zen-cart.com/content.php?124-blank-page ) then you'll need to work with your hosting company to view the Apache error_log on your server where the server is recording the errors triggering the blank page before the Zen Cart logging infrastructure can intercept and relocate the logs to the more easily accessible /logs folder.

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

4 Jan 2016, 4:57 AM
#8
kobra avatar

kobra

Black Belt

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

Re: Home page blank, admin works fine

FloridaJohn:

I'm not sure what you mean exactly by "landing page."
Just the landing page to the store is coming up blank.
So please clarify what your referencing as to "your landing page" here
I assume that you mean the ZenCart's main page

Zen-Venom Get Bitten

5 Jan 2016, 12:12 AM
#9
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Re: Home page blank, admin works fine

DrByte:

You've taken the time to obscure all the helpful information, so we must ask: Is "/websitedirectory/" in this DIR_FS_CATALOG entry actually the complete physical path to the folder in which your ZC files are stored? It needs to be. It's not a "relative path" which assumes it's located below some other folder. It must be the complete actual folder path.
Yes, this is the correct path and the same one that is listed in the admin configure.php file.

DrByte:

I'm assuming you've taken the same liberty with DIR_FS_SQL_CACHE and that it's the same as DIR_FS_CATALOG with '/cache/' on the end.
Yes, correct. All of these settings have been unchanged for a year and everything worked fine up until (as near as I can tell) about two weeks ago.

DrByte:

On the assumption that everything else you've obscured is factually correct, there doesn't appear to be anything wrong with the configure.php contents.
OK. At least we've ruled something out. :smile:

DrByte:

So, since you've said there are no myDebug-xxxxxx.log error logs being recorded in the /logs or /cache folders (per http://www.zen-cart.com/content.php?124-blank-page ) then you'll need to work with your hosting company to view the Apache error_log on your server where the server is recording the errors triggering the blank page before the Zen Cart logging infrastructure can intercept and relocate the logs to the more easily accessible /logs folder.
I have contacted my hosting company (GoDaddy), and they cannot find anything on their side that shows any problem. Their suggestion was to ask you guys. :blink:

5 Jan 2016, 12:13 AM
#10
floridajohn avatar

floridajohn

New Zenner

Join Date:
Feb 2010
Posts:
7
Plugin Contributions:
0

Re: Home page blank, admin works fine

kobra:

So please clarify what your referencing as to "your landing page" here
I assume that you mean the ZenCart's main page
OK, sorry about that, I didn't realize I had introduced that term. :blush:

I do, indeed, mean the ZenCart main page (as seen by the customer).

5 Jan 2016, 2:42 AM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Home page blank, admin works fine

DrByte:

You've taken the time to obscure all the helpful information, so we must ask: Is "/websitedirectory/" in this DIR_FS_CATALOG entry actually the complete physical path to the folder in which your ZC files are stored? It needs to be. It's not a "relative path" which assumes it's located below some other folder. It must be the complete actual folder path.

I'm assuming you've taken the same liberty with DIR_FS_SQL_CACHE and that it's the same as DIR_FS_CATALOG with '/cache/' on the end.

On the assumption that everything else you've obscured is factually correct, there doesn't appear to be anything wrong with the configure.php contents.

So, since you've said there are no myDebug-xxxxxx.log error logs being recorded in the /logs or /cache folders (per http://www.zen-cart.com/content.php?124-blank-page ) then you'll need to work with your hosting company to view the Apache error_log on your server where the server is recording the errors triggering the blank page before the Zen Cart logging infrastructure can intercept and relocate the logs to the more easily accessible /logs folder.

So, the absence of a DIR_FS_LOGS difine isn't an issue resulting in the lack of log files? Thought there was something about ZC 1.5.4 not needing it, but seemed like it could be an issue...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Jan 2016, 2:48 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Home page blank, admin works fine

FloridaJohn:

OK, sorry about that, I didn't realize I had introduced that term. :blush:

I do, indeed, mean the ZenCart main page (as seen by the customer).

Well, it is possible to redefine where customers first land which is part of whaat kobra was asking about...

If it is infact supposed to be yourpage/index.php then still searching for reasons...

Since you said the webaddress is used for multiple reasons/offerings, do you have a .htaccess file in the root of your store (subdirectory: /store/), and if not do you have one in the directory above that? And if not there, do you have one in a directory above that?

If the answer is yes to any of those, please post the contents and identify the location related to the store.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...