Title: Invalid plugin header
Last modified: August 21, 2016

---

# Invalid plugin header

 *  [Jason Judge](https://wordpress.org/support/users/judgej/)
 * (@judgej)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/invalid-plugin-header-1/)
 * When I try to activate the plugin, I get this error:
 * `The plugin does not have a valid header.`
 * The plugin does not activate.
 * [https://wordpress.org/plugins/mailgun/](https://wordpress.org/plugins/mailgun/)

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

 *  Thread Starter [Jason Judge](https://wordpress.org/support/users/judgej/)
 * (@judgej)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/invalid-plugin-header-1/#post-4859052)
 * The source of the plugin has a “trunk” directory in it, so I’m guessing something
   has gone very wrong while packaging the zip file. The trunk directory should 
   never be in the plugin.
 *  Thread Starter [Jason Judge](https://wordpress.org/support/users/judgej/)
 * (@judgej)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/invalid-plugin-header-1/#post-4859056)
 * If I remove the trunk directory and everything in it, then the plugin activates.
 *  [itthinx](https://wordpress.org/support/users/itthinx/)
 * (@itthinx)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/invalid-plugin-header-1/#post-4859515)
 * Same thing here, I was just going to test it for compatibility within a certain
   setup. The `trunk` folder must be removed for the plugin to successfully activate.

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

The topic ‘Invalid plugin header’ is closed to new replies.

 * ![](https://ps.w.org/mailgun/assets/icon-256x256.png?rev=2434524)
 * [Mailgun for WordPress](https://wordpress.org/plugins/mailgun/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailgun/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailgun/)
 * [Active Topics](https://wordpress.org/support/plugin/mailgun/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailgun/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailgun/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [itthinx](https://wordpress.org/support/users/itthinx/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/invalid-plugin-header-1/#post-4859515)
 * Status: not resolved