Title: Plugin triggers warning on PHP 8
Last modified: October 7, 2021

---

# Plugin triggers warning on PHP 8

 *  Resolved [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-triggers-warning-on-php-8/)
 * Hi, after switching my local WP to PHP 8 I see following in my logs:
 * `Warning: Private methods cannot be final as they are never overridden by other
   classes in \wp-content\plugins\disable-gutenberg-1.1.0\helpers\boot.php on line
   50`
 * `Warning: Private methods cannot be final as they are never overridden by other
   classes in \wp-content\plugins\disable-gutenberg-1.1.0\helpers\singleton.php 
   on line 76`
 * I suppose switching
    `final private function __clone() {}` to `final protected
   function __clone() {}` should solve the issue

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-triggers-warning-on-php-8/#post-14948184)
 * You need to compare your installed DG plugin with a fresh download from the WP
   Plugin Directory. Why? Because the files referenced in the PHP Warnings do not
   exist in the official version of the plugin. Specifically (for each warning):
 * `plugins\disable-gutenberg-1.1.0\helpers\boot.php`
 * and
 * `plugins\disable-gutenberg-1.1.0\helpers\singleton.php`
 * Nether `boot.php` nor `singleton.php` exist in the official version of DG plugin.
   Something else is adding those files to your site.
 * Adds: Further, `disable-gutenberg-1.1.0` is not the correct name for the plugin
   directory. And what’s more, DG is not on version 1.1.0, but rather version 2.5.1.
   I am guessing that you are using some other “Disable Gutenberg” plugin would 
   be the best case scenario here.
    -  This reply was modified 4 years, 8 months ago by [Jeff Starr](https://wordpress.org/support/users/specialk/).
 *  Thread Starter [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-triggers-warning-on-php-8/#post-14948215)
 * I am sorry Jeff. You are right – I use another plugin, just confused because 
   of the similar name.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-triggers-warning-on-php-8/#post-14948244)
 * No prob, best of luck to you.

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

The topic ‘Plugin triggers warning on PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/disable-gutenberg/assets/icon-256x256.png?rev=1925990)
 * [Disable Gutenberg](https://wordpress.org/plugins/disable-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-gutenberg/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-triggers-warning-on-php-8/#post-14948244)
 * Status: resolved