Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Feb 2008
    Location
    Flint, MI
    Posts
    14
    Plugin Contributions
    0

    Default Admin suddenly blank page

    The site (MidMichiganCoin.com) had been working fine and then for some reason the admin is no longer accessible. When attempting to access admin there is just a blank page. I have checked for error log entries and all of the other ideas/suggestions without any help. I have a feeling it must be something simple but I am chasing my tail without success and could use some help isolating the problem.
    Here is my admin configure.php for review.

    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by zc_install on 2014-10-14 01:59:55
     */
    
    
    /*************** 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.      ***********/
    
    /**
     * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
     * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
     */
      define('HTTP_SERVER', 'http://midmichigancoin.com');
      define('HTTPS_SERVER', 'http://midmichigancoin.com');
      define('HTTP_CATALOG_SERVER', 'http://midmichigancoin.com');
      define('HTTPS_CATALOG_SERVER', 'http://midmichigancoin.com');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'false');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'false');
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    // 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_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)
      define('DIR_FS_ADMIN', preg_replace('#/includes/$#', '/', realpath(dirname(__FILE__) . '/../') . '/'));
      //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/midmichi/public_html/);
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/home/midmichi/public_html/logs');
    
      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
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', 'mmc2014');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'XXXXXXXXXX');
      define('DB_SERVER_PASSWORD', 'XXXXXXXXXX');
      define('DB_DATABASE', 'XXXXXXXXX');
    
      // 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/midmichi/public_html/cache');
    
    
    // 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
       */
    // EOF
    Computers, tech support, website development and maintenance. http://www.crab4web.com

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Admin suddenly blank page

    Please reply with as many answers to the posting tips as you can.

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

    Default Re: Admin suddenly blank page

    Quote Originally Posted by dbltoe View Post
    Please reply with as many answers to the posting tips as you can.
    Agreed. The more information provided about the affected site, the better our ability to provide useful help.


    Due to the lack of provided info, the following basic recommendations are all I can offer:
    http://www.zen-cart.com/content.php?124-blank-page
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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. #4
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: Admin suddenly blank page

    I was going to start a new thread, but I am having this issue after first updating to 1.5.3, and the issue is present with 1.5.4. I was very careful with the upgrade, and merged correctly. I tried last year and got the same thing, so reverted to back up luckily. The thing is, I am also trying to backup my includes/ and admin/ folders and then uploading the stock 1.5.4 includes/ and admin/ folder and it does the same thing.

    I have checked requirements and the server people gave me the following:-

    Apache - 2.2.27
    MySQL - 5.1.73
    PHP - 5.3.28

    Please see more details in snippet below:
    ==========
    root@server [~]# httpd -v
    Server version: Apache/2.2.27 (Unix)
    Server built: Jun 8 2014 12:38:17
    Cpanel::Easy::Apache v3.24.19 rev9999

    root@server [~]# mysql -V
    mysql Ver 14.14 Distrib 5.1.73, for unknown-linux-gnu (x86_64) using readline 5.1

    root@server [~]# php -v
    PHP 5.3.28 (cli) (built: Jun 8 2014 12:45:38)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with eAccelerator v0.9.6.1-ea, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    root@server [~]#
    ----------

    Apache Configuration:
    AllowOverride All
    -----
    cURL configuration details with PHP:

    curl
    cURL support => enabled
    cURL Information => 7.24.0

    ---
    SSL configuration details with PHP

    SSL Version => OpenSSL/1.0.0
    openssl
    OpenSSL support => enabled
    I am thinking as I have tried using unmodified 1.5.4 files and getting the same result, maybe as the OP, it could be a server setting that could be to blame. But everything looks okay on the list. I am going crazy with this I really don't know what to try :-(. The live site is perfect, still getting orders.

    I did have some issues at one point with admin error redirect error (too many redirects or something?). I can confirm I got this error on 1.5.3 and 1.5.4. Sorry for my input, I just felt if the OP had not done anything then perhaps it is a server issue as it might be with mine.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Admin suddenly blank page

    I did have some issues at one point with admin error redirect error (too many redirects or something?). I can confirm I got this error on 1.5.3 and 1.5.4. Sorry for my input, I just felt if the OP had not done anything then perhaps it is a server issue as it might be with mine.
    Were you using the same commercial template with 1.5.3? Unless the OP is using a commercial template like yours, I doubt it's the same.

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Admin suddenly blank page

    =====deleted by author=====
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  7. #7
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: Admin suddenly blank page

    Hello there,

    I am using a different template, its really strange. I know I have a few modules installed, but I thought it was extra strange when using stock files of 1.5.3 / 1.5.4 and it still had blank admin. I am still tinkering away trying to figure it out. I was extra careful merges, this is my third attempt with 1.5.3 (and now 1.5.4) and it always is the admin that has this issue and I have to keep reverting to backup of previous version.

  8. #8
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: Admin suddenly blank page

    I am having a developer try to figure it out. If somehow I find the solution I will post it here but appreciate any pointers. As OP said also, can't see any error logs associated.

  9. #9
    Join Date
    Feb 2008
    Location
    Flint, MI
    Posts
    14
    Plugin Contributions
    0

    Default Re: Admin suddenly blank page

    Sorry about not providing full information. I have included the info that was listed in the "posting tips".

    Zen-Cart V153
    updated from V150 to V153 October 2014, official upgrade and everything worked correctly after upgrade
    Plugins:
    Easy Populate 4
    Email Archiver
    Installed via hosting (Hostgator) one click install
    PHP 5.3.27 & PHP 5.4.17 (dual environment)
    MySQL 5.5.23 or higher
    Problem was noticed about 2 - 3 weeks ago.
    there are no debug entries for the problem time
    The only customizations made, were in appearance. The changes were made using a custom template and were mainly CSS and verbiage tweaks. There have been no changes made to the site or hosting that we are aware of. We have recently had some problems with other sites (WP) that were caused by the hosting updating PHP to 5.4. I have tried changing the PHP version to earlier versions, 5.3 & 5.2 and that made no change either. When I had problems with the other sites just changing the PHP version got them working again.
    I have searched the FAQ's, the forum and internet in general and haven't made any progress yet.

    The earlier versions used to specify the admin location in the "admin/includes" folder. Now I don't see where the admin folder name and location are specified. I believe this has something to do with the problem. There were some older errors that specified it couldn't find the old admin folder. That onky showed up a few times though and hasn't been reported lately. Thanks for the help!
    Computers, tech support, website development and maintenance. http://www.crab4web.com

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

    Default Re: Admin suddenly blank page

    Quote Originally Posted by mjcrabill View Post
    The earlier versions used to specify the admin location in the "admin/includes" folder. Now I don't see where the admin folder name and location are specified. I believe this has something to do with the problem. There were some older errors that specified it couldn't find the old admin folder. That onky showed up a few times though and hasn't been reported lately. Thanks for the help!
    In v1.5.4 if you're using configure.php files built by zc_install, then there is indeed NOT any specific "admin" path stored in the configure.php files. Instead, there is code to auto-detect the current working directory and use that, so that you don't have to do any file edits if you rename the admin directory.
    .

    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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Admin area suddenly showing a blank page
    By qwerty94 in forum General Questions
    Replies: 9
    Last Post: 15 Jun 2012, 12:03 PM
  2. Admin > Edit Order Suddenly Blank!
    By bumba000 in forum General Questions
    Replies: 2
    Last Post: 28 May 2010, 04:40 PM
  3. suddenly blank admin with errors
    By juza123 in forum General Questions
    Replies: 2
    Last Post: 22 May 2010, 07:16 PM
  4. Admin index.php suddenly blank
    By iamapizza in forum General Questions
    Replies: 4
    Last Post: 15 Aug 2008, 06:55 AM

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