Plugin not found
-
When I try to enable each option on the settings screen, I get an error message saying “Plugin not found” and it becomes unusable.
-
Thanks for reaching out @motouta. So we can determine more on this, please share the following:
- Your Site Health information. (Tools > Site Health > info > Copy site info to clipboard)
- Have you made any recent changes to your WordPress environment, such as changing the location of your WordPress files?
Note also that you may also be able to manually upload and install the module related plugins from Performance Lab, as zip files. For example you may wish to download the Modern Image formats plugin (v2.0.1) from here. After doing so, please check does this install as expected.
Let me know if you have any questions with the above.
For reference, see the code location for this error message. Specifically, this code seems to be failing:
$plugins = get_plugins( '/' . $plugin_slug );I wonder if there is a custom directory being used for installed plugins?
Lastly, instead of installing the plugins from ZIP files you can also just search the plugin directory for the plugin and install it that way instead.
i’m experiencing the same issue with the Performance Lab plugin. installed via the directory and manual methods – same result. error screenshot: https://www.awesomescreenshot.com/image/51530496?key=4a2d4576e6eeb46a2d4a159a81ccad0f
no custom plugin directory or other shenanigans.
any ideas?@gordonrjones There are three possible locations where this error could be coming from:
- https://github.com/WordPress/performance/blob/7c6aa818b5c9707d7619a91614548ef51efba033/plugins/performance-lab/includes/admin/plugins.php#L28
- https://github.com/WordPress/performance/blob/7c6aa818b5c9707d7619a91614548ef51efba033/plugins/performance-lab/includes/admin/plugins.php#L86
- https://github.com/WordPress/performance/blob/7c6aa818b5c9707d7619a91614548ef51efba033/plugins/performance-lab/includes/admin/plugins.php#L363
All three are in that same file:
includes/admin/plugins.php. Unfortunately we’re reusing the same string for each error. Are you comfortable editing the strings in the plugin file editor in WordPress to, for example, add__LINE__after the strings so we can differentiate between them? This will help us debug where the error is coming from.Aside: I also see that we’re using the string with the
defaulttext domain once, but with theperformance-labtext domain twice. That’s not good either. I’ll open a PR to fix this for the next release, as well as to make the strings unique.PR for improving the translation strings: https://github.com/WordPress/performance/pull/1651
-
This reply was modified 1 year ago by
Weston Ruter.
thanks Weston – i’m dumb/brave enough to hack at the php, but will definitely some very prescriptive instructions 😉
@gordonrjones Here’s one better for you. You can install the
performance-lab.ziplinked to from the PR comment I just left. That includes the updated strings, so we’ll be able to narrow-down where the error is coming from.thanks! installed (3.6.0-alpha) and activated. from “settings” this is there error:
https://www.awesomescreenshot.com/image/51553919?key=8c33abeb9c9a34877d2d3755c6229e6dWell, it seems that the API request is not returning the expected plugins.
This is the PHP code that seems to not be returning the expected data: https://github.com/WordPress/performance/blob/762df7464d293ec7dcd46ad19d0e6ceb5f81fcb9/plugins/performance-lab/includes/admin/plugins.php#L36-L56
I don’t suppose you could find a way to run that PHP code on your site and do a
var_dump()to see what it contains?that’s getting a bit above my comfort/knowledge level – sorry. i will probably de-activate and wait for the next version to see if that somehow fixes. thanks for the assistance.
In any case, you don’t need to install the plugins via the Performance screen. You can install them directly. Just search the directory for the plugins listed in the plugin description: https://wordpress.org/plugins/performance-lab/
Hello. I have the same problem. Tried to install modules manually, but didn’t help. Site located on WPEngine.
@artemkoz You can’t search the plugin directory for a plugin like “Speculative Loading”?
@westonruter In Settings -> Performance it just says this:
Failed to query WordPress.org Plugin Directory for the following plugin:
auto-sizes (active)dominant-color-images (active)embed-optimizer (active)image-prioritizer (active)performant-translations (active)speculation-rules (active)web-worker-offloading(active)webp-uploads (active)
The following error occurred:
- Plugin not found.
Please consider manual plugin installation and activation. You can then access each plugin’s settings via its respective “Settings” link on the Plugins screen.
I tried to install new version, installed modules manually, but still have this problem.
@artemkoz Hummm. Strange. I wonder if there is an issue with how WPEngine is configuring their plugin directory lookups. In any case, you have all the plugins installed and active, apparently, so you don’t need to activate the features from the Performance screen.
The topic ‘Plugin not found’ is closed to new replies.