Post by jay2kayuk » Thu Jul 09, 2015 10:52 pm

Please help.

I am moving a open cart site from one host to another.
I have copied all files across and created then restored the database.
The website looks to be functioning:
http://binghisboutiquecom.ipage.com

But the admin section does not load correctly therefore I can't access it.
http://binghisboutiquecom.ipage.com/admin

Any suggestions?

Thanks

Jay

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by qahar » Fri Jul 10, 2015 12:00 am

check your config.php at admin/ folder and make sure the HTTP_SERVER and HTTPS_SERVER have the correct path

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by IP_CAM » Fri Jul 10, 2015 1:57 am

... binghisboutiquecom.ipage.com/adminindex.php?route= ...
should be:
... binghisboutiquecom.ipage.com/admin/index.php?route= ...
meaning, that you forgot to add a / (slash) at the end of a config.php path line, probably.
therefore, you have no active stylesheet either...
Ernie

instead of:

Code: Select all

<base href="http://binghisboutiquecom.ipage.com/admin" />
it should be:

Code: Select all

<base href="http://binghisboutiquecom.ipage.com/admin/" />

My Github OC Site: https://github.com/IP-CAM
5'600 + 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 jay2kayuk » Fri Jul 10, 2015 3:15 am

Thanks you were right.
Now i have the correct page but when I login its a blank white page....

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by IP_CAM » Fri Jul 10, 2015 8:34 am

To get anywhere, unveil your secrets and tell some FACTS,
like show your BOTH config.php's, or it's of little use...
(without MySQL Access info !!)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + 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 jay2kayuk » Fri Jul 10, 2015 3:43 pm

Config.php
----------
<?php
// HTTP
define('HTTP_SERVER', 'http://binghisboutiquecom.ipage.com/');
define('HTTP_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');
define('HTTP_ADMIN', 'http://binghisboutiquecom.ipage.com/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://binghisboutiquecom.ipage.com/');
define('HTTPS_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');

// DIR
define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/');
define('DIR_SYSTEM', '/home/users/web/b1522/ipg.binghisboutiquecom/system/');
define('DIR_DATABASE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/database/');
define('DIR_LANGUAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/language/');
define('DIR_TEMPLATE', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/view/theme/');
define('DIR_CONFIG', '/home/users/web/b1522/ipg.binghisboutiquecom/system/config/');
define('DIR_IMAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/image/');
define('DIR_CACHE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/cache/');
define('DIR_DOWNLOAD', '/home/users/web/b1522/ipg.binghisboutiquecom/download/');
define('DIR_LOGS', '/home/users/web/b1522/ipg.binghisboutiquecom/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'binghisboutiquecom.ipagemysql.com');
define('DB_USERNAME', 'binghisb');
define('DB_PASSWORD', '********');
define('DB_DATABASE', 'binghisb_opencart');
define('DB_PREFIX', '');
?>
Last edited by jay2kayuk on Fri Jul 10, 2015 3:48 pm, edited 1 time in total.

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Fri Jul 10, 2015 3:46 pm

Admin/Config.php
-----------------------
<?php
// HTTP
define('HTTP_SERVER', 'http://binghisboutiquecom.ipage.com/admin/');
define('HTTP_CATALOG', 'http://binghisboutiquecom.ipage.com/');
define('HTTP_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://binghisboutiquecom.ipage.com/admin/');
define('HTTPS_CATALOG', 'http://binghisboutiquecom.ipage.com/');
define('HTTPS_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');

// DIR
define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/');
define('DIR_SYSTEM', '/home/users/web/b1522/ipg.binghisboutiquecom/system/');
define('DIR_DATABASE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/database/');
define('DIR_LANGUAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/language/');
define('DIR_TEMPLATE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/view/template/');
define('DIR_CONFIG', '/home/users/web/b1522/ipg.binghisboutiquecom/system/config/');
define('DIR_IMAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/image/');
define('DIR_CACHE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/cache/');
define('DIR_DOWNLOAD', '/home/users/web/b1522/ipg.binghisboutiquecom/download/');
define('DIR_LOGS', '/home/users/web/b1522/ipg.binghisboutiquecom/system/logs/');
define('DIR_CATALOG', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'binghisboutiquecom.ipagemysql.com');
define('DB_USERNAME', 'binghisb');
define('DB_PASSWORD', '********');
define('DB_DATABASE', 'binghisb_opencart');
define('DB_PREFIX', '');
?>

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by deepvision » Fri Jul 10, 2015 5:12 pm

In the config.php

Code: Select all

define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/');
should be changed to

Code: Select all

define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');
Evil copy&paste? ;)

But this should not produce such an effect.
May I see how your .htaccess file looks like?

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by jay2kayuk » Fri Jul 10, 2015 5:53 pm

The .htaccess file is blank.. :choke:

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Fri Jul 10, 2015 5:58 pm

Sorry wrong file...

# Begin default subdomain redirect #
RewriteEngine on
RewriteCond %{HTTP_HOST} ^binghisboutique.com
RewriteRule ^(.*)$ http://www.binghisboutique.com/$1 [R=permanent,L]


# End default subdomain redirect #

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Fri Jul 10, 2015 6:02 pm

The .htaccess file on root is as above.
The .htaccess file in admin folder is blank.

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by deepvision » Fri Jul 10, 2015 6:06 pm

you should comment out that code like this:

Code: Select all

# Begin default subdomain redirect #
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^binghisboutique.com
#RewriteRule ^(.*)$ http://www.binghisboutique.com/$1 [R=permanent,L]
Because it is for your regular domain, not your test subdomain.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by jay2kayuk » Fri Jul 10, 2015 6:09 pm

I have amended it to my test domain and still issue exists.

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by deepvision » Fri Jul 10, 2015 6:15 pm

When I try to open
http://binghisboutiquecom.ipage.com/
i get

Code: Select all

This webpage has a redirect loop

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by jay2kayuk » Fri Jul 10, 2015 7:18 pm

I have managed to delete my .htaccess file in admin folder.
How do I go about creating a new one.

Thanks

J

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by deepvision » Fri Jul 10, 2015 7:24 pm

You don't need an .htaccess file in admin folder.
Unless you have some special requirements, but I don't see such.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by jay2kayuk » Fri Jul 10, 2015 7:25 pm

Ok so why do I have no access to admin page now.... ???

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by jay2kayuk » Fri Jul 10, 2015 7:28 pm

Now i'm back to square one...admin page is blank

admin/config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://binghisboutiquecom.ipage.com/admin/');
define('HTTP_CATALOG', 'http://binghisboutiquecom.ipage.com/');
define('HTTP_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://binghisboutiquecom.ipage.com/admin/');
define('HTTPS_CATALOG', 'http://binghisboutiquecom.ipage.com/');
define('HTTPS_IMAGE', 'http://binghisboutiquecom.ipage.com/image/');

// DIR
define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');
define('DIR_SYSTEM', '/home/users/web/b1522/ipg.binghisboutiquecom/system/');
define('DIR_DATABASE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/database/');
define('DIR_LANGUAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/language/');
define('DIR_TEMPLATE', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/view/template/');
define('DIR_CONFIG', '/home/users/web/b1522/ipg.binghisboutiquecom/system/config/');
define('DIR_IMAGE', '/home/users/web/b1522/ipg.binghisboutiquecom/image/');
define('DIR_CACHE', '/home/users/web/b1522/ipg.binghisboutiquecom/system/cache/');
define('DIR_DOWNLOAD', '/home/users/web/b1522/ipg.binghisboutiquecom/download/');
define('DIR_LOGS', '/home/users/web/b1522/ipg.binghisboutiquecom/system/logs/');
define('DIR_CATALOG', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'binghisboutiquecom.ipagemysql.com');
define('DB_USERNAME', '*******');
define('DB_PASSWORD', '*******');
define('DB_DATABASE', 'binghisb_opencart');
define('DB_PREFIX', '');
?>

New member

Posts

Joined
Thu Jul 09, 2015 7:53 pm

Post by deepvision » Fri Jul 10, 2015 7:38 pm

Now there is the following wrong code in admin/config.php

Code: Select all

define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/catalog/');
although earlier there was the correct one.
It should be:

Code: Select all

define('DIR_APPLICATION', '/home/users/web/b1522/ipg.binghisboutiquecom/admin/');

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by deepvision » Fri Jul 10, 2015 7:41 pm

jay2kayuk wrote:Ok so why do I have no access to admin page now.... ???
access denied can be because of insufficient permissions for admin folder.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am
Who is online

Users browsing this forum: No registered users and 10 guests