• So, I recently updated my server and WordPress version (now running 8.0.21 for PHP and 6.0.1 for WordPress and I ran across this error when trying to login to the admin panel.

    PHP Fatal error:  Declaration of Axiom_Plugin_Updater::download_package($package, $check_signatures = false) must be compatible with WP_Upgrader::download_package(
    $package, $check_signatures = false, $hook_extra = []) in /bitnami/wordpress/wp-content/plugins/masterslider/admin/includes/classes/class-axiom-plugin-updater.php on line 264

    As the error suggests, the function at the line mentioned just needs to have that last parameter added to its declaration. I did this on my end and everything appears to be working fine. I’m reporting it here so that your development team can add this to the fix for your next update.

    Thanks for your time and have a good day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @robertasystyou ,
    could you explain, what you exactly did? I have the same problem?
    Best, Daniel

    Thread Starter robertasystyou

    (@robertasystyou)

    Sure, so there was a function called ‘download_package’ on line 264 of ‘masterslider/admin/includes/classes/class-axiom-plugin-updater.php’. I added the ‘$hook_extra = []’ parameter to the function’s definition. So
    public function download_package( $package, $check_signatures = false )
    becomes
    public function download_package( $package, $check_signatures = false, $hook_extra = [] )

    WordPress added the $hook_extra parameter in 5.5.0 to WP_Upgrader::download_package function and since the Axiom_Plugin_Updater extends WP_Upgrader, the functions definitions need to match.

    I’m guessing the reason it’s started to cause problems now, at least in my case, is due to upgrading to PHP 8.0. A lot of issues that were treated as warnings in older versions of PHP are now treated as fatal errors and cause plugins to crash. I’ve had several issues with various plugins while updating our servers.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error on WordPress 6.0.1’ is closed to new replies.