Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Your plugin has no license declared in Plugin Header #550

Closed
jcvignoli opened this issue Jul 25, 2024 · 7 comments
Closed

Error: Your plugin has no license declared in Plugin Header #550

jcvignoli opened this issue Jul 25, 2024 · 7 comments

Comments

@jcvignoli
Copy link

Hello,
The workflow fails to run with the following message:
Error: Your plugin has no license declared in Plugin Header. Please update your plugin header with a GPLv2 (or later) compatible license.

My readme licence tags:

License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Thanks in advance for checking it!

@swissspidy
Copy link
Member

What's your plugin? Does this also happen when you install the Plugin Check plugin on your development site?

@jcvignoli
Copy link
Author

jcvignoli commented Jul 25, 2024

This is my plugin: https://wordpress.org/plugins/lumiere-movies/
Yes, I get the same error on a local dev site.

Edit: I just noticed on local env that it complains about the initial file (lumiere-movies.php), not readme.txt. I therefore paste the code in that file:

 * @package   lumiere-movies
 * @author    jcvignoli
 * @license   GPL-3.0 <https://www.gnu.org/licenses/gpl-3.0.en.html>
 * @link       https://wordpress.org/plugins/lumiere-movies/
 * @since      3.0

@swissspidy
Copy link
Member

In that case, this would be an issue with the Plugin Check plugin, not with this GitHub Action. Issues with the plugins hould be reported at https://github.com/WordPress/plugin-check/.

That said, Plugin Check does not look at PHPdoc block like yours. It needs to be a proper plugin header. Example:

https://github.com/WordPress/performance/blob/b319595c3c1ca567bcca122dca561bc714d772e4/plugins/performance-lab/load.php#L11-L13

See https://developer.wordpress.org/plugins/plugin-basics/header-requirements/ for more detailed information about plugin headers.

@swissspidy swissspidy transferred this issue from WordPress/plugin-check-action Jul 25, 2024
@adlwebsolutions
Copy link

Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license.
I check the readme.txt validator, but the tool also giving an error , but I corrected everything, still it is showing the same issues( The Tested up to field is missing.
The Stable tag field is missing or invalid. Note: We ask you no longer attempt to use /trunk/ as stable, so that all plugins can be rolled back.
The License field is missing. A GPLv2 or later compatible license should be specified.
The Short Description section is too long and was truncated. A maximum of 150 characters is supported. )

@ernilambar
Copy link
Member

@adlwebsolutions Can you please provide the readme file you are testing?

@adlwebsolutions
Copy link

now i uploaded the plugin, and thanks for asking,

@davidperezgar
Copy link
Member

Ok, let us if you have any problem in a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants