Post

Wordpress Debug Errors

debugging acf blocks

  1. add your block to an empty page
  2. most errors are caused by missing values in your block. ie: no image value added to the block or no subtitle value
  3. save your block with no values to see the errors in your theme code.
  4. use query monitor to tell you if there are any php warning or errors on your test page
  5. 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

  1. deactivate all plugins
  2. enable default theme
  3. 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.