git clone https://github.com/Automattic/atomic_unhinged_debugger.gitinhtdocs/- create
custom-redirects.phpinhtdocs - add
require __DIR__ . '/atomic_unhinged_debugger/includes/custom-redirects.php';tocustom-redirects.php - watch
/tmp/php-errors - access the site
- open
https://{your.site}/atomic_unhinged_debugger/in your web browser - using your browsers debug tools set a cookie named
enableAUDwith the valuetruefor your site and start digging... - remember to delete the
/tmp/pat-*files when you're done.
Hopefully that works... ¯\(ツ)/¯
If you see something like
PHP Fatal error: Cannot redeclare add_filter() (previously declared in /srv/htdocs/atomic_unhinged_debugger/wp-includes/plugin.php:127) in /wordpress/core/6.6/wp-includes/plugin.php on line 121
Then there is some code, somewhere, that is doing something like this example from wp-content/plugins/woocommerce/src/Utilities/PluginUtil.php require_once ABSPATH . WPINC . '/plugin.php';. These will need to be fixed, unfortunately, by changing the code to something like if ( ! function_exists( 'add_filter' ) ) { require_once ABSPATH . WPINC . '/plugin.php'; }