Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default 500 Error after Upgrading to 1.5.4

    I just upgraded from 1.5.1 to 1.5.4 using the Auto upgrade in my hosting company. Everything looked OK, except the Admin area. I renamed the admin folder as instructed.

    I can log in and access everything except the Configuration tab. It give me a 500 error page. Now, I did change WS_admin strings as my docs advised, but when I found out that I didn't need to do that for this version, I set them back.

    Here's my config. Thanks in advance.

    Tom

    <?php
    /**
    * @package Configuration Settings circa 1.5.4
    * @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 [[regtime]]
    */


    /*************** 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://legacyleathercraft.com');
    define('HTTPS_SERVER', 'https://legacyleathercraft.com');
    define('HTTP_CATALOG_SERVER', 'http://legacyleathercraft.com');
    define('HTTPS_CATALOG_SERVER', 'https://legacyleathercraft.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/agile4/public_html/legacyleathercraft.com/');

    //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/agile4/public_html/legacyleathercraft.com/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
    REMOVED

    // 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/agile4/public_html/legacyleathercraft.com/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

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

    Default Re: 500 Error after Upgrading to 1.5.4

    Possibly is an issue because of the choice to use the "auto-upgrade" from the host instead of the method described by the instruction more than likely used to make the other changes, but off the bat see to following incorrect info:

    Code:
    define('DIR_WS_CATALOG', '//');
    define('DIR_WS_HTTPS_CATALOG', '//');
    Each of those should have a single forward slash instead of double.

    Instructions for an upgrade such as needed for above upgrade: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: 500 Error after Upgrading to 1.5.4

    Thanks MC. I changed those 2 lines but still can't get the Config tab to open.

    Since I have upgraded incorrectly, what do I do now? I have (or had) numerous modules running. Am I going to have to make a fresh install? I could write by file-by-file backup back to the server, but that wouldn't return my database to the 1.5.x level. I THINK I have a good backup but I did that via my host and not sure how to restore it.

    It has to be something fairly simple..... Yes?
    Tom

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

    Default Re: 500 Error after Upgrading to 1.5.4

    At the moment I'm drawing a blank on what a 500 error specifically indicates or the general cause for it. (On a mobile phone so some things would take longer than others to find to offer that specific assistance.) But, basically what you are looking at is a possible difference in files between what should have been installed and what was... Yes, uploading your backup in place of the existing would not necessarily be wise. As to the database, hopefully that was a separate backup that could be used.

    When comparing differences, need to look at what files are present between the two and the differences between the two of the "matching" files. "Simple" yeah sort of, but can also be time consuming depending on the plugins already incorporated to the core.

    That said, if there hasn't been much done to the admin, could load up a new admin directory from a clean copy and at lest operate the store while you apply any applicable mods...just a thought. Do have to be careful though still depending on what all else has been done.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: 500 Error after Upgrading to 1.5.4

    500 error generally means you have something awry with the server. Might want to contact your host to see what's going on.

  6. #6
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: 500 Error after Upgrading to 1.5.4

    Check file and folder permissions,
    Assuming suphp folders should be 755 and files 644 with the exception being /includes/configure.php set to 444
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: 500 Error after Upgrading to 1.5.4

    Thanks to all.

    I went back last night, checked my server logs and found a permissions error. My ../zcadmin/configuration.php file has permissions set to 777 for some reason.

    All better now <g>.

    Tom

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

    Default Re: 500 Error after Upgrading to 1.5.4

    Quote Originally Posted by agile4 View Post
    Thanks to all.

    I went back last night, checked my server logs and found a permissions error. My ../zcadmin/configuration.php file has permissions set to 777 for some reason.

    All better now <g>.

    Tom
    And (by perception) now that it looks like your admin folder name has been posted (for all to see), suggest changing it which should be nothing more than ftp to rename.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: 500 Error after Upgrading to 1.5.4

    Quote Originally Posted by mc12345678 View Post
    And (by perception) now that it looks like your admin folder name has been posted (for all to see), suggest changing it which should be nothing more than ftp to rename.
    Yup. The zcadmin was just a temp name to work out the issues. But thanks for the reminder.

    Tom

 

 

Similar Threads

  1. Customer gets HTTP 500 error after order is placed -- after upgrading
    By Arunachala in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 21 Jun 2011, 08:28 PM
  2. Admin login blank - server error 500 upgrading ...f to g
    By carlvt88 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 4 Oct 2010, 04:56 AM
  3. 500 Error - FastCGI error message after database installation page.
    By hungoveragain in forum Installing on a Windows Server
    Replies: 8
    Last Post: 24 Sep 2010, 03:37 PM
  4. Replies: 1
    Last Post: 23 Sep 2010, 09:55 PM
  5. 500 errors after upgrading
    By MischiefDesignz in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 24 Aug 2010, 05:36 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