Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not found #530

Open
roguewdesign opened this issue May 16, 2023 · 5 comments
Open

Plugin not found #530

roguewdesign opened this issue May 16, 2023 · 5 comments

Comments

@roguewdesign
Copy link

Since upgrading to version 5, clicking the View Details or update now options returns "Plugin not found". I've spent a few hours trying to figure this out, followed the setup guides but can't figure out what's causing this :(

@YahnisElsts
Copy link
Owner

Here are some ideas:

  • Is there anything interesting/unusual going on with plugin slugs? Special characters in the slug? Using filters to change the slug?
  • Does the correct plugin file name get passed to the update checker? Initialization code in the main plugin file or a different file? Maybe in a different plugin?
  • Anything that would prevent the update checker from running in an AJAX request or an iframe?

@roguewdesign
Copy link
Author

I don't see any issues with the slugs or file path. I have tried a few different settings for those, but can't seem to get it to work.

As Example:
FILE PATH: {absolute-path} 'my-plugin-name/my-plugin-name.php'
SLUG my-plugin-name

I'll look into this further and see if it's an AJAX issue. It was working with version 4 but not 5.

Cheers

@YahnisElsts
Copy link
Owner

What exactly do you mean by: "{absolute-path} 'my-plugin-name/my-plugin-name.php'"? That looks like a relative path, not like a valid example of an absolute path. You don't need to post the actual code here, but are you sure that you're passing the correct, full path to the update checker?

@roguewdesign
Copy link
Author

The directory path to the file. It is correct and verified. (/home/usr/public/website-folder.../etc...) as an example.

@YahnisElsts
Copy link
Owner

Some more ideas:

  • Deactivate all other plugins to check for plugin conflicts.
  • Does the "check for updates" link work, or does it also show an error of some kind?
  • When you look at the URL of the "view details" link, does it show the correct plugin slug/directory? The URL usually looks something like this:
    .../wp-admin/plugin-install.php?tab=plugin-information&plugin=your-plugin-here&TB_iframe=true&...
  • Install the Debug Bar plugin and look at the "PUC (your-plugin-slug)" panel. Does everything look correct there? Do the "Request Info" and "Check Now" buttons work without errors?
  • Turn on WP_DEBUG and see if any errors/warnings/notices show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants