Page 1 of 1

SOLVED! Admin login leads to blank screen after moving host

Posted: Thu Sep 15, 2011 5:56 pm
by redvangang
I'd be really grateful if anyone could help with a problem I'm having at http://www.classic-modern.co.uk.

I've just moved to a new host and I followed the procedure in the Opencart documentation:
- Made copies of old database and store files from old server
- Set up empty database on new server
- Did clean install of same version of Opencart (1.5.1.1)
- Emptied database (dropped tables) and imported old database data
- Replaced all new store files with old ones except config.php and admin/config.php

Then when I go to the store front everything looks just as it did on my old server. But when I log in to admin I get a completely blank screen.

The same thing happens in Safari, Firefox, Opera and Chrome. I've tried flushing the browser caches and have used Terminal to flush the DNS cache on my computer (Mac). I've repeated the entire reinstall procedure several times and the same thing happens each time.

Any suggestions how to fix this will be gratefully received!
Thanks a lot, Julia
ps Sorry, forgot to mention I am on an Apache/Linux/cPanel configuration, having moved from a Zeus/Linux/Plesk setup.

Re: Admin login leads to blank screen after moving host

Posted: Thu Sep 15, 2011 7:02 pm
by uksitebuilder
sounds like there's a php error

can you check your apache logs to see if an error is reported

also try emptying the system/cache folder apart from index.html

and make sure your paths are correct in admin/config.php

SOLVED! Admin login leads to blank screen after moving host

Posted: Thu Sep 15, 2011 8:23 pm
by redvangang
Many thanks Simon! And many thanks too to my new hosts krystal.co.uk who I also asked for help and who pointed me in a similar direction. For the benefit of anyone else having a similar problem, this was the solution.

The error logs at system/logs/error.txt were giving this error:

Code: Select all

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/[username]/public_html/admin/language/english/common/login.php:41) in /home/[username]/public_html/system/engine/controller.php on line 55
2011-09-15 11:04:19 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/[username]/public_html/admin/language/english/common/login.php:41) in /home/[username]/public_html/system/engine/controller.php on line 57
Being a technology dunce and an Opencart newbie (but huge fan), I hadn't known that that error log existed. But when I looked at the two files it mentioned, just as the Opencart documentation predicts (http://www.opencart.com/index.php?route ... th=77_7_65_, there were some rogue carriage returns at the end of one of them (the login.php file). I took these out, uploaded the file again and the problem was solved!

Many thanks again for your help.
Julia

Re: SOLVED! Admin login leads to blank screen after moving h

Posted: Fri Sep 16, 2011 1:08 am
by i2Paq
redvangang wrote:Many thanks Simon! And many thanks too to my new hosts krystal.co.uk who I also asked for help and who pointed me in a similar direction.
Now you know why a good host costs a little more ;)

Re: SOLVED! Admin login leads to blank screen after moving h

Posted: Wed Oct 31, 2012 5:50 pm
by menorcarob
hi

i had this problem and solved it with your help thanks, i had this before and i am wondering how do those extra carriage retuns get there?

Re: SOLVED! Admin login leads to blank screen after moving host

Posted: Wed Oct 25, 2017 1:27 pm
by Dipika Bhoi
Hii guys
I also get white blank page, when I login into my account.
Plz help me.

Re: SOLVED! Admin login leads to blank screen after moving host

Posted: Mon Oct 30, 2017 4:31 am
by IP_CAM
no version, no link, no nothing, no help... :'(

Re: SOLVED! Admin login leads to blank screen after moving host

Posted: Wed May 19, 2021 7:10 pm
by bulkmania
Hello,

i have the same problem. Everything works except a blank admin page.
I tried everything i found on internet with no succes and i have no error.

php 7.4 and admin config looks like this, any idea will be appreciated :

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);

?>
<?php
// HTTP
define('HTTP_SERVER', 'https://plast-market.ro/admin');
define('HTTP_CATALOG', 'https://plast-market.ro/');

// HTTPS
define('HTTPS_SERVER', 'https://plast-market.ro/admin/');
define('HTTPS_CATALOG', 'https://plast-market.ro/');

// DIR
define('DIR_APPLICATION', '/home/roleterulouri/plast-market.ro/admin');
define('DIR_SYSTEM', '/home/roleterulouri/plast-market.ro/system/');
define('DIR_IMAGE', '/home/roleterulouri/plast-market.ro/image/');
define('DIR_STORAGE', '/home/roleterulouri/plast-market.ro/ocplast/storage-plast-market-2019/');
//define('DIR_STORAGE', '/home/roleterulouri/plast-market.ro/');
define('DIR_CATALOG', '/home/roleterulouri/plast-market.ro/catalog/');
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/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxxxxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxxxxxxxxxxxxxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');

Re: SOLVED! Admin login leads to blank screen after moving host

Posted: Wed May 19, 2021 11:00 pm
by ADD Creative
Doesn't look like the config file from version 1.5.x. What version are you using? Why is DIR_STORAGE commented out?