I ran into that issue too, and it turns out that it was because there actually was an error that wasn’t displaying. Once I fixed that underlying error, the top margin problem went away.
This is in wp-admin/admin-header.php:
// Print a CSS class to make PHP errors visible.
if ( error_get_last() && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) ) {
$admin_body_class .= ' php-error';
}
So I temporarily added a display of that error_get_last() output to one of my plugins:
$debug = print_r(error_get_last(),true);
echo '<p>php-error: '.esc_attr($debug).'</p>';
That showed me where the underlying error was. I fixed it, and problem solved!
Related Posts:
- error_log() output for print_r() appearing on page
- Hide php Notices in Dashboard
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Does the debug.log do log rotation?
- Debugging an error: wp_enqueue_style was called incorrectly
- renaming an admin menu item with decimal array index number
- Add value to usermeta without removing previous values?
- Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file
- Utilize WP-CLI from inside WordPress, not SSH
- error_log is not working as expected in functions.php file
- Admin Menus – Name Menu different from first Submenu [duplicate]
- Using FirePHP with WordPress
- How to Add a Link to the Drop-Down User Menu in the Admin Bar?
- Debugging PHP object during Ajax call in WordPress
- “Notice: Undefined variable: content” is showing [closed]
- mysqli_real_connect() – authentication method unknown to the client Warnings
- How to debug php code in hostgator cPanel
- how to trace notice warning on core function is_page() & is_singular in class-wp-query.php
- Create Logout Link WordPress Admin Menu
- syntax issue on php 7.4
- Why use the Settings API over a new administration menu?
- Preferred Method of debugging a wordpress SQL calls?
- Huge debug.log because of “undefined offset in media.php”
- Show comments menu in dashboard only if the site has comment
- Same log message keeps on printing to debug.log file thousand of times
- Remove one value in dismissed_wp_pointers?
- How to find error in my code when the error message is pointing to WP core file?
- remove wp floating submenu in wp dashboard
- Mute Debug Messages from Plugins
- Cannot access wp-admin (wordpress dashboard)
- Dashboard broken into list of links
- XAMPP-VM Mac OS Mojave wordpress debugging using XDebug
- How to debug my custom login form looping intermittently
- WordPress admin pointers tour bug?
- Pagination in plugin’s backend
- “Undefined index” error when saving empty array with checkboxes
- Site throws 500 error after upgrading from PHP 5.6 to 7.X
- Change order of custom submenu link in WP Admin?
- how to save checkbox data for custom setting?
- How to create a field in customize and show that in header.php?
- How to display SQL query that ran in WC_Order_Query?
- How can I find the cause of a 500 server error?
- Admin submenu issue with PHP not detecting two strings as equal
- admin-ajax GET response bad request
- Some menu items wont budge
- Hooks for post saving make a post-new.php to load latest post’s data
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- add button to specific post
- PHP getting error when trying to access WP-Admin Dashboard
- Warning: call_user_func() expects parameter 1 to be a valid callback, function
- Processing ajax call to php to insert into mysql database
- How to debug failed changes to posts?
- Remove submenu item from list
- Admin Menu new tab external link
- Publish button now showing content after saving
- Is there way to toggle the publish date display?
- Creating plugin with front-end pages
- var_dump() and print_r() display null in php
- File is executed twice if plugin is activating
- Fatal error: wp-settings.php on line 199
- How to display only specific Error types in debug.log? No notices, warnings, etc
- How to identify which php file a plugin is using on page load?
- Notice : Array to string conversion on array_intersect user meta
- Notice: Undefined index: post_title error
- Add Admin Option w/ Anonymous Function
- add menu page in loop menu order
- (Xdebug Profiler) Why are there two cachegrind files generated for one page?
- Stripe button is not working in a template page
- I’m writing my first plugin and my echo output is showing up on every page of my wordpress installation
- Adding button to wordpress menu
- Issue with search form admin panel after PHP migration
- How to find the function which is outputting Array
- WP Admin Bar – Get current theme name as custom menu title
- admin menu naming
- How to call a certain object/menubar in a PHP file
- Accessing Variables Used In a Plugin Using PHPStorm + XDebug
- WordPress won’t display errors at all
- Warning: Cannot modify header information (with a twist)
- Catchable fatal error in appcloud free theme by Tokokoo
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- which php or css file has generated an inline style in WordPress that overwrites my css
- WordPress White Screen Error
- Redirect users by role to custom pages
- Add Woocommerce Customers link to custom admin menu
- Internal server error when enabling Multisite in WordPress
- Error when loading Dashboard
- using custom pages for myaccount in woocommerce
- Passing PHP Variables to JS using Localize Script
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Create a hierarchical taxonomy list in WordPress
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- How to specify the path for require_once in a child theme?
- How do i add slugs to a URL, but still redirecting to the same page
- My top header looks different on single pages but is fine on the home page
- Add widget area from visual editor
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- Adding custom PHP to existing loop in Genesis
- index.php navigation
- WordPress upload images not displaying
- Customize create table SQL statement in any WordPress plugin