CodeIgniter Forums
syntax errors - 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: syntax errors (/showthread.php?tid=4831)



syntax errors - El Forum - 12-18-2007

[eluser]banjomacman[/eluser]
What is the best way to get all the error information? I seem to only get blank pages instead of errors that tell me the file and line number. Thanks. Mike.


syntax errors - El Forum - 12-18-2007

[eluser]Unknown[/eluser]
You could check the error logs?

If this is not a production environment you could always turn error reporting on for php, as well as display errors.


syntax errors - El Forum - 12-18-2007

[eluser]banjomacman[/eluser]
Ecsyle,

It isn't production how would I enable the 2 items you mentioned? Thanks. Mike.


syntax errors - El Forum - 12-18-2007

[eluser]ejangi[/eluser]
On about line 270 of the php.ini file you'll find the error handling settings for PHP, you should make them look something like this:
Code:
error_reporting  =  E_ALL

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = On

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = On