0

Im lost here, closed few files and clicked yes on save all and now page wont load and error_reporting(1); its in all documents... No erors given

3 Answers 3

2

If your error isn't a syntax error, you can manually debug by placing die('test'); in various areas of your code to see if that portion executes.

Sign up to request clarification or add additional context in comments.

Comments

1

You also need to turn on the display of errors, so at the top of your file add:

error_reporting(E_ALL); 
ini_set("display_errors", 1);

2 Comments

Thank god, i went for a walk. Ill try and let you know
(tipp) using -1 instead of E_ALL will enable all error reporting including E_STRICT and any error levels PHP might introduce in future versions of PHP.
1

Turn on error_reporting and display_errors in your php.ini file. If you have a syntax errror in the script, most likely the script's being killed long before execution could ever reach in the in-script ini_set/error_reporting overrides.

You might want to check the server's error log, as fatal errors generally get sent there if error reporting/display is turned off.

1 Comment

Depends on what system you're running this on, and what package you installed. Generally on Unix-ish boxes it would be something like /etc/php5/php.ini

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.