How to display PHP errors?
When diagnosing a problem, you want to be sure that you notice all hints that there might be. That’s why you need to ensure that PHP is configured to display and log errors in such cases. • Starting with Gallery 2.2, it suffices to [[Gallery:#How_to_set.2Fuse_Gallery_in_debug_mode.3F|put Gallery into its debug mode]]. • In Gallery 2.0 and Gallery 2.1 (including 2.1.2), the debug mode doesn’t enable displaying PHP errors yet. You’ll need to enable it yourself. • In rare cases, you also have to ensure that PHP errors are not just displayed, but also logged. Also see: * [[Gallery:#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]] By browsing to your Gallery’s phpinfo page at http://www.example.com/gallery/lib/support/index.php -> PHPinfo, you can find all the configuration details of PHP we’re interested in. And these are: • display_errors (we want it to be On or 1) • display_startup_errors (we want it to be On or 1) • log_errors (we want it to be On or 1
When diagnosing a problem, you want to be sure that you notice all hints that there might be. That’s why you need to ensure that PHP is configured to display and log errors in such cases. • Starting with Gallery 2.2, it suffices to [[Gallery:#How_to_set.2Fuse_Gallery_in_debug_mode.3F|put Gallery into its debug mode]]. • In Gallery 2.0 and Gallery 2.1 (including 2.1.2), the debug mode doesn’t enable displaying PHP errors yet. You’ll need to enable it yourself. • In rare cases, you also have to ensure that PHP errors are not just displayed, but also logged. Also see: * [[Gallery:#What_is_the_webserver_error_log.3F|How can I view the error log of the webserver?]] By browsing to your Gallery’s phpinfo page at http://www.example.com/gallery/lib/support/index.php -> PHPinfo, you can find all the configuration details of PHP we’re interested in. And these are: • display_errors (we want it to be On or 1) • display_startup_errors (we want it to be On or 1) • log_errors (we want it to be On or 1