How to find cause of PHP notices with no stack trace?
You can get the backtrace by trapping the E_NOTICE message. If you add the following snippet to wp-config.php just before /* That’s all, stop editing! Happy blogging. */ you should see the full backtrace in the error log. set_error_handler(function() { error_log(print_r(debug_backtrace(), true)); return true; }, E_USER_NOTICE); define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( … Read more