• Resolved freshpromo

    (@freshpromo)


    I installed this plugin before realizing that it hasn’t been updated in over a year. I attempted to delete the plugin from the WP Dashboard > Plugins but received a fatal error:

    Deletion failed: {“code”:”qm_fatal”,”message”:”Uncaught Error: Undefined constant \”OC4EVERYONE_PREDEFINED_SERVER\” in /home/myaccount/public_html/mydomain.com/wp-content/plugins/object-cache-4-everyone/oc4-deactivation.php on line 13″,”data”:{“message”:”Uncaught Error: Undefined constant \”OC4EVERYONE_PREDEFINED_SERVER\””,”file”:”/home/myaccount/public_html/mydomain.com/wp-content/plugins/object-cache-4-everyone/oc4-deactivation.php”,”line”:13,”trace”:[{“file”:”/home/myaccount/public_html/mydomain.com/wp-content/plugins/object-cache-4-everyone/uninstall.php”,”line”:19,”function”:”oc4everyone_deactivation”,”args”:[]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-admin/includes/plugin.php”,”line”:1314,”args”:[“/home/myaccount/public_html/mydomain.com/wp-content/plugins/object-cache-4-everyone/uninstall.php”],”function”:”include_once”},{“file”:”/home/myaccount/public_html/mydomain.com/wp-admin/includes/plugin.php”,”line”:970,”function”:”uninstall_plugin”,”args”:[“object-cache-4-everyone/object-cache-4-everyone.php”]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-admin/includes/ajax-actions.php”,”line”:4771,”function”:”delete_plugins”,”args”:[[“object-cache-4-everyone/object-cache-4-everyone.php”]]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-includes/class-wp-hook.php”,”line”:324,”function”:”wp_ajax_delete_plugin”,”args”:[“”]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”,”args”:[“”,[“”]]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”,”args”:[[“”]]},{“file”:”/home/myaccount/public_html/mydomain.com/wp-admin/admin-ajax.php”,”line”:192,”function”:”do_action”,”args”:[“wp_ajax_delete-plugin”]}]}}

    Please let me know how I can delete this plugin. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • marties

    (@marties)

    hi, just use ftp to navigate to the plugins directory and delete the plugin

    Thread Starter freshpromo

    (@freshpromo)

    Do I need to remove any database tables? I’d like this to be as clean a removal as possible. Thanks.

    trompetilla

    (@trompetilla)

    Surely you have another cache plugin that has installed also a object-cache.php file, and for this reason you are getting that error.

    In the code you can see this before your error:

    if (defined('OC4EVERYONE_PREDEFINED_SERVER') || file_exists(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'object-cache.php')) {

    So, it detects a object-cache.php file and then it fails in the next line that shows this:

            //Remove cache folder
            if (OC4EVERYONE_PREDEFINED_SERVER === '') {

    Solutions:

    1. Disable the other plugin, uninstall this one and activate it again, or
    2. Edit the file wp-content/plugins/object-cache-4-everyone/oc4-deactivation.php and comment that block of code, and try again to uninstall it.
    Thread Starter freshpromo

    (@freshpromo)

    Thank you, that worked.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.