0

When I run some php code with a syntax error, it does not show any warning or fatal error. Instead, it shows the message below

Server error The website encountered an error while retrieving http://190.168.191.32/administrator/reports.php. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this web page later.

What is the reason and how do I solve this problem?

1
  • 4
    Did you try reading the error log? Commented Jun 28, 2011 at 7:16

3 Answers 3

1

The error you are describing is a 500 Error.

PHP is setup to throw this when the error reporting is not public(production env).

If you want to see them from the browser you'll have to set

display_errors = On in you php.ini

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

Comments

1

In debug environments, use error_reporting(E_ALL | E_STRICT) so that php reports all errors.

Comments

0

check your php.ini file. Especially check the options display_errors and error_reporting

Or/And read the log file of your Webserver. On a typcial setup with apache on linux this is /var/log/apache/error.log

Comments

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.