Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by FloridaJohn View Post
    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...

  3. #3
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by mc12345678 View Post
    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:
    Code:
    <?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');
    
    
    
    ?>
    Quote Originally Posted by mc12345678 View Post
    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.

  4. #4
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Last edited by kobra; 4 Jan 2016 at 01:17 AM.
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by kobra View Post
    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=".

    Quote Originally Posted by kobra View Post
    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.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by FloridaJohn View Post
    //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.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by 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

  9. #9
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by DrByte View Post
    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.

    Quote Originally Posted by DrByte View Post
    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.

    Quote Originally Posted by DrByte View Post
    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.

    Quote Originally Posted by DrByte View Post
    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.

  10. #10
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Home page blank, admin works fine

    Quote Originally Posted by kobra View Post
    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.

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Blank home page 155. Admin fine.
    By rweeks in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 8 Apr 2016, 09:32 PM
  2. v150 blank admin and zc_install page rest seems fine
    By JimmyV in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 17 Feb 2012, 05:49 PM
  3. 1.3.7-1.3.8 Admin Fine but Blank Shop page
    By Jeffey in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 2 Feb 2008, 04:20 AM
  4. Admin works fine but blank page for website
    By Lou in forum General Questions
    Replies: 4
    Last Post: 31 Jan 2008, 03:57 PM
  5. Admin works fine, shop doesnt
    By jwhalley in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 19 Jan 2008, 05:14 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR