[wp-trac] [WordPress Trac] #52874: Activating plugins on Install page randomly errors with "The plugin does not have a valid header" message.
WordPress Trac
noreply at wordpress.org
Mon Mar 22 19:37:00 UTC 2021
#52874: Activating plugins on Install page randomly errors with "The plugin does
not have a valid header" message.
--------------------------+------------------------------
Reporter: danieliser | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: | Focuses: administration
--------------------------+------------------------------
Comment (by siliconforks):
It seems that this issue occurs when a plugin contains multiple files with
the `Plugin Name:` header. The Content Control and Zapier plugins both
contain a `trunk` directory which seems to be a nested copy of the entire
plugin; presumably this is not intentional and was likely caused by some
Subversion-related glitch. The W3 Total Cache plugin contains an
`extension-example` directory which contains a plugin apparently written
as example code; this is presumably intentional, but it still seems to be
an issue with W3 Total Cache rather than WordPress itself. Note that the
[https://developer.wordpress.org/plugins/plugin-basics/#getting-started
Plugin Handbook] specifically mentions that only one file in a plugin is
allowed to have the plugin header comment.
There might still be an issue in WordPress here; at least, the error
message seems misleading (the problem isn't that the plugin does not have
a valid header - the problem is that the plugin contains two different
files with valid headers).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52874#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list