Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    580
    Plugin Contributions
    0

    Default configuration problem -

    I am upgrading via a fresh install of 1.5.4 - And of Course it does not go as smoothly as I had hoped.

    The store is visible but the admin is blank page.. So this is what I have done...

    install via the install program. Changed the name of configure.php in both admin/includes and includes folders

    Changed the name of the admin file and the permissions.
    Changed the configure.php file via filezilla.

    See below: Rec a 404 page...

    Checked the logs and this is what they said - which is the end of my line of things to do..

    www.stitchnframeonline.com/zen-cart-v1.5.4/

    admin file configure.


    define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
    define('HTTPS_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
    define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');

    // 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', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    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', '/location/account/public_html/zen-cart-v1.5.4/myadmin/');
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/location/account/public_html/zen-cart-v1.5.4/');

    //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', '/location/account/public_html/zen-cart-v1.5.4/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', 'databaseuser2');
    define('DB_SERVER_PASSWORD', 'password');
    define('DB_DATABASE', 'database2');

    // 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', '/location/account/public_html/zen-cart-v1.5.4/cache');


    Error Log indicated this:
    [12-Jun-2015 13:24:27] PHP Parse error: syntax error, unexpected T_STATIC in /home6/stitchnf/public_html/zen-cart-v1.5.4/hannah/includes/classes/class.admin.zcObserverLogEventListener.php on line 118



    Around Line 118 is :

    * Set severity flags
    * If $notes is not false, then that means the malicious-content detector found things which should be deemed remarkable, so we elevate the severity to 'notice'
    */
    if ($notes !== false && $notes != '')
    {
    $severity = self::NOTICE;
    $flagged = 1;
    }

    /**
    * escalate severity if requested level is higher than calculated level
    */
    $levels = static::$levels;
    $levels_lookup = array_flip($levels);

    $integer_requested_severity = $requested_severity;
    if (is_string($requested_severity) && $requested_severity != '') {
    if (isset($levels_lookup[strtoupper($requested_severity)])) {
    $integer_requested_severity = $levels_lookup[strtoupper($requested_severity)];
    }
    }
    if ($integer_requested_severity > $severity) {


    IDEAS?

    TIA

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

    Default Re: configuration problem -

    install via the install program
    What install program???

    Blank page issues are in the FAQ's

    Did see this
    Code:
    define('DIR_WS_ADMIN', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    Probably should be
    Code:
    define('DIR_WS_ADMIN', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: configuration problem -

    And this:
    PHP Code:
      define('HTTP_SERVER''http://www.stitchnframeonline.com');
      
    define('HTTPS_SERVER''https://www.stitchnframeonline.com/zen-cart-v1.5.4');
      
    define('HTTP_CATALOG_SERVER''http://www.stitchnframeonline.com');
      
    define('HTTPS_CATALOG_SERVER''https://www.stitchnframeonline.com/zen-cart-v1.5.4'); 
    should be:
    PHP Code:
      define('HTTP_SERVER''http://www.stitchnframeonline.com');
      
    define('HTTPS_SERVER''https://www.stitchnframeonline.com');
      
    define('HTTP_CATALOG_SERVER''http://www.stitchnframeonline.com');
      
    define('HTTPS_CATALOG_SERVER''https://www.stitchnframeonline.com'); 

  4. #4
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    580
    Plugin Contributions
    0

    Default Re: configuration problem -

    Quote Originally Posted by kobra View Post
    What install program???

    Blank page issues are in the FAQ's

    Did see this
    Code:
    define('DIR_WS_ADMIN', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    Probably should be
    Code:
    define('DIR_WS_ADMIN', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');
    zencart_install

    Also I had spotted this and changed it to no effect - and then changed it back

    define('DIR_WS_ADMIN', '/myadmin/');
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');...will correct this

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: configuration problem -

    PHP Code:
    define('DIR_WS_ADMIN''/myadmin/');
      
    define('DIR_WS_CATALOG''/zen-cart-v1.5.4/');
      
    define('DIR_WS_HTTPS_ADMIN''/myadmin/');
      
    define('DIR_WS_HTTPS_CATALOG''/'); 
    is in fact not standard 1.5.4 code

    this is

    PHP Code:
      define('DIR_WS_ADMIN'preg_replace('#^' str_replace('-''\-'zen_parse_url(HTTP_SERVER'/path')) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/zen-cart-v1.5.4/');
      
    define('DIR_WS_CATALOG''/zen-cart-v1.5.4/');
      
    define('DIR_WS_HTTPS_ADMIN'preg_replace('#^' str_replace('-''\-'zen_parse_url(HTTPS_SERVER'/path')) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/zen-cart-v1.5.4/');
      
    define('DIR_WS_HTTPS_CATALOG''/zen-cart-v1.5.4/'); 
    I suggest deleting the configure.php files and rerun the zc_install, and let ZC create the configure files

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: configuration problem -

    Quote Originally Posted by stitchnkitty View Post
    The store is visible but the admin is blank page..
    Which store are you/we discussing here.
    http://www.stitchnframeonline.com/zen-cart-v1.5.4/
    or
    http://www.stitchnframeonline.com/

    These are two different functional stores from the front end, and I can only guess about the backend.

    I don't like guessing. :-(

    Quote Originally Posted by stitchnkitty View Post
    admin file configure.

    define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
    define('HTTPS_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
    define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
    for the time being (since you don't have SSL enabled). you/we can ignore the lines with HTTPS, which gives us the following URL for both the storefront and admin of the store:
    'http://www.stitchnframeonline.com'

    Quote Originally Posted by stitchnkitty View Post
    define('DIR_WS_ADMIN', '/myadmin/');
    This gets added to the URL above to determine where the admin files are to be found, namely:
    http://www.stitchnframeonline.com/myadmin/

    IOW, when you attempt to go the the admin of the 'new' store (in the zen-cart-v1.5.4 folder) you are actually accessing the old files. This is sure to cause unexpected problems.

    Quote Originally Posted by stitchnkitty View Post
    define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
    This is correct for the new/upgraded store... being derived from
    define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com'); plus define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/')

    == 'http://www.stitchnframeonline.com/zen-cart-v1.5.4/

    Quote Originally Posted by stitchnkitty View Post
    define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    You're not using SSL at the moment, these can be ignored.

    Quote Originally Posted by stitchnkitty View Post
    define('DIR_FS_ADMIN', '/location/account/public_html/zen-cart-v1.5.4/myadmin/');
    This path doesn't match the URI previously defined
    http://www.stitchnframeonline.com/myadmin/ vs
    http://www.stitchnframeonline.com/ze...1.5.4/myadmin/

    In short, you have errors in your configure.php file(s)

    Kobra's suggested change(s) probably won't have any affect on account of the fact that both of those relate to the SSL functions/settings, which you (currently) have disabled (and should keep disabled until you take care of the non-SSL issues, as the SSL could only complicate matters).

    Based on what I'm seeing here, you'll need to change
    define('DIR_WS_ADMIN', '/myadmin/'); to
    define('DIR_WS_ADMIN', '/zen-cart-v1.5.4/myadmin/'); (for the new/updated site admin)

    If/when you decide to re-enable the SSL you'll need to take care of the define('HTTPS_xxxxxx') settings.

    You should also try to be consistent with your server/path settings. Although it seems common practice to use something like
    define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com/zen-cart-v1.5.4'); in conjuction with something like
    define('DIR_WS_HTTP_CATALOG', '/');

    In MY opinion, it is better to use
    define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com); in conjunction with
    define('DIR_WS_HTTP_CATALOG', '/zen-cart-v1.5.4/');

    The end result is the same in either case (http://www.stitchnframeonline.com/zen-cart-v1.5.4/) but the consistancy help avoid accidental defines such as is going to happen with:
    define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4'); combined with
    define('DIR_WS_HTTP_CATALOG', '/zen-cart-v1.5.4/'); which gives a final URI of
    'https://www.stitchnframeonline.com/zen-cart-v1.5.4/zen-cart-v1.5.4/' (or similar).

    Anyway, hopefully this has been of more help rather than serving to add to the confusion.

    Cheers
    RodG

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: configuration problem -

    For the error message
    Code:
    Error Log indicated this:
    [12-Jun-2015 13:24:27] PHP Parse error: syntax error, unexpected T_STATIC in /home6/stitchnf/public_html/zen-cart-v1.5.4/hannah/includes/classes/class.admin.zcObserverLogEventListener.php on line 118
    to be issued, you're running Zen Cart v1.5.4 on a PHP version earlier than 5.3. The issue has been identified and a work-around posted earlier this year by DrByte: http://www.zen-cart.com/showthread.p...04#post1270404

  8. #8
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    580
    Plugin Contributions
    0

    Default Re: configuration problem -

    This is insane- This step is always a glitch for me and I can not understand why...

    First of all - Thank you so very much for all the suggestions... RodG your comments were soooo informative and explained so much. however, no matter what I had done the dreaded blank page is still with me.. So..

    I messed with the configure files a bit and after reading all the information again and again.. This should not be necessary....???

    Failing at this..

    I have gone back and deleted the configure files; uploaded the dis-configure.php to both admin/includes and the includes. using the appropriate files for each...and meticulously started over reading both installation instructions and also the FAQ on how to rename the admin. Then going back to the installer and launching to http://www.stitchnframeonline.com/ze...v1.5.4/myadmin to no avail...

    So here is some confirmation to RodG Q? the zen-cart-v1.5.4 is a subfolder to my main website and is housing my test site for the newest version of zencart and also to test the all business responsive template for mobile friendly format....Also to test the manual credit card module that is not indicated for v1.5.4.....

    PHP on the server indicates that it is currently set on "PHP 5.4 (Single php.ini)" so i have no idea why the zen-cart-v1.5.4 log is giving me the coding given above... Also after the second installation - I did check the log again and the coding is the same....that is the only indication of problems...


    Oh one other thing if it will help...during installation I did get an

    ! PHP output buffer(gzip) = off. TIA

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: configuration problem -

    Unfortunately because you can't login to the admin, it is not possible to identify what php version ZC isbeing presented.

    It has been previously identified that the error listed only occurs for PHP below 5.3. Recommendation would be to entertain the idea that perhaps it really is <5.3 and follow the guidance provided in that thread.

    To no avail? What does that mean (in more detail)? Same error message(s), something different, etc?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: configuration problem -

    Quote Originally Posted by stitchnkitty View Post
    PHP on the server indicates that it is currently set on "PHP 5.4 (Single php.ini)" so i have no idea why the zen-cart-v1.5.4 log is giving me the coding given above.
    Where are you seeing this?

    Probably not important, but I thought I'd take another look at the store to see what had changed since I last look (and after you replaced and re-edited the config files.

    It looks like you are *closer* to having it work than it was before (perhaps), but in its *current state* the zc_install folder still exists, which has revealed a couple of things of importance.

    1) admin/includes/configure.php= NOT FOUND
    2)

    • PHP Version = 5.2.17



    So, 1st thing to do, if possible, is upgrade your PHP. If that isn't possible, you should apply the patches mentioned by lat9. (don't be fooled, updating PHP is generally easier than patching the code, as long as your webhost provides that option, which most do).

    The second thing to do is place an unedited configure.php file in the admin/includes/ folder and run the zc_installer again. Just to be on the safe side, I'd be replacing both configure.php files with unedited copies). I

    If you've already renamed your admin folder then you should rename it back to /admin/ until the install scripts tell you to rename it again.

    Please make sure you are using the configure.php files from v1.5.4. It is often tempting to copy these from an existing/older installation (many times with good success), but the later versions include a bit more 'intelligence' that helps avoid many of the problems that some/many people had with the original code.

    Between these two things it will be very hard to actually get things wrong.

    Cheers
    RodG



 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. configuration.php problem?
    By carter in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Apr 2009, 12:55 PM
  2. configuration problem
    By stregoi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Apr 2007, 09:42 PM
  3. File Configuration problem
    By virago in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 15 Aug 2006, 09:34 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