I recently committed version 2 of my new plugin to the Plugin Directory, but now when you install the plugin for the first time, you get this error on activation: “The plugin does not have a valid header.”

alt text

You can workaround it by browsing to the plugin section of wp-admin and activating from there with no errors, but this is still not ideal.

As far as I can tell, the header looks fine, and is pretty much the same as version 1.0. Which leave me to wonder why I get this error?

Here is the plugin: http://wordpress.org/extend/plugins/export-to-text/

5 Answers
5

From what you write, it looks to me that you accidentially copied/tagged the whole /trunk directory in your SVN while tagging/branching. As the wordpress plugin directory just grabs the full directory that got tagged, the zip package was invalidated.

You can recover from that. I once made the same mistake. Just do a full checkout on your local machine in another directory (not the working copy in which you develop your plugin). That check downloads everything, the current trunk and all tags.

Then go inside the tags directory and locate the tag in which you accidentially created the mess. SVN-Delete it and commit that change. You probably can revert the accidental change as well, but I think deleting the directory of the concrete tag is more straight forward.

Next time you tag your plugin, tag the working copy and not the trunk directory.

If you’re using SVN on the commandline:

Tags – Chapter 4. Branching and Merging

If you’re using Tortoise SVN:

Branching / Tagging – Chapter 4. Daily Use Guide

Leave a Reply

Your email address will not be published. Required fields are marked *