Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license.
-
while upload wordpress plugin
Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license.@Gggg-Gggg said in Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license.:
while upload wordpress plugin
Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license.The error “Error: No license defined. Your plugin has no license declared. Please update your readme.txt with a GPLv2 (or later) compatible license” means that the WordPress plugin you are trying to use does not have a properly declared license, specifically a GPLv2 (or later) compatible license, which is required for plugins hosted on WordPress.org. To fix this, you need to add or update the license information in your plugin’s readme.txt file.
Here’s how to resolve the issue:
Locate your plugin’s readme.txt file: This file should be in the main directory of your plugin.
Add a License: field: Open the readme.txt file and add a line specifying the license. For example: License: GPLv2 or later.
Ensure compatibility: Make sure the license you choose is compatible with the GPLv2 or later.
Test your plugin: After making the changes, test your plugin to ensure it activates and functions correctly.
Validate your readme.txt: Use the WordPress Readme Validator to ensure your readme.txt file is correctly formatted and contains all the necessary information.
By following these steps, you can resolve the “No license defined” error and ensure your plugin is compliant with WordPress.org’s requirements. -
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/.