I recently changed my wesite url and now when I try to login to my admin then page goes blank.
I can go to www.mysite.com/admin but when i enter my admin username and password and then click enter then the page goes blank.
Following is the link which shows blank page
http://www.mysite.com/admin/index.php?r ... mmon/login
Kindly help
GC
Check your config files config.php and admin/config.php and check the paths for all the defines.gauravchawla18 wrote:I recently changed my wesite url and now when I try to login to my admin then page goes blank
Changing your website url possibly also changed the public_html folder. For example, "your.old.domain.com/public_html" may have been changed to "your.new.domain.com/public_html". If so, you'll have to reflect this change in your config files.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
fido-x wrote:Check your config files config.php and admin/config.php and check the paths for all the defines.gauravchawla18 wrote:I recently changed my wesite url and now when I try to login to my admin then page goes blank
Changing your website url possibly also changed the public_html folder. For example, "your.old.domain.com/public_html" may have been changed to "your.new.domain.com/public_html". If so, you'll have to reflect this change in your config files.
Hi,
Can you please explain how to do so. I am still facing this issue.
Thanks,
GC
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
fido-x wrote:Log in to your web host and go to the file manager for your store. Above the list of files, the path to your current location should be displayed. Make sure the "DIR" defines in your config.php and admin/config.php match.
Yes the files are same but I cannot find the reason.
Code: Select all
define('DIR_APPLICATION', '/var/www/vhosts/your.domain.com/httpdocs/catalog/');
define('DIR_SYSTEM', '/var/www/vhosts/your.domain.com/httpdocs/system/');
define('DIR_IMAGE', '/var/www/vhosts/your.domain.com/httpdocs/image/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
fido-x wrote:In your config files the defines for DIR_CATALOG, DIR_SYSTEM, DIR_IMAGE, etc. should be something like:Does the file path in these files state "your.new.domain.com" or "your.old.domain.com"?Code: Select all
define('DIR_APPLICATION', '/var/www/vhosts/your.domain.com/httpdocs/catalog/'); define('DIR_SYSTEM', '/var/www/vhosts/your.domain.com/httpdocs/system/'); define('DIR_IMAGE', '/var/www/vhosts/your.domain.com/httpdocs/image/');
Following is my config file:-
<?php
// HTTP
define('HTTP_SERVER', 'http://www.mynewdomain.com/');
define('HTTP_IMAGE', 'http://www.mynewdomain.com/image/');
define('HTTP_ADMIN', 'http://www.mynewdomain.com/admin44/');
// HTTPS
define('HTTPS_SERVER', 'https://www.mynewdomain.com/');
define('HTTPS_IMAGE', 'https://www.mynewdomain.com/image/');
// DIR
define('DIR_APPLICATION', '/home/advert/public_html/www.mynewdomain.com/catalog/');
define('DIR_SYSTEM', '/home/advert/public_html/www.mynewdomain.com/system/');
define('DIR_DATABASE', '/home/advert/public_html/www.mynewdomain.com/system/database/');
define('DIR_LANGUAGE', '/home/advert/public_html/www.mynewdomain.com/catalog/language/');
define('DIR_TEMPLATE', '/home/advert/public_html/www.mynewdomain.com/catalog/view/theme/');
define('DIR_CONFIG', '/home/advert/public_html/www.mynewdomain.com/system/config/');
define('DIR_IMAGE', '/home/advert/public_html/www.mynewdomain.com/image/');
define('DIR_CACHE', '/home/advert/public_html/www.mynewdomain.com/system/cache/');
define('DIR_DOWNLOAD', '/home/advert/public_html/www.mynewdomain.com/download/');
define('DIR_LOGS', '/home/advert/public_html/www.mynewdomain.com/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'advert_gc');
define('DB_PASSWORD', 'XXXXXXXX');
define('DB_DATABASE', 'advert_gnnnnm');
define('DB_PREFIX', '');
?>
Following are my admin/config file:-
<?php
// HTTP
define('HTTP_SERVER', 'http://www.mynewdomain.com/admin44/');
define('HTTP_CATALOG', 'http://www.mynewdomain.com/');
define('HTTP_IMAGE', 'http://www.mynewdomain.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin$44/');
define('HTTPS_CATALOG', 'https://www.mynewdomain.com/');
define('HTTPS_IMAGE', 'https://www.mynewdomain.com/image/');
// DIR
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin$44/');
define('DIR_SYSTEM', '/home/advert/public_html/www.mynewdomain.com/system/');
define('DIR_DATABASE', '/home/advert/public_html/www.mynewdomain.com/system/database/');
define('DIR_LANGUAGE', '/home/advert/public_html/www.mynewdomain.com/admin$44/language/');
define('DIR_TEMPLATE', '/home/advert/public_html/www.mynewdomain.com/admin$44/view/template/');
define('DIR_CONFIG', '/home/advert/public_html/www.mynewdomain.com/system/config/');
define('DIR_IMAGE', '/home/advert/public_html/www.mynewdomain.com/image/');
define('DIR_CACHE', '/home/advert/public_html/www.mynewdomain.com/system/cache/');
define('DIR_DOWNLOAD', '/home/advert/public_html/www.mynewdomain.com/download/');
define('DIR_LOGS', '/home/advert/public_html/www.mynewdomain.com/system/logs/');
define('DIR_CATALOG', '/home/advert/public_html/www.mynewdomain.com/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'advert_gc');
define('DB_PASSWORD', ' XXXXXXXX ');
define('DB_DATABASE', 'advert_ gnnnnm ');
define('DB_PREFIX', '');
?>
Changing these to:gauravchawla18 wrote: define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin$44/');
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin$44/');
Code: Select all
define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin44/');
Code: Select all
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin44/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Following is the admin$44/config file:
<?php
// HTTP
define('HTTP_SERVER', 'http://www.mynewdomain.com/admin$44/');
define('HTTP_CATALOG', 'http://www.mynewdomain.com/');
define('HTTP_IMAGE', 'http://www.mynewdomain.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin$44/');
define('HTTPS_CATALOG', 'https://www.mynewdomain.com/');
define('HTTPS_IMAGE', 'https://www.mynewdomain.com/image/');
// DIR
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin$44/');
define('DIR_SYSTEM', '/home/advert/public_html/www.mynewdomain.com/system/');
define('DIR_DATABASE', '/home/advert/public_html/www.mynewdomain.com/system/database/');
define('DIR_LANGUAGE', '/home/advert/public_html/www.mynewdomain.com/admin$44/language/');
define('DIR_TEMPLATE', '/home/advert/public_html/www.mynewdomain.com/admin$44/view/template/');
define('DIR_CONFIG', '/home/advert/public_html/www.mynewdomain.com/system/config/');
define('DIR_IMAGE', '/home/advert/public_html/www.mynewdomain.com/image/');
define('DIR_CACHE', '/home/advert/public_html/www.mynewdomain.com/system/cache/');
define('DIR_DOWNLOAD', '/home/advert/public_html/www.mynewdomain.com/download/');
define('DIR_LOGS', '/home/advert/public_html/www.mynewdomain.com/system/logs/');
define('DIR_CATALOG', '/home/advert/public_html/www.mynewdomain.com/catalog/');
From your last post:define('HTTP_SERVER', 'http://www.mynewdomain.com/admin44/');
I would suspect your problem lies in the use of the $ (dollar) sign. Use some other alpha/numeric character instead.define('HTTP_SERVER', 'http://www.mynewdomain.com/admin$44/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Now following is my admin/config file:
<?php
// HTTP
define('HTTP_SERVER', 'http://www.mynewdomain.com/admin/');
define('HTTP_CATALOG', 'http://www.mynewdomain.com/');
define('HTTP_IMAGE', 'http://www.mynewdomain.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin/');
define('HTTPS_CATALOG', 'https://www.mynewdomain.com/');
define('HTTPS_IMAGE', 'https://www.mynewdomain.com/image/');
// DIR
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin/');
define('DIR_SYSTEM', '/home/advert/public_html/www.mynewdomain.com/system/');
define('DIR_DATABASE', '/home/advert/public_html/www.mynewdomain.com/system/database/');
define('DIR_LANGUAGE', '/home/advert/public_html/www.mynewdomain.com/admin/language/');
define('DIR_TEMPLATE', '/home/advert/public_html/www.mynewdomain.com/admin/view/template/');
define('DIR_CONFIG', '/home/advert/public_html/www.mynewdomain.com/system/config/');
define('DIR_IMAGE', '/home/advert/public_html/www.mynewdomain.com/image/');
define('DIR_CACHE', '/home/advert/public_html/www.mynewdomain.com/system/cache/');
define('DIR_DOWNLOAD', '/home/advert/public_html/www.mynewdomain.com/download/');
define('DIR_LOGS', '/home/advert/public_html/www.mynewdomain.com/system/logs/');
define('DIR_CATALOG', '/home/advert/public_html/www.mynewdomain.com/catalog/');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Thanks,
GC
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Users browsing this forum: No registered users and 32 guests