Fix for the Plugin Does Not Have a Valid Header {WordPress}

Recently, I uploaded a plugin on one of my client’s sites and came across the following error:

“The plugin does not have a valid header.”

Well, what is the problem?

After doing some research, I found a solution that is too simple that it seems not true. But actually, it works.

For this solution, I’m assuming you have access to the website backend and cPanel (or the site’s files).

Fix for the Plugin Does Not Have a Valid Header {WordPress}

The fix is simply a matter of unzipping and zipping the plugin files. If you have downloaded the plugin on your PC, simply unzip it and then zip it again. You can use a tool like WinRAR or 7Zip to do this.

After this, upload the plugin again to your server and that should fix it.

If the plugin you are trying to install is in the WordPress repository, you’ll need to go to your cPanel and open the plugin folder and then close it. After this, go back to your site’s backend and try activating the plugin. This should work.

If this does not work (especially if the plugin you are trying to install is not from the WordPress repository), make sure that the plugin files are not inside another folder that is inside the plugin folder’s name. When you open the plugin folder, you should see the plugin’s primary PHP files and folders, not another folder housing the files and supporting folders.

That’s all.

Let me know if this solution worked for you!

UPDATE: Get All MyThemeShop Premium Themes & Plugins for Just $199. Promo Ends 5th May, 2019.



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get more tech stuff like this
in your inbox

Subscribe to our mailing list for occasional amazing tech stuff.

Thank you for subscribing.

Something went wrong.