154 fresh install template css not loading
I tried to do a fresh install of zencart 154.
First, I tried installing zencart with softaculous, then I also tried manually installing it, but both times I got the same result. All the content is there (demo content, pages, products…), admin panel works fine, but there’s no css/template visible on the front-end. Front-end looks white and unformatted, not loading the classic default template.
- I installed a new free template, and select it from the admin panel but it made no difference.
- I cleaned the cache in the browser
- I opened the site with different browsers, but had the same frustrating result, no css/template in the front-end.
- I researched the net and found some possible fixes, such as renaming include/.htaccess and admin/include/.htaccess to htaccess_OFF.
I tried these solutions, but it made no difference.
The site is on a VPS with linux, php 5.4.42.
On the same server I run several other scripts with no problems (magento, wordpress, joomla) there are no shortage of resources or memory limits and indeed I got running another zencart (still in version 1.5.1).
Any help would be much appreciated.
Re: 154 fresh install template not loading
What happens when you View Source of the page, find the stylesheet, and try to load that directly in your browser?
What's the URL where we can see this in action?
Re: 154 fresh install template not loading
I get this message:
Secure Connection Failed
An error occurred during a connection to "mysite".org. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the web site owners to inform them of this problem.
Re: 154 fresh install template not loading
Actually...
if i copy the link includes/templates/classic/css/stylesheet.css (as in the source code) and put it after "mydomain" it load the stylesheet in the browser..
as to say "mydomain".org/includes/templates/classic/css/stylesheet.css do load the stylesheet in the browser
if I insted just click on the link in source code it will go to the error message as described above
Re: 154 fresh install template not loading
What is the link to where it is possible to see what is being generated on the page so that perhaps the appropriate settings could be advised?
Re: 154 fresh install template not loading
the site is:
globalnetservices.org
by the way, having had a look at what DrByte wrote, i noticed that in the source code of the homepage there is a
<base href="https://globalnetservices.org which should be instead http://
in the config.php ssl is set to "false", so I don't see why base href=https.. this might be what generate the error...
Re: 154 fresh install template not loading
What is in your configure.php file for these 2 lines
Code:
define('HTTP_SERVER', 'http://www.your_domain.com');
define('HTTPS_SERVER', 'https://www.your_domain.com');
Re: 154 fresh install template not loading
Quote:
Originally Posted by
kobra
What is in your configure.php file for these 2 lines
Code:
define('HTTP_SERVER', 'http://www.your_domain.com');
define('HTTPS_SERVER', 'https://www.your_domain.com');
in catalog/include:
define('HTTP_SERVER', 'http://globalnetservices.org');
define('HTTPS_SERVER', 'https://globalnetservices.org');
in admin/include:
define('HTTP_SERVER', 'http://globalnetservices.org');
define('HTTPS_SERVER', 'https://globalnetservices.org');
define('HTTP_CATALOG_SERVER', 'http://globalnetservices.org');
define('HTTPS_CATALOG_SERVER', 'https://globalnetservices.org');
and
define('ENABLE_SSL', 'false');
define('ENABLE_SSL_ADMIN', 'false');
Re: 154 fresh install template not loading
Is this posted from a local copy or a fresh copy from your server?
Also, do you have a htaccess file at the root of your install?
Re: 154 fresh install template not loading
just to make it easier, I post the whole configure.php (from catalog/include) just downloaded from the server.
<?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 2015-09-19 00:17:35
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// 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', 'http://globalnetservices.org');
define('HTTPS_SERVER', 'https://globalnetservices.org');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// 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_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//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/xxxxxxxxx/public_html/');
//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/xxxxxxxxx/public_html/logs');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
// 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/xxxxxxxxx/public_html/cache');
// EOF