Title: Adds php-error class
Last modified: February 1, 2021

---

# Adds php-error class

 *  Resolved [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/)
 * With debug enabled, the plugin causes `php-error` to be added to the body tag,
   but does not log any messages.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988152)
 * Hi [@swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * Which PHP version are you using?
    Can you post here a screenshot of the “error”?
 * Best,
    Nuno
    -  This reply was modified 5 years, 4 months ago by [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/).
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988413)
 * PHP 7.4
    [Screenshot](https://www.dropbox.com/s/zg7w98zt8uu8id4/Plugin%20php-error%20screenshot.png?dl=0)
 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988428)
 * If you disable my plugin can you see the php-error on the body?
 * See this:
    [https://core.trac.wordpress.org/ticket/51383](https://core.trac.wordpress.org/ticket/51383)
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988473)
 * Of course not
 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988500)
 * The php-error class is added to the body because I’m (suppressing) a warning 
   on the code. The class should not be added to the body because of this type of
   warnings thats why there is a ticket open on the WordPress core [https://core.trac.wordpress.org/ticket/51383](https://core.trac.wordpress.org/ticket/51383).
 * There is nothing to be concern although I may fix this in the next version if
   the WP bug is not fixed.
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988549)
 * Are you referring to `if ( ! @include( 'class-change-wp-admin-login.php' ) )`?
   Dude, you really gotta replace that with `! file_exists`.
 *  Thread Starter [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988557)
 * Though, why are you doing that anyway? You know that file isn’t there…because
   it’s your plugin. ??
 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988561)
 * Yes, thats correct. I may do it. It is not critical and it won’t affect the plugin
   functionality. 40.000 active installs without issues … so far.
 *  [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * (@nunosarmento)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988903)
 * “warning” fixed in the latest version.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Adds php-error class’ is closed to new replies.

 * ![](https://ps.w.org/change-wp-admin-login/assets/icon-128x128.gif?rev=3121325)
 * [All In One Login — Login Page Security and Customization for WordPress with Google reCAPTCHA, Social Login, Temporary Login, 2FA, and more.](https://wordpress.org/plugins/change-wp-admin-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/change-wp-admin-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/change-wp-admin-login/)
 * [Active Topics](https://wordpress.org/support/plugin/change-wp-admin-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/change-wp-admin-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/change-wp-admin-login/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Nuno Sarmento](https://wordpress.org/support/users/nunosarmento/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/adds-php-error-class/#post-13988903)
 * Status: resolved