The plugin does not have a valid header - Wordpress cannot add new plugins

11,628

One of your plugins is bad. I'm guessing you know which one is likely to be the culprit.

Delete its wp-content/plugins/myplugin directory from your server entirely. Then, when you display your Plugins page you should get a notice announcing that the plugin you just deleted has been disabled. The other stuff should work.

Fix your plugin code. Make sure you know precisely what's in the zip file or directory hierarchy you upload. Get rid of extra stuff like nested zip files or .svn directories.

Upload it and try to activate it again.

Share:
11,628

Related videos on Youtube

user544079
Author by

user544079

Updated on September 19, 2022

Comments

  • user544079
    user544079 8 months

    I have wordpress version 3.4.2

    Whenever I try to activate a plugin after installing it I get

    The plugin does not have a valid header.
    

    I tried removing the blank spaces between

    <?php
    /* plugin info
    

    inside the plugin_name.php file. However, it does not resolve the issue.

    Any workaround?

  • user544079
    user544079 over 10 years
    Actually, when i upload any plugin it is getting uploaded to public_html/site_name/wp-content/plugins folder instead of public_html/wp-content/plugins folder. I had transferred over the site to my root. Is there any way, I can change the path where wordpress uploads the plugin?