Title: Cannot activate plugin
Last modified: September 9, 2021

---

# Cannot activate plugin

 *  [middnight](https://wordpress.org/support/users/middnight/)
 * (@middnight)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/)
 * Hey all,
 * I was trying to install the plugin recently (like yesterday and today) on several
   of my sites (totally different hostings and WordPress versions etc.).
    I download
   from within WP and everything is fine. But when I click on Activate Plugin I 
   get the following error message on all systems:
 * `The plugin does not have a valid header.`
 * Any ideas on how to fix that?

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

 *  [largbasket](https://wordpress.org/support/users/largbasket/)
 * (@largbasket)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/#post-14870001)
 * [@middnight](https://wordpress.org/support/users/middnight/)
 * Are you using latest version of WordPress and PHP?
 *  [Anantajit JG](https://wordpress.org/support/users/anantajitjg/)
 * (@anantajitjg)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/#post-14900535)
 * You can replicate the same issue with [tastewp.com](https://tastewp.com/). No
   problem with any other plugins. I hope this will help to fix this issue.
 *  Thread Starter [middnight](https://wordpress.org/support/users/middnight/)
 * (@middnight)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/#post-14911510)
 * [@largbasket](https://wordpress.org/support/users/largbasket/)
 * Yes using latest Versions of both PHP and WP. Happens on different systems too.
 *  [Tomasz Dziuda](https://wordpress.org/support/users/dziudek/)
 * (@dziudek)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/#post-14981280)
 * Hi,
 * I am not sure but I suppose that this issue can be connected with fact that this
   plugin contains duplicated content – inside the two-factor catalog in v.0.7.1.

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

The topic ‘Cannot activate plugin’ is closed to new replies.

 * ![](https://ps.w.org/two-factor/assets/icon.svg?rev=2887448)
 * [Two Factor](https://wordpress.org/plugins/two-factor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Tomasz Dziuda](https://wordpress.org/support/users/dziudek/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-69/#post-14981280)
 * Status: not resolved