• Resolved brentmarais

    (@brentmarais)


    Warning: Declaration of Axiom_Plugin_Updater::download_package($package) should be compatible with WP_Upgrader::download_package($package, $check_signatures = false) in /home/wwwcoaaw/public_html/wp-content/plugins/masterslider/admin/includes/classes/class-axiom-plugin-updater.php on line 29

    When i updated wordpress i got that error. Now i cannot even login to the backend due to the error.
    My client bought a theme and this plugin came with the theme.

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

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

    (@averta_support)

    Hi,

    Thank you for choosing Master Slider.

    Please update Master Slider to the latest version (3.2.14)

    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 );
    }
    • This reply was modified 5 years, 8 months ago by jasoncarle.
    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,

    @jasoncarle – sorry, I sorted it out. Thanks!

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