Title: I cannot activate my plugins
Last modified: August 19, 2016

---

# I cannot activate my plugins

 *  [wbell5](https://wordpress.org/support/users/wbell5/)
 * (@wbell5)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/i-cannot-activate-my-plugins/)
 * When I try to activate my plugins, I get the following message: Warning: in_array()[
   function.in-array]:Wrong datatype for second argument in /home6/bellplac/public_html.
   wp-admin/includes/plugin.php on line 268. If I try to activate 1,2,3…plugins,
   I get the following message for each activation:
 * Warning: Cannot modify header information-header already sent by (output started
   at /home6…/plugin.php:268) in /homet/…/pluggable.php on line 850. It appears 
   that there is an endless loop so I am currently not able to activate any plugins.
   I am using 2.7.1 so I am not certain if this is a bug.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/i-cannot-activate-my-plugins/#post-1005363)
 * See this FAQ – [How do I solve the Headers already sent warning problem?](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [afrizell](https://wordpress.org/support/users/afrizell/)
 * (@afrizell)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/i-cannot-activate-my-plugins/#post-1005551)
 * I’m having the same problem – in 2.8, the error is on line 310 in plugin.php,
   but it’s the same line as 268 in 2.7.1.
 * The FAQ mentioned doesn’t help in the slightest. Line 310 is ” if ( !in_array(
   $plugin, $current) ) {” – not the beginning/ending lines of the file, and the
   first error is a datatype error – the headers error lead off from this.
 * Changing the line to “if ( !in_array($plugin, (array)$current) ) {” stops the
   errors, and gives a “Plugin activated” success message but the plugins aren’t
   actually activated.
 * The versions of PHP and MySQL that I’m using are more recent than the WordPress
   requirements.
 * Does anyone have any solution for this?
 *  [jeanlucb](https://wordpress.org/support/users/jeanlucb/)
 * (@jeanlucb)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/i-cannot-activate-my-plugins/#post-1005559)
 * I have exactly the same issue.. did you find a solution !?

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

The topic ‘I cannot activate my plugins’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [jeanlucb](https://wordpress.org/support/users/jeanlucb/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/i-cannot-activate-my-plugins/#post-1005559)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
