Zen Cart Logo
Forums / General Questions / Admin area suddenly showing a blank page

Admin area suddenly showing a blank page

Views: 1,513

Results 1 to 10 of 10
13 Jun 2012, 5:55 PM
#1
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Admin area suddenly showing a blank page

Hi,

Today my admin area has decided not work anymore.

I am using ZenCart 1.3.9h on PHP 5.3.13 and the main site is working fine (http://shop.sss-sussex.co.uk) but the admin area (http://shop.sss-sussex.co.uk/samadmin/) had decided to stop working and just show a white page.

My PHP was upgraded by my hosting company at the start of this month, would this be the problem? I have looked at the white page problems but this doesn't seem to fix anything.

does anyone have any ideas? :smile:

Thanks
Sam

14 Jun 2012, 6:52 AM
#3
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Admin area suddenly showing a blank page

DrByte:

What are your myDebug-adm-xxxxxxx.log files showing?
ref: http://www.zen-cart.com/content.php?124-blank-page

[13-Jun-2012 14:11:30 UTC] PHP Fatal error: Cannot redeclare date_diff() in /nfs/c08/h03/mnt/118247/domains/shop.sss-sussex.co.uk/html/samadmin/includes/functions/general.php on line 3001

14 Jun 2012, 12:26 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin area suddenly showing a blank page

That means your /admin/includes/functions/general.php file is the v1.3.8 version of the file.
(Zen Cart v1.3.8a and older are NOT compatible with PHP 5.3)

So, either you're actually running v1.3.8a (instead of v1.3.9h which you stated in your post), or you've installed an addon that replaced core files with old code.

14 Jun 2012, 4:31 PM
#5
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Admin area suddenly showing a blank page

DrByte:

That means your /admin/includes/functions/general.php file is the v1.3.8 version of the file.
(Zen Cart v1.3.8a and older are NOT compatible with PHP 5.3)

So, either you're actually running v1.3.8a (instead of v1.3.9h which you stated in your post), or you've installed an addon that replaced core files with old code.

Where about would I find which version I am using? As cant access admin area to see?

14 Jun 2012, 9:23 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin area suddenly showing a blank page

You can find the actual version in the /includes/ vers ion.php file.

But, in many respects technically it doesn't matter at this point.
You're clearly using code that's not compatible with the PHP version on your server.

If I were in your shoes, I would do one of the following:

1 - If you are using v1.3.9a or newer:
a. get the original Zen Cart zip for the version of Zen Cart you're actually using, and unzip that on my computer
b. download a complete set of all the files from your server
c. compare the two sets of files, and fix whatever is broken

2 - If you're actually using v1.3.8a or older:
a. UPGRADE your site to v1.3.9h or v1.5.0

14 Jun 2012, 9:26 PM
#7
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Admin area suddenly showing a blank page

define('PROJECT_VERSION_MAJOR', '1');
define('PROJECT_VERSION_MINOR', '3.9h');

So does this mean I am on 3.9h? And shouldn't be having a problem?

14 Jun 2012, 10:23 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Admin area suddenly showing a blank page

Yes, so that means you need to go fix up the files on your server that belong to an older version, as I mentioned in my first post.

15 Jun 2012, 6:52 AM
#9
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Admin area suddenly showing a blank page

DrByte:

Yes, so that means you need to go fix up the files on your server that belong to an older version, as I mentioned in my first post.

Okay, thanks I shall have a look at this later. :)

15 Jun 2012, 11:03 AM
#10
qwerty94 avatar

qwerty94

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Admin area suddenly showing a blank page

Problem sorted, thanks for your help! :D