Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a question here and hope you guys can help me with that. Couldn't find the exact answer from search and I am not a coder myself. I was given the instruction (to change plugin name) by my previous coder before he handed the plugin to me. He said if I want to change the plugin name, all I need to to is go to popups.php and change the first line, which is Plugin Name: xxx.

So I extracted the folder, change the name and and zipped the whole folder again. When I tried to install it through wordpress, it says installation failed. Did I miss out any step here?

Here is the error message:

Unpacking the package…

Installing the plugin…

The package could not be installed. No valid plugins were found.

Plugin install failed.

share|improve this question
You should upload the plugin as-is, and then edit that file through the Plugins > Editor admin menu – bungeshea Jan 1 at 7:29
Also, can you post the content of the file here? – bungeshea Jan 1 at 7:32
Also see: stackoverflow.com/q/10563782/1042798 – bungeshea Jan 1 at 7:36
Are you in a Mac? I've seen this happening when zipping with the system app... – brasofilo Jan 1 at 8:33

1 Answer

This error comes when the plugin header is corrupt. Plugin Name: xxx should not be the first line on the file, instead the first few lines should look like this:

<?php
/*
Plugin Name: xxx

... more text here ...

*/

... plugin code here ...
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.