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

    (@landoweb)

    I’ll check it tonight.

    Plugin Author landoweb

    (@landoweb)

    This has been fixed in version 1.9.1. If you want to make the adjustment manually, open the world-cup-predictor.php file and look for function wcp_uninstall() . Its contents should look like this:

    function wcp_uninstall() {
    	global $wpdb;
    
    	$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}wcup_stage");
    	$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}wcup_team");
    	$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}wcup_venue");
    	$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}wcup_match");
    	$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}wcup_prediction");
    
    	delete_option( 'wcup_db_version' );
    	delete_option( 'wcup_donated' );
    	delete_option( 'wcup_nag' );
    	delete_option( 'wcup_show_predictions' );
    	delete_option( 'wcup_promo_link' );
    	delete_option( 'wcup_group_stats');
    	delete_option( 'wcup_scoring' );
    	delete_option( 'wcup_countdown_format' );
    	delete_option( 'wcup_browser_locale' );
    	delete_option( 'wcup_match_separator' );
    	delete_option( 'wcup_match_predictions' );
    	delete_option( 'wcup_player_predictions' );	
    
    	$roles = array("subscriber", "contributor", "author", "editor", "administrator");
    	foreach ($roles as $role) {
    		$arole = get_role($role);
    		$arole->remove_cap('wcup_manager');
    	}
    }
    Thread Starter Webbasica

    (@webbasica)

    Thanks!

    Plugin Author landoweb

    (@landoweb)

    Working now? What is the link of your website?

    Thread Starter Webbasica

    (@webbasica)

    I was able to uninstall the plugin. I had on my site https://www.listomarketing.com

    Plugin Author landoweb

    (@landoweb)

    Ok. Topic is resolved then.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error when uninstalling’ is closed to new replies.