Support » Plugin: Flexible Captcha » Can’t uninstall Plugin!

  • Resolved angel9

    (@lovesgigi)


    I test in a new WP site, I get the notice:
    Deletion failed: There has been a critical error on your website

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    Check your server logs and see what the critical error is.

    Thread Starter angel9

    (@lovesgigi)

    Thanks, I was fixed this problem.

    Plugin Author Jeff Sterup

    (@foomagoo)

    What was the problem?

    Thread Starter angel9

    (@lovesgigi)

    Hello @foomagoo

    I fix some code of the “Uninstall.php”

    Step 1:

    Change
    $wpdb->query(“DROP TABLE IF EXISTS “.$wpdb->prefix.'”FC_captcha_store”);
    To
    $wpdb->query(“DROP TABLE IF EXISTS “.$wpdb->prefix.”FC_captcha_store”);

    Step 2:

    Add Code:
    require_once(WP_PLUGIN_DIR . “/” . plugin_basename(dirname(__FILE__)) . “/lib/FlexibleCaptcha.class.php”);
    $Captcha_fontDirectory = new FlexibleCaptcha(__FILE__);

    Change

    if (is_array(get_option(‘FC_uploaded_fonts’))) {
    foreach(get_option(‘FC_uploaded_fonts’) as $fontFile) {
    if (file_exists($this->fontDirectory . $fontFile)) {
    @unlink($this->fontDirectory . $fontFile);
    }
    }
    delete_option(‘FC_uploaded_fonts’);
    }

    if (file_exists($this->fontDirectory)) {
    @unlink($this->fontDirectory);
    }

    To

    if (is_array(get_option(‘FC_uploaded_fonts’))) {
    foreach(get_option(‘FC_uploaded_fonts’) as $fontFile) {
    if (file_exists($Captcha_fontDirectory->fontDirectory . $fontFile)) {
    @unlink($Captcha_fontDirectory->fontDirectory . $fontFile);
    }
    }
    delete_option(‘FC_uploaded_fonts’);
    }

    if (file_exists($Captcha_fontDirectory->fontDirectory)) {
    @unlink($Captcha_fontDirectory->fontDirectory);
    }

    I can’t remove the plugin either.
    is there a simple way because I don’t understand any of this?

    • This reply was modified 10 months, 1 week ago by duivelkewilly.
    Plugin Author Jeff Sterup

    (@foomagoo)

    Update the plugin to version 4.1 and the uninstall should work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t uninstall Plugin!’ is closed to new replies.