Welcome Guest, Not a member yet? Register   Sign In
syntax errors
#1

[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.
#2

[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.
#3

[eluser]banjomacman[/eluser]
Ecsyle,

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB