1

I'm using the basic MAMP on Mac, and PHP doesn't display errors, I already changed PHP and Apache configuration but still, can someone help me?

4
  • try including this in your script ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); Commented Oct 25, 2016 at 7:38
  • Have a read here and see if this help - stackoverflow.com/questions/1053424/… Commented Oct 25, 2016 at 7:38
  • @Blinkydamo Yes, I did, but it doesn't fix my problem! Commented Oct 25, 2016 at 9:07
  • @GhostWorker Doesn't work Commented Oct 25, 2016 at 9:07

2 Answers 2

2

Not an answer, but I can't comment yet. Its obvious and a stupid thing to do, but if anyone else has this issue there are lots of comments in the php.ini, make sure you are changing the actual variable definition and not just a comment!

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

Comments

1

First of all make sure that you are editing the right file. MAMP usually creates several php.ini files. Call phpinfo() and check the path to the correct php.ini.

In your php.ini you need to set the following:

display_errors = on
error_reporting = E_ALL

Don't forget to restart Apache after the changes.

1 Comment

Ok, I solved my own Problem, at the end of php.ini, display_errors was turned of, so it ignored the first argument

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.