CodeIgniter Forums
Blank page weirdness. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Blank page weirdness. (/showthread.php?tid=3570)



Blank page weirdness. - El Forum - 10-11-2007

[eluser]Unknown[/eluser]
Hi,

I have a problem where a blank page is returned after I make a call to a search class I have but if I go to the controller and put in a simple echo statement it all works -- here's the weirdness -- if I then take the echo statement out of the controller (i.e. put the controller back to the way it was) it STILL works.

It carries on working for me for as long as I'm on the site but if I try the next day it's back to not working. The situation occurs in both IE and Firefox.

Of course I'd be grateful if anybody could shed some light?


Blank page weirdness. - El Forum - 10-11-2007

[eluser]smith[/eluser]
Your controller is not ok, you are looking at cached page, maybe relevant parts of code would help us help you...


Blank page weirdness. - El Forum - 10-11-2007

[eluser]Michael Wales[/eluser]
A blank page almost always means a PHP syntax error.


Blank page weirdness. - El Forum - 10-11-2007

[eluser]smith[/eluser]
Yes, if php is set not to display errors.

@jabbarman:
If it is the case, then use development server and set it to display errors and warnings, and live server with those options disabled.