Post by twilight159 » Mon Apr 22, 2019 6:34 pm

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
Last edited by twilight159 on Wed Apr 24, 2019 10:30 am, edited 1 time in total.

Newbie

Posts

Joined
Mon Mar 04, 2019 3:20 pm

Post by dparakhiya » Mon Apr 22, 2019 8:26 pm

Hi twilight159
i check your website and find the issue on "//" on url soo you need to change your config.php

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by twilight159 » Tue Apr 23, 2019 10:01 am

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

Newbie

Posts

Joined
Mon Mar 04, 2019 3:20 pm

Post by letxobnav » Tue Apr 23, 2019 10:50 am

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"/>

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by twilight159 » Tue Apr 23, 2019 12:41 pm

I can't seem to find the file to edit the code.

Newbie

Posts

Joined
Mon Mar 04, 2019 3:20 pm

Post by dparakhiya » Tue Apr 23, 2019 12:48 pm

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.

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by paulfeakins » Tue Apr 23, 2019 7:29 pm

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

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by twilight159 » Wed Apr 24, 2019 10:28 am

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 !

Newbie

Posts

Joined
Mon Mar 04, 2019 3:20 pm

Post by kasun0777 » Thu Oct 10, 2019 3:55 am

I got the same issue. I hard corded "header.twig" file. But it is not working. Still coming with "//" for css directory :-[ :-[ :-[

Responsive Website Design | Opencart E-commerce Development | Search Engine Optimization (SEO)
Skype: lkdesigners
Website: www.lkdesigners.com


User avatar
Newbie

Posts

Joined
Sun Oct 26, 2014 4:03 am
Location - Panadura, Sri Lanka.
Who is online

Users browsing this forum: Majestic-12 [Bot], Semrush [Bot] and 63 guests