CodeIgniter Forums
No error on non-writable logs directory? - 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: No error on non-writable logs directory? (/showthread.php?tid=6885)



No error on non-writable logs directory? - El Forum - 03-16-2008

[eluser]stefanhapper[/eluser]
Do you agree that this is a bug?

It seems that when the system/logs is not writable all controllers display a blank page (or maybe better to say, no page at all) instead of an error.

I am referring to the Forum thread http://ellislab.com/forums/viewthread/71904/

This should at least be put in the "troubleshooting" section of the user guide.


No error on non-writable logs directory? - El Forum - 03-16-2008

[eluser]Glen Swinfield[/eluser]
Sounds like this is because a critical php error occurs, but you have php ini display_errors set to 'off' so you see a blank page.

In your index.php file put

ini_set('display_errors', 'On');
error_reporting(E_ALL);

Refresh and see if you get a php error - I suspect you are getting an error for a different reason than you think because. I could be wrong.


No error on non-writable logs directory? - El Forum - 03-17-2008

[eluser]stefanhapper[/eluser]
Glen, thank you for your suggestion.

I tried what you said, but it didn't work, I still get a blank page.

As soon as I make the logs folder writable again, everything works as it should.