Why do I get this “plugin does not have a valid header” error?

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 Comment