• Resolved titsmaker

    (@titsmaker)


    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

    (@specialk)

    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 3 years, 5 months ago by Jeff Starr.
    Thread Starter titsmaker

    (@titsmaker)

    I am sorry Jeff. You are right – I use another plugin, just confused because of the similar name.

    Plugin Author Jeff Starr

    (@specialk)

    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.