Forum Moderators: coopster
I have taken over a code base, and I having the hardest time trying to get the resulting web pages to display. I'm updating the code to run in PHP5, meaning adding some db stuff, updating some 3rd party classes, etc.
The problem I'm having is that when I load the page in Firefox, I just get a white screen, which normally means there's a PHP error somewhere. So I started going through them, and fixing as needed.
Now, the error_log doesn't display any errors when I load the page, but I still get a white screen.
Where should I look now? I see the access log is logging the hit, and if I simply do a phpinfo() call and immediately exit, the page appears fine, so that seems to me PHP is working nicely with Apache.
Any guidance would be appreciated.
error_reporting = E_ALL
display_errors = On
log_errors = On
error_log = /var/log/httpd/php_error_log
I restart the server, but I still get the white screen, and no errors displaying on screen or in the log.
Nothing there. The directive is simply:
auto_prepend_file =
auto_append_file =
I think I'm making head-way. I renamed a file that should be included, and I actually got a window. I'm thinking something is failing somewhere because a command has an @ in front of it.
If I find the answer, I'll post it here.
exit('You are here'); It's a bit of a longer process to troubleshoot this way, but sometimes it's your only resort!
It was, indeed, a code error. I went through and did a:
print "Loaded!\n"; exit();
and found where the code stopped. It turned out to be a JpGraph problem, using a PHP 4 version when I needed the PHP 5 version.
After I did that, and made some minor changes, all was well again.
Thanks!