lazy-blocks icon indicating copy to clipboard operation
lazy-blocks copied to clipboard

Error on Pro plugin activation: The plugin does not have a valid header.

Open gettonet opened this issue 2 years ago • 1 comments
trafficstars

Issue description:

After installing and clicking Activate, Wordpress reports error: "The plugin does not have a valid header." After returning to plugins page, clicking on "Activate" activates plugin and all is fine.

Lazy Blocks Version:

3.4.2

WordPress Version:

6.2.2.

gettonet avatar Jul 05 '23 19:07 gettonet

Looks like when we just uploaded zip file, WP determine the wrong file of the plugin.

Shot 2023-07-10 at 09 19 10

This button contains this URL:

https://example/wp-admin/plugins.php?action=activate&plugin=lazy-blocks-pro%2Fcore-plugin%2Flazy-blocks.php

While the correct one is:

https://example/wp-admin/plugins.php?action=activate&plugin=lazy-blocks-pro%2Flazy-blocks-pro.php

I'm not sure how to fix this correctly. Maybe we have to remove the header comment from the core plugin php file (lazy-blocks-pro/core-plugin/lazy-blocks.php)

nk-o avatar Jul 10 '23 09:07 nk-o