• Hello.
    I have error in the new version 7.0.0 of “Breadcrumb NavXT” plugin (using PHP 5.6.40):

    
    PHP Fatal error:  Default value for parameters with a class type hint can only be NULL in ../wp-content/plugins/breadcrumb-navxt/includes/adminKit/setting/class-mtekk_adminkit_setting_absint.php on line 33..
    

    Kind Regards.

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

    (@mtekk)

    Thanks for reporting this. It looks like I added code that required a feature in PHP7 and didn’t get that requirement into the readme. I’ve update that. I’ll see what I can do for 7.0.1 for PHP5.6 compatibility (though at this point please consider getting your webhost to update PHP on your server, I can’t easily test against PHP5 as my distro removed it from their software repo), I’m tracking this in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/261

    • This reply was modified 2 years, 11 months ago by John Havlik. Reason: add GitHub issue link
    Plugin Author John Havlik

    (@mtekk)

    @guytzhak, this specific error is due to running PHP5.6. If you have the ability to, I would recommend updating to PHP7 or newer.

    Plugin Author John Havlik

    (@mtekk)

    The specific “hint” error should be solely a PHP5 issue. PHP7 added the ability to set defaults when type hinting some of the default types within PHP. Are you sure you are getting the exact same error as the OP? I’ll switch my dev platform back to PHP7 to confirm/double check.

    Plugin Author John Havlik

    (@mtekk)

    FYI, 7.0.1 has been released, I think it should work with PHP5.6, however I have no way to test this so I’ve marked it as PHP7.0+ within the .org repo. If anyone here wants to test 7.0.1 and let me know if they run into any PHP errors, I would appreciate it.

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