• Resolved matthomewood97

    (@matthomewood97)


    Hi WP-Optimize – Clean, Compress, Cache,

    For a number of weeks now, I have been trying to delete this already deactivated plugin from my website (https://www.matthomewood.com) and every time I try, I get the following message:

    “Deletion failed: There has been a critical error on this website.Learn more about troubleshooting WordPress.”

    Please can you provide me the information that is needed to successfully delete your plugin from my WP.

    Appreciate your help.

    Matt Homewood

Viewing 8 replies - 1 through 8 (of 8 total)
  • @matthomewood97

    Can you please enable debugging mode, Please add following lines to wp-config.php just before where it says: /* That’s all, stop editing! Happy publishing. */

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    define( ‘WP_DEBUG_LOG’, true );

    Then try to delete the plugin.

    A debug.log file should be created inside wp-content folder,which should contain error information in it, Please share the file with us.

    Thread Starter matthomewood97

    (@matthomewood97)

    Thanks for this! Hopefully this isn’t too complicated for me.

    Where is the debug.log file located?

    Thread Starter matthomewood97

    (@matthomewood97)

    Hi Harshad,

    I have added the :

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    define( ‘WP_DEBUG_LOG’, true );

    Then tried to delete the plugin, but I can’t see the error you describe in inside wp-content folder.

    Have you got an email address that I can send you this file so that you can take a look?

    @matthomewood97 the debug.log file should get created in wp-content folder if you still get error while deleting the plugin.

    Are you still getting errors while deleting the plugin?

    If so copy the contents of debug.log file and paste it to https://pastebin.com and share the link with us.

    Thread Starter matthomewood97

    (@matthomewood97)

    @bornforphp

    Yes, still getting errors while deleting the plugin:

    “Deletion failed: There has been a critical error on this website.Learn more about troubleshooting WordPress.”

    The contents of debug.log file are here: https://pastebin.com/bx4D4fSW

    Thanks for your help.

    @matthomewood97 The log shows:

    [22-Mar-2021 15:08:49 UTC] PHP Fatal error: Uncaught Error: Class ‘WPO_Page_Cache’ not found in /home/matthome/public_html/wp-content/plugins/wp-optimize/includes/class-wp-optimize-options.php:286

    The error itself is generated from WP-Optimize plugin.

    Can you please try to delete the folder from cPanel file manager instead, delete wp-optimize folder from wp-content/plugins folder.

    It will remove the plugin from your site.

    Thread Starter matthomewood97

    (@matthomewood97)

    @bornforphp thanks for your education with all this. The matter appears now to be resolved as it has disappeared from the WP backend of my website.

    Grateful for your help.

    Have a nice day.

    Matt

    Hello,

    Just got the same error.
    Please note that before i deactivated and tried to uninstall, i have decided first to wipe out all setting from the plugins option.

    The error ->

    Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'WPO_Page_Cache' not found in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/wp-optimize/includes/class-wp-optimize-options.php:286\nStack trace:\n#0 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/wp-optimize/wp-optimize.php(2381): WP_Optimize_Options->wipe_settings()\n#1 /var/www/vhosts/mysite.com/httpdocs/wp-includes/class-wp-hook.php(292): wpo_uninstall_actions('')\n#2 /var/www/vhosts/mysite.com/httpdocs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)\n#3 /var/www/vhosts/mysite.com/httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action(Array)\n#4 /var/www/vhosts/mysite.com/httpdocs/wp-admin/includes/plugin.php(1286): do_action('uninstall_wp-op...')\n#5 /var/www/vhosts/mysite.com/httpdocs/wp-admin/includes/plugin.php(967): uninstall_plugin('wp-optimize/wp-...')\n#6 /var/www/vhosts/mysite.com/httpdocs/wp-admin/includes/ajax-actions.php(4581): delete_plugins(Array)\n#7 /var/www/vhosts/mysit...', referer: https://www.mysite.com/wp-admin/plugins.php?plugin_status=all&paged=1&s

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

The topic ‘Unable to delete on WP’ is closed to new replies.