Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2014
    Posts
    2
    Plugin Contributions
    0

    Default Templates do not load:: nginx

    We have updated our zen cart to v1.5.3 on the server. Our server uses Apache and nginx. The templates will not load on zen cart v1.5.3 but they do on v1.5.1.

    Zen cart is installed via Softaculous.

    Is there anything within v1.5.3 that we need to allow in nginx for the templates to load?

    Here is an example:
    http://zctest.bieghler.net/zencart/

  2. #2
    Join Date
    Jul 2014
    Posts
    2
    Plugin Contributions
    0

    Default Re: Templates do not load:: nginx

    We figured out the issue.
    In v1.5.3, it seems that Zen Cart will not load images if there is no SSL certificate installed on the domain when using nginx and Apache.
    To remedy this, you have to comment out the line in /includes/configure.php:
    Code:
    define('HTTPS_SERVER', 'https://domain.com');
    Once an SSL certificate is installed on the domain, the comment out must be removed.

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

    Default Re: Templates do not load:: nginx

    It might be better to turn the SSL setting in the configure files to false.

    Catalog:
    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    Admin:
    // 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');

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

    Default Re: Templates do not load:: nginx

    Quote Originally Posted by Acenet View Post
    In v1.5.3, it seems that Zen Cart will...
    Just to clarify: There's nothing new to v1.5.3 that causes that.

    The same problem will exist with any version ... because it's not a Zen Cart issue. It's just that your configuration is pointing to invalid URLs if you are using https without an SSL certificate.

    So, yes, the solution is to supply correct URLs for the server you're working on.
    .

    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.

 

 

Similar Threads

  1. Nginx equivalents for htaccess files
    By Dayo in forum Code Collaboration
    Replies: 6
    Last Post: 8 May 2016, 06:59 PM
  2. v139h how i can install in Nginx?
    By Amol in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 5 Jun 2012, 04:12 PM
  3. Templates does not load in New server
    By MaxiOli in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 8 Apr 2011, 01:21 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