WordPress won’t allow PHP errors

Solution:1

Try adding ini_set("display_errors","2"); ERROR_REPORTING(E_ALL); to the index.php file.

Solution:2

Can you get access to /var/log/httpd/error_log? If you’re on Linux, this is (by default) where the errors would be shown.

Solution:3

It is very useful for development WordPress installation set to true WP_DEBUG constant in wp-config.php file:

/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/

define('WP_DEBUG', true);

You will see much more, including PHP noticing and WordPress messages about deprecating staff usage.

Solution:4

on the .htaccess file in your root directory add the following line.

php_flag display_errors on