If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Issue with White Screen of Death (Already looked in forum)

Issue with White Screen of Death (Already looked in forum)

Started by squireh on 18 Jul 2015, 1:18 AM · Views: 511

Results 1 to 8 of 8
18 Jul 2015, 1:18 AM
#1
squireh avatar

squireh

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Issue with White Screen of Death (Already looked in forum)

I'm getting the dreaded White Screen of Death when trying to access the index of the site. The Admin pages work fine by the way.

PHP Version: 5.3.24 (Zend: 2.3.0)
Database: MySQL 5.0.96-log

I'm using version 1.5.0 on a Godaddy host installed with their internal system mechanic. it was installed with this version about a year ago and has not been upgraded.
I dont remember if we added any plugins, if any then it would have been a paypal payment method.

The site was working fine since we started it and just recently stopped working.

I setup debug logs and am getting the following error (godaddy root path removed)
[17-Jul-2015 17:52:06 America/Phoenix] PHP Parse error: syntax error, unexpected T_STRING in /includes/functions/extra_functions/index_old.php(45) : runtime-created function on line 1
[17-Jul-2015 17:52:06 America/Phoenix] PHP Fatal error: Function name must be a string in /includes/functions/extra_functions/index_old.php on line 45

I looked on that particular line in the code and its all internal stuff:
$extremity . $decomposed[2]. $bluntness['3']. $indispose['0']. $denunciation['1'].$endow['3']. $endow['3'] . $endow['3'] . $extremity );$detractors ($intrigues['0'] , $decomposed[2],$indispose['3'] , $corridor['0'],

The variables look like they are set at the beginning of the document and dont see how they would have changed in the past year. Any help would be appreciated.

18 Jul 2015, 2:07 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Issue with White Screen of Death (Already looked in forum)

squireh:

[17-Jul-2015 17:52:06 America/Phoenix] PHP Parse error: syntax error, unexpected T_STRING in /includes/functions/extra_functions/index_old.php.

This file shouldn't even exist.

Delete it and see what happens.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Jul 2015, 2:29 AM
#3
squireh avatar

squireh

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Re: Issue with White Screen of Death (Already looked in forum)

RodG:

This file shouldn't even exist.

Delete it and see what happens.

Cheers
RodG

And that would be why it failed :D

Deleted the file and Everything working fine now. Thanks a bunch!

18 Jul 2015, 2:48 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Issue with White Screen of Death (Already looked in forum)

squireh:

And that would be why it failed :D

Deleted the file and Everything working fine now. Thanks a bunch!

Great that it has solved the problem, but you shouldn't let it rest at that.

There are a couple of questions that need answering.

  1. Since culprit file was called index_old.php it infers that there may also be a file in that same folder called 'index.php'. And THAT shouldn't be there either.

  2. This is the 'biggy'. Who or what placed these file(s) into that folder? Have there been any other 'strange' files added to the site?

Unless you can identify the origin of these added files you** must assume** that the site has been hacked. Sorry to be the bearer of this bad news.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Jul 2015, 2:59 AM
#5
squireh avatar

squireh

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Re: Issue with White Screen of Death (Already looked in forum)

Thanks for the heads up. I'll look into it.

Should I just upgrade to 1.5.4 by copying the files in to take care of it the easy way? Or something else?

18 Jul 2015, 3:04 AM
#6
squireh avatar

squireh

New Zenner

Join Date:
Dec 2010
Posts:
6
Plugin Contributions:
0

Re: Issue with White Screen of Death (Already looked in forum)

There actually was an index.html in the folder but thats it, and its basically a dud file:
<html>

<head> <title></title> <meta content=""> <style></style> </head> <body></body> </html>

As for other files I have no idea. Really dont look at the zencart file structure much.

18 Jul 2015, 3:09 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Issue with White Screen of Death (Already looked in forum)

Don't take shortcuts... You will be disappointed and more than likely be back here asking why this or that failed.

A good process to follow, though not the end all, be all would be: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Jul 2015, 3:23 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Issue with White Screen of Death (Already looked in forum)

squireh:

There actually was an index.html in the folder but thats it, and its basically a dud file:
<html>

<head> <title></title> <meta content=""> <style></style> </head> <body></body> </html>

This one is fine, and it SHOULD exist 'as is'.

squireh:

As for other files I have no idea. Really dont look at the zencart file structure much.

Although hacker files can be found almost anywhere on the site, and mc1-8 is correct that you shouldn't take shortcuts (from the link he provided), I can tell you that my 'first port of call' when looking for hacker activity is the /images/ folder. Do a search/sort based on the file extensions. You should only find jpg, png, gif or other image formats. If you find any file(s) in this folder with a 'php' extension it has been placed there by a hacker.

The reason for checking the /images/* folder first is because this is one of the few ZenCart folders that require permissions of '777' (IOW, '*anyone' can write to the folder)

*anyone = Anyone with access to the server itself. Most of the other folders are more restrictive in that only the owner or group members can write to them. Point is, the /images/ folder is an easy target for a wannabe hacker.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.