Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Fatal Error - Cannot Upgrade WordPress #25

@scarstens

Description

@scarstens

Install the plugin, activate it and then goto the updates tab and try to update WordPress. You can "manually re-install the current version" with the button at the top.

At first I though it was just something I modified for my "one theme version" of your script, but its not. WordPress updates completely fail with this plugin activated.

Fatal error: Cannot redeclare class Plugin_Upgrader in /home/ibseth2/public_html/wlwp.sethmatics.com/wp-admin/includes/class-wp-upgrader.php on line 632

Note that its probably not the "best way" to fix the problem, but I wrapped my filter call like this to solve the issue:

if(!empty($_GET['action']) && $_GET['action'] == 'do-core-reinstall'); else {
require_once('updater-assets.php');
add_filter('site_transient_update_themes', 'transient_update_themes_filter');
}

Note that my filename and location might be different then how you have your programmed. Its just for reference. You might use this until somebody figures out a better way to detect and not include that class object twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions