CodeIgniter Forums
entire site goes blank(white) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: entire site goes blank(white) (/thread-1125.html)



entire site goes blank(white) - rooye - 02-12-2015

hello everyone,
I developed a website(etougebe-baptistchurch.org) using CI and it was running fine until 2 days ago that i discovered that on of the pages etougebe-baptistchurch.org/events showed only a blank page.while tryingto figure out the problem with the code(if any) the rest of the pages became white too. can someone help me? am stressed up

Thanks in advance


RE: entire site goes blank(white) - RobertSF - 02-12-2015

A blank page in PHP usually means that there's a syntax error in the code and that error reporting is turned off. You can turn error reporting on in your script with this: error_reporting(E_ALL); However, that won't work for errors that are caught in compile time, before execution starts, because that line needs to execute before it works.

The solution, then, is to turn error reporting on at the server, in the PHP.INI file. Look for a line that says error_reporting = "something" and change the something to E_ALL (the most errors reported). If you can't access your server's PHP.INI file, talk to your support or server administrator.

Meanwhile, you might also check your error log, which should be available to you via your hosting control panel. The error may or may no be logged there.

Finally, turning all error reporting on in live servers is considered a generally poor practice for security reasons. Also, working directly on a live server can be dangerous as you found out -- an error can spread. Try to set up a development server, where you do the actual development work, and when everything is right, you transfer the files to the live server. Your development server can be on your own computer, or you can just have a second installation of Codeigniter on your live server, in a separate directory.

I hope that helps!


RE: entire site goes blank(white) - rooye - 02-15-2015

Thanks Bob. I will try all of that.


RE: entire site goes blank(white) - dbui - 02-19-2015

Time to think of Version Control your code, you will find it helpful to manage your codes in version. IT helps you quickly differentiate
the changes you made from your previous version to latest one. Suggestion is SVN (Subversion)

Also I tested all functions before I write code, that helps and better! CI has built-in Unit Test and it useful for the purpose. Try a good
habit then you harvest a good code and manage it