Wordpress Debug Errors
debugging acf blocks
- add your block to an empty page
- most errors are caused by missing values in your block. ie: no image value added to the block or no subtitle value
- save your block with no values to see the errors in your theme code.
- use query monitor to tell you if there are any php warning or errors on your test page
- query monitor is also good for relating errors to specific pages and urls - With query monitor you can visit a url and to get the errors relating to that page
debugging plugins
Sometimes best way to debug a plugin is to read source code of a plugin.
1
2
3
4
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
site debugging
- deactivate all plugins
- enable default theme
- is ssl enabled? can cause issue if website url is https but there is no active certificate
This post is licensed under CC BY 4.0 by the author.