You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On some WordPress installs, the extra plugin header in includes/class-genesis-simple-hooks.php results in “this plugin does not have a valid header” when clicking the “Activate” link that appears after installing a plugin from WordPress.org via the Add New plugin link:
People can work around this for now by activating the plugin from the plugins page instead. This error is specific to the Activate button at the end of the “install from WordPress.org” user flow.
To Reproduce
I can only reproduce this on WP Engine servers so far (not locally), but it may affect other hosts too. It's not clear yet why it's specific to some servers only, or why WP interprets the header in that file as containing errors.
Steps to reproduce the behavior:
Visit Plugins → Add New.
Search for Genesis Simple Hooks.
Install the plugin.
Click “Activate” after the plugin is installed.
Expected behavior
The plugin should be activated without error.
Version
WP 5.3.1.
To fix
Removing the class header entirely fixes the issue.
Specifically, this line appearing in includes/class-genesis-simple-hooks.php seems to trigger the error:
* Plugin Name: Genesis Simple Hooks
I confirmed this on the affected server by:
Installing the plugin from WP.org.
Editing class-genesis-simple-hooks.php to remove the plugin name line.
Visiting example.com/wp-admin/plugin-install.php?s=genesis+simple+hooks&tab=search&type=term and clicking “Activate”. The plugin then activates correctly with no error.
The text was updated successfully, but these errors were encountered:
Describe the bug
On some WordPress installs, the extra plugin header in
includes/class-genesis-simple-hooks.php
results in “this plugin does not have a valid header” when clicking the “Activate” link that appears after installing a plugin from WordPress.org via the Add New plugin link:Reported to our support team and at https://wordpress.org/support/topic/compatability-with-latest-version-of-wp-error-message-no-valid-header/.
People can work around this for now by activating the plugin from the plugins page instead. This error is specific to the Activate button at the end of the “install from WordPress.org” user flow.
To Reproduce
I can only reproduce this on WP Engine servers so far (not locally), but it may affect other hosts too. It's not clear yet why it's specific to some servers only, or why WP interprets the header in that file as containing errors.
Steps to reproduce the behavior:
Expected behavior
The plugin should be activated without error.
Version
To fix
Removing the class header entirely fixes the issue.
Specifically, this line appearing in
includes/class-genesis-simple-hooks.php
seems to trigger the error:* Plugin Name: Genesis Simple Hooks
I confirmed this on the affected server by:
class-genesis-simple-hooks.php
to remove the plugin name line.example.com/wp-admin/plugin-install.php?s=genesis+simple+hooks&tab=search&type=term
and clicking “Activate”. The plugin then activates correctly with no error.The text was updated successfully, but these errors were encountered: