Post by gauravchawla18 » Thu Nov 27, 2014 10:28 pm

Hi,

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

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Thu Nov 27, 2014 10:36 pm

gauravchawla18 wrote:I recently changed my wesite url and now when I try to login to my admin then page goes blank
Check your config files config.php and admin/config.php and check the paths for all the defines.

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.

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Fri Nov 28, 2014 4:05 pm

fido-x wrote:
gauravchawla18 wrote:I recently changed my wesite url and now when I try to login to my admin then page goes blank
Check your config files config.php and admin/config.php and check the paths for all the defines.

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

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Fri Nov 28, 2014 9:57 pm

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.

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Sat Nov 29, 2014 7:04 pm

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.

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Sat Nov 29, 2014 8:47 pm

In your config files the defines for DIR_CATALOG, DIR_SYSTEM, DIR_IMAGE, etc. should be something like:

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/');
Does the file path in these files state "your.new.domain.com" or "your.old.domain.com"?

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Sun Nov 30, 2014 7:24 pm

fido-x wrote:In your config files the defines for DIR_CATALOG, DIR_SYSTEM, DIR_IMAGE, etc. should be something like:

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/');
Does the file path in these files state "your.new.domain.com" or "your.old.domain.com"?


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', '');

?>

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Sun Nov 30, 2014 7:57 pm

It would appear that you have changed the name of your admin folder from admin to admin44. This is not a problem in itself if you also make the changes in the config files, which you have. Except for these two lines in your admin/config.php, which are pointing to a folder called admin$44.
gauravchawla18 wrote: define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin$44/');
define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin$44/');
Changing these to:

Code: Select all

define('HTTPS_SERVER', 'https://www.mynewdomain.com/admin44/');
and

Code: Select all

define('DIR_APPLICATION','/home/advert/public_html/www.mynewdomain.com/admin44/');
should fix your problem.

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Sun Nov 30, 2014 8:22 pm

My admin folder name is admin$44 & I have changed everything to admin$44. but the problem remains same.

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/');

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Sun Nov 30, 2014 8:35 pm

Looks like you've changed something in your admin/config.php already. From your previous post:
define('HTTP_SERVER', 'http://www.mynewdomain.com/admin44/');
From your last post:
define('HTTP_SERVER', 'http://www.mynewdomain.com/admin$44/');
I would suspect your problem lies in the use of the $ (dollar) sign. Use some other alpha/numeric character instead.

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Sun Nov 30, 2014 8:46 pm

I have changed the admin$44 to admin but the problem is same : on entering my admin username and password and then click enter then the page goes blank.

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/');

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Sun Nov 30, 2014 8:57 pm

I can not recreate your problem in my own test environment and, without a proper url, I can't see for myself what is happening on your site.

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by gauravchawla18 » Sun Nov 30, 2014 9:37 pm

if you can share your email id, i will mail all the details to you along with cpanel details

Thanks,

GC

New member

Posts

Joined
Mon May 06, 2013 2:00 am

Post by fido-x » Sun Nov 30, 2014 9:44 pm

PM sent. Although, I might not have a chance to look into it tonight - it's getting pretty late where I am (different time zones, it's early morning on 1st December, and I'm about to go to bed).

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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 32 guests