• Resolved Doc

    (@trotsak)


    Fatal error after plugin update:
    Fatal error: Default value for parameters with a class type hint can only be NULL in /****/wp-content/plugins/wp-fail2ban/admin/lib/tab.php on line 182

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author invisnet

    (@invisnet)

    The death of ancient versions of PHP cannot come soon enough….

    I’ll do another release over the weekend, but for now if you remove bool from the function declaration so it reads:

    protected function getLogFacilities($def, $_enabled = false)

    that should fix the problem.

    Thread Starter Doc

    (@trotsak)

    Thank you very much for your fast reply! I have replaced the folder with the previuos version and I am waiting for your another release.

    PS: Thank you very much for your hard work!

    • This reply was modified 5 years, 10 months ago by Doc.

    My wife just experienced the same problem on her site. She has been using Debian to host wordpress for a long time and it has maintained the installation of php5 through at least three major releases of Debian even though it appears the php package now (under stretch) refers to php7.

    Deleting the type in the signature appears to have fixed the problem. Thanks.

    I have no experience with php so am curious. Is there a fair chance that simply installing php7 will “Just Work (TM)”? I know you cannot vouch for other plugins, but all things being equal, is it worth giving it a shot?

    Edit: this is what appears to be installed with regard to php:

    $ dpkg-query -W | grep php
    libapache2-mod-php5	5.6.33+dfsg-0+deb8u1
    php5	5.6.33+dfsg-0+deb8u1
    php5-cli	5.6.33+dfsg-0+deb8u1
    php5-common	5.6.33+dfsg-0+deb8u1
    php5-curl	5.6.33+dfsg-0+deb8u1
    php5-gd	5.6.33+dfsg-0+deb8u1
    php5-json	1.3.6-1
    php5-mysql	5.6.33+dfsg-0+deb8u1
    • This reply was modified 5 years, 10 months ago by davejohncole.
    • This reply was modified 5 years, 10 months ago by davejohncole.
    Thread Starter Doc

    (@trotsak)

    “Is there a fair chance that simply installing php7 will “Just Work (TM)”?”

    According my google searching of the same error – I guess: “Yes, the upgrade have resolve issue but the new issues will come …”. We have upgrade php. But we really don’t want to do this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error after plugin update’ is closed to new replies.