Title: Disable Plugin Protection
Last modified: August 18, 2016

---

# Disable Plugin Protection

 *  [hgurol](https://wordpress.org/support/users/hgurol/)
 * (@hgurol)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/disable-plugin-protection/)
 * How can I disable the new Plugin Protection feature in 2.2?
 * a) It doesnt work properly. Even it says “Plugin could not be activated because
   it triggered a fatal error.” The Plugins is actually active !
 * b) More importantly; It prevents me to see any error message. I need to see the
   error message, so that I may have an idea how to solve the problem.
 * How can I disable it?
 * Thanks,
    HG

Viewing 1 replies (of 1 total)

 *  [nonhocapito](https://wordpress.org/support/users/nonhocapito/)
 * (@nonhocapito)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/disable-plugin-protection/#post-566853)
 * Same problem here.
 * I solved this problem.
    Open plugins.php and replace the code:
 *     ```
       wp_redirect('plugins.php?error=true'); // we'll override this later if the plugin can be included without fatal error
       ob_start();
       @include(ABSPATH . PLUGINDIR . '/' . $plugin);
       $current[] = $plugin;
       sort($current);
       update_option('active_plugins', $current);
       do_action('activate_' . $plugin);
       ob_end_clean();
       ```
   
 * with the code:
    ` <p>$current[] = $plugin; sort($current); update_option('active_plugins',
   $current); include(ABSPATH . PLUGINDIR . '/' . $plugin); do_action('activate_'.
   $plugin);</p>
 * …this way it will throw a reassuring parse error 🙂

Viewing 1 replies (of 1 total)

The topic ‘Disable Plugin Protection’ is closed to new replies.

## Tags

 * [protection](https://wordpress.org/support/topic-tag/protection/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [nonhocapito](https://wordpress.org/support/users/nonhocapito/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/disable-plugin-protection/#post-566853)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
