Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Upgraded to 1.5.4, now blank screen when admin logged in PHP 5.4.25

    Hi, I upgraded because paypal checkout was broken.

    Backed up the original database
    Uploaded the newer version of Zen Cart via FTP.

    The store looks like it is working from the main. Needs tweaks again to the front page, logo. etc. But logging in as admin, takes me to login.php?camefrom=index.php and the page is blank. Configuration files for admin and regular includes look like all is normal. And again, the rest of the store seems fine.

    Now MySQL is a bit old, and I probably should upgrade it. Just worried about other multiple domains with wordpress and vbulletin and something getting broken. But maybe I should not be worried?

    Unix box running CPanel and WHM.
    Server type: MySQL
    Server version: 5.1.73-cll - MySQL Community Server (GPLv2)
    cpsrvd 11.46.2.3
    Database client version: libmysql - 5.1.73
    PHP extension: mysqli
    PHP Version information: 4.0.10.7

    Note: I only know enough to probably mess things up royally.
    Thank you!

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

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    Quote Originally Posted by randychase View Post
    ...
    Unix box running CPanel and WHM.
    Server type: MySQL
    Server version: 5.1.73-cll - MySQL Community Server (GPLv2)
    cpsrvd 11.46.2.3
    Database client version: libmysql - 5.1.73
    PHP extension: mysqli
    PHP Version information: 4.0.10.7
    ...
    Zen Cart 1.5.4 runs out-of-box on PHP 5.3+ Most likely the very old version is the culprit.

    If you could also answer the rest of the questions listed in the "Posting Tips" it would be helpful (when posting scroll up to read these).
    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

  3. #3
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    Sorry, I copied the version of phpmyadmin instead. Ooops. The php is PHP Version 5.4.25

    I did q quick look over before the first post to see if anything else is needed. Version of ZC is noted. Happened when I upgraded. I uploaded via FTP, using ZCinstall I upgraded the DB from 1.1 to 1.5 doing one step at a time. Store looks normal and working.

  4. #4
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    Did miss that there were logs!

    Code:
    [21-Jan-2015 09:33:22 America/New_York] PHP Warning:  curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /home/chasecam/public_html/store/zc_install/includes/modules/pages/inspect/header_php.php on line 560
    Latest log.

  5. #5
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    I see that this log was from the attempt to log in while zcintall still existed.

    Just tried logging in and I am getting this:
    Code:
    [21-Jan-2015 13:06:31 America/New_York] PHP Fatal error:  Class 'zcPassword' not found in /home/chasecam/public_html/store/includes/functions/password_funcs.php on line 15

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

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    Trying to get a better picture of the "upgrade". Did you start with completely "clean" Zen Cart 1.5.4 files (no files or alterations from old versions)? Then run "/zc_install" placed in the root folder for the store ("/store/zc_install") against a new database? Then test, install modules, etc... And finally remove the "test" database, copy the old database to the new database location, then upgrade the database at the new location using "zc_install"?

    Can you post "/includes/configure.php" and "/includes/my-renamed-admin/configure.php" (remove the database password and change the admin location if mentioned to "/admin")?


    If you use PayPal (and possibly some other payment modules or shipping modules retrieving live quotes) you may run into some issues unless the hosting provider can disable the "open_basedir" restriction. I have not personally tested against an environment with this restriction in place... Things may still work...
    Last edited by lhungil; 21 Jan 2015 at 07:40 PM.
    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
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    There was an existing and working store on the domain in /store/ I think it was ver 1.1? There was a module installed for paypal and one for using stripe, then USPS and UPS for shipping. Nothing else was changed or unique.
    I downloaded a new version and simply uploaded the files, without modifying anything, after I did a database backup.

    Then I ran zcinstall and db upgrade, one step at a time (1.1-1.2, 1.2-1.3, etc)

    Then (going on fuzzy memory) I think it said successful but I needed to delete the zcinstall directory, which I did. I don't recall any other options for doing anything else. My next step was to log in as admin but that did not work. I tried having password reset, but that did not work as it was not sending me the email. I then went into the db using phpmyadmin to change the email address to an alternate one and that seemed to work on a password reset.

    But every time I log in as admin, I just get to a blank page.

  8. #8
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    configure.php file

    <?php
    /**
    * @package Configuration Settings circa 1.5.1
    * @copyright Copyright 2003-2012 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-04-13 12:47:03
    */


    /*************** 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.chasecam.com');
    define('HTTPS_SERVER', 'https://www.chasecam.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', '/home/chasecam/public_html/store/');

    //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/chasecam/public_html/store/logs');

    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', '');
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'chasecam_zencart');
    define('DB_SERVER_PASSWORD', '-deleted');
    define('DB_DATABASE', 'chasecam_zencart');

    // 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/chasecam/public_html/store/cache');

    // EOF

  9. #9
    Join Date
    Apr 2014
    Location
    Tennessee!
    Posts
    8
    Plugin Contributions
    0

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    /admin/includes/configure.php

    * dist-configure.php
    * SAMPLE (but NOT FUNCTIONAL) file
    *
    * @package Configuration Settings
    * @package Admin
    * @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
    * @version GIT: $Id: Author: DrByte Modified in v1.5.4 $
    * @private
    */
    /**
    * 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://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');

    // 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_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__) . '/../') . '/'));

    define('DIR_FS_CATALOG', '/');

    //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', DIR_FS_CATALOG . '/home/chasecam/public_html/store/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', '');
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'chasecam_zencart');
    define('DB_SERVER_PASSWORD', 'deleted');
    define('DB_DATABASE', 'chasecam_zencart');

    // 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/chasecam/public_html/store/cache');


    //Explanations of 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
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.yourdomain.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
    */

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

    Default Re: Upgraded to 1.5.4, now blank screen when admin logged in

    1. Since you're using PHP 5.4, you do NOT need this fix: http://www.zen-cart.com/showthread.p...04#post1270404
    (just mentioning this so that others know this has been considered)

    2. This:

    Quote Originally Posted by randychase View Post
    /admin/includes/configure.php

    /**
    * 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://localhost');
    define('HTTPS_SERVER', 'https://localhost');
    define('HTTP_CATALOG_SERVER', 'http://localhost');
    define('HTTPS_CATALOG_SERVER', 'https://localhost');
    I recommend fixing these as your first step.
    .

    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 2 12 LastLast

Similar Threads

  1. v154 Blank screen when i goto Admin login...... help please...
    By amebb in forum General Questions
    Replies: 17
    Last Post: 21 Jul 2015, 11:31 AM
  2. v154 Blank Screen After Upgrade (fixed) but now blank screen after login!
    By Kias Henry in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 23 Jun 2015, 07:32 PM
  3. Replies: 7
    Last Post: 12 Apr 2015, 08:38 PM
  4. v138a Host upgraded to php 5.3.10 - store pages blank now
    By nosnip13 in forum Upgrading to 1.5.x
    Replies: 11
    Last Post: 22 Apr 2012, 09:56 AM
  5. Blank Screen When Logging into Admin
    By TheJaspMan in forum General Questions
    Replies: 4
    Last Post: 4 Aug 2010, 03:48 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