Post by matthewbaynham » Thu Apr 02, 2020 5:46 pm

Version 3.0.3.2

When you see my site you can see the CSS is no longer formatting anything.

http://www.gwenllian-retail.com/opencart

What did I get wrong in the config.php file that would make the CSS just go wrong?


Posts

Joined
Fri Nov 01, 2019 9:18 pm

Post by straightlight » Thu Apr 02, 2020 7:23 pm

matthewbaynham wrote:
Thu Apr 02, 2020 5:46 pm
Version 3.0.3.2

When you see my site you can see the CSS is no longer formatting anything.

http://www.gwenllian-retail.com/opencart

What did I get wrong in the config.php file that would make the CSS just go wrong?
Please provide your .htaccess, config.php and admin/config.php files without password information.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by matthewbaynham » Thu Apr 02, 2020 9:49 pm

config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.gwenllian-retail.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gwenllian-retail.com/');

// DIR
define('DIR_APPLICATION', '/var/www/html/opencart/catalog/');
define('DIR_SYSTEM', '/var/www/html/opencart/system/');
define('DIR_IMAGE', '/var/www/html/opencart/image/');
define('DIR_STORAGE', '/secret directory/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'someones username');
define('DB_PASSWORD', 'a password');
define('DB_DATABASE', 'db_shoes');
define('DB_PORT', '3306');
define('DB_PREFIX', 'shoes_');
admin/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.gwenllian-retail.com/opencart/admin/');
define('HTTP_CATALOG', 'http://www.gwenllian-retail.com/opencart/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gwenllian-retail.com/opencart/admin/');
define('HTTPS_CATALOG', 'https://www.gwenllian-retail.com/opencart/');

// DIR
define('DIR_APPLICATION', '/var/www/html/opencart/admin/');
define('DIR_SYSTEM', '/var/www/html/opencart/system/');
define('DIR_IMAGE', '/var/www/html/opencart/image/');
define('DIR_STORAGE', '/secret directory/storage/');
define('DIR_CATALOG', '/var/www/html/opencart/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'someones username');
define('DB_PASSWORD', 'a password');
define('DB_DATABASE', 'db_shoes');
define('DB_PORT', '3306');
define('DB_PREFIX', 'shoes_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
.htaccess
I cannot copy and paste this file, but it is completely untouched by me. So whatever the default file is that is what is on my machine.
Last edited by straightlight on Thu Apr 02, 2020 9:55 pm, edited 1 time in total.
Reason: Added code tags.


Posts

Joined
Fri Nov 01, 2019 9:18 pm

Post by matthewbaynham » Thu Apr 02, 2020 10:42 pm

I fixed it, it was a stupid mistake on my part ...

The original config.php

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://www.gwenllian-retail.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gwenllian-retail.com/');
The fixed version of config.php
Because I want to have multiple shops I've installed opencart in a directory "opencart", so the URL has to have this directory at the end of it. When I looked at the HTML that was being displayed in the browse I noticed it was referencing the CSS files with this missing.

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://www.gwenllian-retail.com/opencart/');

// HTTPS
define('HTTPS_SERVER', 'https://www.gwenllian-retail.com/opencart/');


Posts

Joined
Fri Nov 01, 2019 9:18 pm
Who is online

Users browsing this forum: No registered users and 5 guests