Page 1 of 1

[Solved]3.0.3.1 Issue with CSS

Posted: Mon Apr 22, 2019 6:34 pm
by twilight159
Hi,
I'm trying to upload a new theme to my website and I've encountered problem where the .css path have double slash as shown in image. Help Appreciated thanks.
Here's the link to the website : http://13.76.152.95
Error Message.png

Re: 3.0.3.1 Issue with CSS

Posted: Mon Apr 22, 2019 8:26 pm
by dparakhiya
Hi twilight159
i check your website and find the issue on "//" on url soo you need to change your config.php

Re: 3.0.3.1 Issue with CSS

Posted: Tue Apr 23, 2019 10:01 am
by twilight159
This is my config.php

<?php
// HTTP
define('HTTP_SERVER', 'http://'.$_SERVER['SERVER_NAME'].':80/');

// HTTPS
define('HTTPS_SERVER', 'https://'.$_SERVER['SERVER_NAME'].':443/');

// DIR
define('DIR_APPLICATION', '/opt/bitnami/apps/opencart/htdocs/catalog/');
define('DIR_SYSTEM', '/opt/bitnami/apps/opencart/htdocs/system/');
define('DIR_IMAGE', '/opt/bitnami/apps/opencart/htdocs/image/');
define('DIR_STORAGE', '/opt/bitnami/apps/opencart/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/');



// HEADERS
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");

Re: 3.0.3.1 Issue with CSS

Posted: Tue Apr 23, 2019 10:50 am
by letxobnav
get rid of the "//" in those links.

Code: Select all

<link href="catalog/view/theme//stylesheet/stylesheet.css" rel="stylesheet"/>

<!-- Codezeel - Start -->
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/magnific/magnific-popup.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme//stylesheet/codezeel/carousel.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme//stylesheet/codezeel/custom.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme//stylesheet/codezeel/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme//stylesheet/codezeel/lightbox.css"/>
<link rel="stylesheet" type="text/css" href="catalog/view/theme//stylesheet/codezeel/animate.css"/>

Re: 3.0.3.1 Issue with CSS

Posted: Tue Apr 23, 2019 12:41 pm
by twilight159
I can't seem to find the file to edit the code.

Re: 3.0.3.1 Issue with CSS

Posted: Tue Apr 23, 2019 12:48 pm
by dparakhiya
On your config file i see

Code: Select all

define('DIR_APPLICATION', '/opt/bitnami/apps/opencart/htdocs/catalog/');
and

Code: Select all

define('DIR_TEMPLATE', DIR_APPLICATION . '/view/theme/');
so you need to chnage :

Code: Select all

define('DIR_TEMPLATE', DIR_APPLICATION . '/view/theme/');
to

Code: Select all

define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
In case of ANY issues with 3rd party extension, always contact your 3rd party extension developer.

Re: 3.0.3.1 Issue with CSS

Posted: Tue Apr 23, 2019 7:29 pm
by paulfeakins
letxobnav wrote:
Tue Apr 23, 2019 10:50 am

Code: Select all

catalog/view/theme//stylesheet/stylesheet.css
Actually, where is theme name?
What theme are you using?
It should look more like:

Code: Select all

catalog/view/theme/{theme name}/stylesheet/stylesheet.css

Re: 3.0.3.1 Issue with CSS

Posted: Wed Apr 24, 2019 10:28 am
by twilight159
You were right, and I have solve the issue, the {template} wasn't working so I manually hard coded the file name. Its perfectly working fine now, thanks !

Re: [Solved]3.0.3.1 Issue with CSS

Posted: Thu Oct 10, 2019 3:55 am
by kasun0777
I got the same issue. I hard corded "header.twig" file. But it is not working. Still coming with "//" for css directory :-[ :-[ :-[