Page 1 of 1

Blank php pages randomly?

Posted: Thu Jan 13, 2011 3:31 am
by garethrobson
Hi everyone!

I have a strange problem. Basically, I dont know much about php at all, but my colleague has developed an intranet for the school that we work in. It has a log in system and lots of applications including a messaging system.

We have a problem though that is popping up across the school.

On certain machines when users are typing in their usernames and passwords (and selcting the staff button) then clicking login, they are just being presented with a COMPLETELY white page. The source code of that page is just about 10 lines of basic html / php code that just consists of opening and closing body tags / header tags etc. refreshing that page and resubmitting that data SOMETIMES lets the user log in, but other times they could try 1000000 times and it still won't let them on. Completely deleting all temporary internet files / cookies / form data etc sometimes gets it working too, but we have yet to find a fix that works every time. This will fix the problem for a couple of days then the fault will return.

It is not specific to certain machines, it has been appearing on random ones, but there are certain machines that seem to get it more often than others.

ALSO, the messaging system has been having a similar issue. When a user is submitting a message, sometimes it just does not get added to the database at all, and although they are directed to the "message sent successfully" page, the message doesnt appear anywhere. clearing all temporary internet files and cookies seems to solve this issue for a short amount of time too sometimes.

Does anybody have any ideas about what could be causing these issues? My colleague has looked through all of his code and cannot see any faults whatsoever. Unfortunately I cannot post any of the code onto this site because the system is copyrighted by the school. (not even snippets i am afraid :( )

Thanks for reading!

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 3:39 am
by Benjamin
Post the code please.

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 3:43 am
by garethrobson
Sorry but i cant post the code (I dont technically own the copyright i just work for the school that does). I was hopeing somebody had come across this problem before and knew what was possibly causing this. I know it will be hard to diagnose the problem without the code but sorry :(

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 3:54 am
by Benjamin
Blank page is a fatal or parse error. The only thing we can tell you is to enable display errors or check the error log. If you need more than that post the code. There's nothing in 10 lines of code we haven't seen before.

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 4:09 am
by garethrobson
oh sorry you meant the code on the page that appears, thats not a problem :) have to wait until the next time it happens though, but shouldn't take long to be honest

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 4:55 am
by garethrobson
told you wouldn't take long :P

Coleague just tried to log in but had teh blank white screen. Copied the code below. Tried clearing temp files etc but no luck. Managed to get in by resubmitting the data about 10 times.

(sorry but it isnt 10 lines only 4)

code:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 4:56 am
by Benjamin
This is not the PHP code.

Re: Blank php pages randomly?

Posted: Thu Jan 13, 2011 5:08 am
by garethrobson
I know, this is the code that is generated on the blank page. I have Pm'd you the php code for the login page. The problem is happening for both staff and students.