Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Templates do not load:: nginx

Templates do not load:: nginx

Views: 2,282

Results 1 to 4 of 4
26 Jul 2014, 5:43 PM
#1
acenet avatar

acenet

New Zenner

Join Date:
Jul 2014
Posts:
2
Plugin Contributions:
0

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/

26 Jul 2014, 10:05 PM
#2
acenet avatar

acenet

New Zenner

Join Date:
Jul 2014
Posts:
2
Plugin Contributions:
0

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:

define('HTTPS_SERVER', 'https://domain.com');

Once an SSL certificate is installed on the domain, the comment out must be removed.

27 Jul 2014, 4:18 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,777
Plugin Contributions:
11

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');

29 Jul 2014, 5:09 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Templates do not load:: nginx

Acenet:

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.