Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2011
    Posts
    21
    Plugin Contributions
    0

    Default SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    My web host yet again neglected to send a reminder email about SSL soon to expire, so I missed paying to renew. So I logged in there, paid and they installed the new SSL certificate. (They did the same thing last year, despite my having selected options for reminder emails.)

    With the certificate expired I could login to https://partsbyemc.com/catalog/zc_admin/login.php to see everything. Now that the certificate has been re-upped I can't login there. Can't add anything to the cart on the site.

    My web host insists it's not a problem on their end. Something is not communicating to browsers that yes, things ARE secure with SSL.

  2. #2
    Join Date
    Sep 2012
    Location
    Upstate South Carolina
    Posts
    96
    Plugin Contributions
    2

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    Try clearing your browser cache.

    Also consider using the cPanel free AutoSSL feature if you have it. No cost and renews automatically.

  3. #3
    Join Date
    Apr 2011
    Posts
    21
    Plugin Contributions
    0

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    Clearing cache of everything all the way back didn't fix it, not even after fixing the admin login

    Editing /catalog/zc_admin/includes/configure.php so all of these entries are https fixed the admin login, but the rest of the site is still trying to use http

    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'https://partsbyemc.com');
    define('HTTPS_SERVER', 'https://partsbyemc.com');
    define('HTTP_CATALOG_SERVER', 'https://partsbyemc.com');
    define('HTTPS_CATALOG_SERVER', 'https://partsbyemc.com');
    Last edited by EMCparts; 24 Jan 2022 at 02:34 PM.

  4. #4
    Join Date
    Apr 2011
    Posts
    21
    Plugin Contributions
    0

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    deleted duplicate post
    Last edited by EMCparts; 24 Jan 2022 at 02:35 PM.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    You might just have to clear cache. This URL comes up as secure for me. (You should also change your Zen Admin URL btw.)

    https://docs.zen-cart.com/user/new_u...owser_caching/
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Apr 2011
    Posts
    21
    Plugin Contributions
    0

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    Found the configure.php for the ZenCart catalog and changed this part

    // 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', 'https://partsbyemc.com');
    define('HTTPS_SERVER', 'https://partsbyemc.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    Now it works.

    Crazy thing is, after changing the permissions on the file, FileZilla insisted it was not successfully uploading and overwriting that file when it was. I used my site host's Cpanel file manager to change the permissions. Then I figured if FileZilla wasn't going to read the permissions properly, I'd edit through Cpanel... and FileZilla lied to me, repeatedly. It uploaded and overwrote the file.

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

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    Quote Originally Posted by EMCparts View Post
    Found the configure.php for the ZenCart catalog and changed this part

    Code:
    // 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', 'https://partsbyemc.com');
      define('HTTPS_SERVER', 'https://partsbyemc.com');
    
      // Use secure webserver for checkout procedure?
    By  define('ENABLE_SSL', 'true');
    Now it works.

    Crazy thing is, after changing the permissions on the file, FileZilla insisted it was not successfully uploading and overwriting that file when it was. I used my site host's Cpanel file manager to change the permissions. Then I figured if FileZilla wasn't going to read the permissions properly, I'd edit through Cpanel... and FileZilla lied to me, repeatedly. It uploaded and overwrote the file.
    Been a minute since I've used that particular utility, but if in making a change it makes a backup copy of the file before saving the changes, if the backup copy that exists is write only then the subsequent attempt to update the file will fail. Both files would need to be made writable to be successful.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: SSL renewal broke my site. Can't add to cart, can't login to ZC admin

    Because the configure.php file is read only, the safest practice is to delete it (or rename it) on the target system, then upload again; that way you'll never get false notifications of updates. I have been burned by this too and now never risk a failed overwrite.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Replies: 7
    Last Post: 16 Dec 2018, 07:47 PM
  2. v153 Can't login to admin after SSl was disabled, How to restore admin access?
    By alpheus in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 20 Dec 2014, 09:34 PM
  3. SSL now can't login to cart
    By tdgiftsol in forum General Questions
    Replies: 3
    Last Post: 5 Oct 2010, 10:06 PM
  4. Installed SSL not can't login to admin
    By dejavu in forum General Questions
    Replies: 4
    Last Post: 18 Apr 2008, 06:23 PM
  5. can't login to admin after SSL enabled
    By jonathanbee in forum Basic Configuration
    Replies: 2
    Last Post: 18 Feb 2008, 01:50 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