• Resolved leulevski

    (@leulevski)


    problems with the plugin masterslider when upgrading from WP5.1.1 to 5.2.1
    error:
    Warning: Declaration of Axiom_Plugin_Updater::download_package($package) should be compatible with WP_Upgrader::download_package($package, $check_signatures = false) in /home/bionicte/public_html/wp-content/plugins/masterslider/admin/includes/classes/class-axiom-plugin-updater.php on line 29

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor averta support

    (@averta_support)

    Hi,

    Thank you for choosing Master Slider.

    Please make sure you have updated Master Slider to the latest version.

    If you need any further information, please let me know.

    Have a great weekend.

    If unable to upgrade, you can get rid of the error by modifying the file throwing the error so it aligns with the parent class which it is extending.

    In the plugin folder, modify admin/includes/classes/class-axiom-plugin-updater.php and search for ‘function download_package’ (line 264 in my version). You need to modify the function signature and the call to the parent class, so the function should look like:

    public function download_package( $package, $check_signatures = false ) {
        // we will override package file with our own package
        $package = $this->get_downloaded_package_url();
    
        if( is_wp_error( $package ) )
           return $package;
    
        return parent::download_package( $package, $check_signatures = false );
    }
    Plugin Contributor averta support

    (@averta_support)

    Hi @jasoncarle,

    Thank you for your solution.

    Those who were not able to update the plugin, can use this function.

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘problems with the plugin masterslider when upgrading from WP5.1.1 to 5.2.1’ is closed to new replies.