Post by redvangang » Thu Sep 15, 2011 5:56 pm

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.
Last edited by redvangang on Thu Sep 15, 2011 8:24 pm, edited 1 time in total.

Newbie

Posts

Joined
Mon Aug 15, 2011 12:18 am

Post by uksitebuilder » Thu Sep 15, 2011 7:02 pm

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by redvangang » Thu Sep 15, 2011 8:23 pm

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

Newbie

Posts

Joined
Mon Aug 15, 2011 12:18 am

Post by i2Paq » Fri Sep 16, 2011 1:08 am

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

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by menorcarob » Wed Oct 31, 2012 5:50 pm

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?

New member

Posts

Joined
Tue May 31, 2011 4:16 pm

Post by Dipika Bhoi » Wed Oct 25, 2017 1:27 pm

Hii guys
I also get white blank page, when I login into my account.
Plz help me.

Newbie

Posts

Joined
Wed Oct 25, 2017 1:26 pm

Post by IP_CAM » Mon Oct 30, 2017 4:31 am

no version, no link, no nothing, no help... :'(

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 bulkmania » Wed May 19, 2021 7:10 pm

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

Newbie

Posts

Joined
Wed May 19, 2021 7:06 pm

Post by ADD Creative » Wed May 19, 2021 11:00 pm

Doesn't look like the config file from version 1.5.x. What version are you using? Why is DIR_STORAGE commented out?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 26 guests