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 www.example.com/admin/, it takes me to login.php. I log in. It then redirects me to 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 www.example.com/admin/categories.php or 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.
Re: Admin index.php suddenly blank
Re: Admin index.php suddenly blank
That solution worked for me.
Why did this happen?
New settings on the Hosting server? Security Issue?
tom
Re: Admin index.php suddenly blank
:frusty:I tried it and I still get a Blank Page. Can't Login Any suggestions? www.dulcesencuentros.com
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