Zen Cart Logo
Forums / General Questions / Admin index.php suddenly blank

Admin index.php suddenly blank

Locked

Views: 2,950

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Jul 2008, 7:03 PM
#1
iamapizza avatar

iamapizza

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Admin index.php suddenly blank

Hello,

I am a pizza. How are you?

I did do a search for this before posting, no go.

I've had a Zen Cart installed and running fine for a few months now. Just today, the /admin/index.php file suddenly went blank. None of the files have been modified in the past month, this is a weird problem that suddenly happened today. So what happens is, I go to https://www.example.com/admin/, it takes me to login.php. I log in. It then redirects me to https://www.example.com/admin/index.php, which is blank.

I've checked the cookies. The cookies exist, showing that I'm authenticated and logged in.

I'm able to browse to the other admin pages such as https://www.example.com/admin/categories.php or https://www.example.com/admin/orders.php, all of those pages work fine. It's just this one index.php page that is blank.

I checked the response headers, it shows an HTTP 200. I do a view source, and there's nothing in there. Not even a doctype or an <html> tag.

I turned on debug logging as outlined in this FAQ, no errors showing at all.

I removed the existing /admin/index.php file and replaced it with a flat HTML file. That worked. I restored the index.php file and placed a "HELLO WORLD" outside the <? ?> php delimiters, that worked fine as well. So this must be a code problem, I just don't know how to narrow this down. Any suggestions or pointers?

Thanks,
I Am A Pizza.

2 Jul 2008, 7:21 PM
#2
iamapizza avatar

iamapizza

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: Admin index.php suddenly blank

That's interesting...

In index.php I just changed this

$version_check_index=true;

to

$version_check_index=false;

And it started working.

This means that there's a problem with this server attempting to reach http://ping.zen-cart.com/version_id.txt (which is where the Zen Cart version is stored). The code currently uses @file() to query this URL and I tried making a test.php to query any URL, the page kept coming back blank. Hmm...

Is this a problem with the server or PHP? Is there a way to not have the rest of the page rely on the functioning of file()?

2 Jul 2008, 7:53 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Admin index.php suddenly blank

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Aug 2008, 10:18 PM
#4
loosefast avatar

loosefast

Zen Follower

Join Date:
Jun 2005
Posts:
199
Plugin Contributions:
0

Re: Admin index.php suddenly blank

That solution worked for me.

Why did this happen?

New settings on the Hosting server? Security Issue?

tom

15 Aug 2008, 5:51 AM
#5
paffum avatar

paffum

New Zenner

Join Date:
May 2008
Location:
Long Beach, CA
Posts:
14
Plugin Contributions:
0

Re: Admin index.php suddenly blank

:frusty:I tried it and I still get a Blank Page. Can't Login Any suggestions? https://www.dulcesencuentros.com

15 Aug 2008, 5:55 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Admin index.php suddenly blank

Most blank-page situations are a result of a PHP error caused by one or more incorrect code customizations you've done, or by bad FTP uploads.

This article talks about common causes and supplies some tools to help diagnose:
https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.