In my flywheeel multisite subdirectory stagining installation, whenever I’m testing a plugin and it returns an error, it only shows ‘A critical error occurred on your site’ but without any debugging information.
I went into wp-config.php and set:
define(‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
but it still shows the same error without identifying where the php error is occurring. Can anyone guide me to enable and display errors on flywheel? THanks in advance.
so I added that line to wp-config.php but rather than returning “Fatal error occurred…” it just shows a blank white page. How can I get it to display the PHP error w/ line number etc.?
Honestly it’s simpler to just use the WP Debugging plugin. That’s why I wrote it.
Before installing/activating the plugin you might want to remove those debugging constants from wp-config.php. They will be added correctly with the plugin settings.
The plugin also enables an easy way to review your error.log with the Debug Quick Look menu.
for some reason there’s no discernible difference with the plugin activated. Maybe something very spcific to my installation is suppressing it. It’s a multisite and Im using custom templates.
Deactivate the plugin.
Uncomment or delete the previous debug constants in wp-config.php
Reactivate the plugin.
Re-save the Settings.
Check your wp-config.php.