• Resolved WPVoteUser

    (@wpvoteuser)


    I have updated to the newest Slimstat version. Unfortunatley it broke the entire site. Actually I only see:

    Fatal error: Default value for parameters with a class type hint can only be NULL in /home/httpd/vhosts/MySite/blog/wp-content/uploads/wp-slimstat/browscap-db-master/daverandom/exceptional-json/src/functions.php on line 15

    How can I fix this error and get my Blog up and running again?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    @michaeldean Slimstat now checks that the version of PHP being used is compatible with the Browscap library, and if it’s not, it will not use it anyway, so it’s like not having it installed. You can uninstall it in the settings if you want to save about 30 Mb of space on your server.

    Thank you,
    Jason

    Thank you.

    I don’t need to save space on server, but does leaving browsecap increase memory usage?

    Plugin Author Jason Crouse

    (@coolmann)

    @michaeldean a little, because the plugin loads some extra code if the file is detected.

    You may want to install a “phpinfo” script on your site to see what version of PHP is actually being used to run WordPress, because I still think that’s the problem.

    Best,
    Jason

    New version working fine, thank you.

    For your info was using the following php when the previous version caused site blank out:
    MYSQL Version : 5.6.41-84.1-log
    SQL Mode : NO_ENGINE_SUBSTITUTION
    PHP Version : 7.0.33

    Plugin Author Jason Crouse

    (@coolmann)

    @hiflyman thank you for confirming! It looks like this new Browscap library needs at least PHP 7.1.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘functions.php on line 15: class type hint can only be NULL’ is closed to new replies.