Blank php pages randomly?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
garethrobson
Forum Newbie
Posts: 5
Joined: Thu Jan 13, 2011 3:18 am

Blank php pages randomly?

Post 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!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Blank php pages randomly?

Post by Benjamin »

Post the code please.
garethrobson
Forum Newbie
Posts: 5
Joined: Thu Jan 13, 2011 3:18 am

Re: Blank php pages randomly?

Post 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 :(
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Blank php pages randomly?

Post 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.
garethrobson
Forum Newbie
Posts: 5
Joined: Thu Jan 13, 2011 3:18 am

Re: Blank php pages randomly?

Post 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
garethrobson
Forum Newbie
Posts: 5
Joined: Thu Jan 13, 2011 3:18 am

Re: Blank php pages randomly?

Post 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>
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Blank php pages randomly?

Post by Benjamin »

This is not the PHP code.
garethrobson
Forum Newbie
Posts: 5
Joined: Thu Jan 13, 2011 3:18 am

Re: Blank php pages randomly?

Post 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.
Post Reply