Post by hamidj » Sun Nov 25, 2018 6:28 am

Hi, I just moved Opencart from local server xampp to cpanel and after being installed the main page is loading correctly with no stlyesheet error while admin panel is not displaying correctly see the image.
https://imgur.com/a/WSsHmr0
I checked the config settings again but couldn't find out the reason!
Need help plz!

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by hamidj » Sun Nov 25, 2018 7:19 am

Here are admin config settings: https://imgur.com/a/k3mDLCn

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://');
define('HTTP_CATALOG', 'http://');

// HTTPS
define('HTTPS_SERVER', 'http://????/');
define('HTTPS_CATALOG', 'http:/');

// DIR
define('DIR_APPLICATION', '/home/public_html/admin/');
define('DIR_SYSTEM', '/home/public_html/system/');
define('DIR_IMAGE', '/home/public_html/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_CATALOG', '/home/public_html/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', '?????');
define('DB_PASSWORD', '?????');
define('DB_DATABASE', '?????');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
Last edited by hamidj on Sat May 25, 2019 8:40 pm, edited 1 time in total.

Newbie

Posts

Joined
Fri Jan 19, 2018 9:31 pm

Post by IP_CAM » Sun Nov 25, 2018 10:53 am

Probably something like below would work ;)
Ernie
----
ADMIN config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://unhexpress.com/admin/');
define('HTTP_CATALOG', 'http://unhexpress.com/');
// HTTPS
define('HTTPS_SERVER', 'http://unhexpress.com/admin/');
define('HTTPS_CATALOG', ''http://unhexpress.com/');
// DIR
define('DIR_APPLICATION', '/home/unheucjt/public_html/admin/');
define('DIR_SYSTEM', '/home/unheucjt/public_html/system/')
ROOT config.php:

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://unhexpress.com/');
// HTTPS
define('HTTPS_SERVER', 'http://unhexpress.com/');
// DIR
define('DIR_APPLICATION', '/home/unheucjt/public_html/catalog/');
define('DIR_SYSTEM', '/home/unheucjt/public_html/system/');
[/code]

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by xxvirusxx » Sun Nov 25, 2018 8:00 pm

hamidj wrote:
Sun Nov 25, 2018 7:19 am

Code: Select all

<?php
// HTTP
define('HTTPS_SERVER', 'http://unhexpress.com/????/');

// DIR
define('DIR_APPLICATION', '/home/unheucjt/public_html/admin/');
As you see...
In define section admin folder was renamed but in //DIR section not

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by alin301 » Wed Mar 31, 2021 5:00 pm

I had this issue with my websites several times and the problem came from Google Pagespeed extension in my cPanel. I solved this by adding the following code to my .htaccess root file.

Code: Select all

ModPagespeedDisableFilters combine_css

Newbie

Posts

Joined
Sun Jan 17, 2021 10:54 pm
Who is online

Users browsing this forum: No registered users and 522 guests