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

Not seeing "Install Update Now" button in plugin details popup #551

Open
MichelleBlanchette opened this issue Jan 5, 2024 · 5 comments
Open

Comments

@MichelleBlanchette
Copy link

When a newer version becomes available for a plugin, I am not seeing the "Install Update Now" button which shows for plugins hosted via WordPress.org. It should be in the bottom-right corner of the popup modal that appears when clicking "View X.X.X Details" link in the plugin's table of the updates screen in wp-admin.

I am using \YahnisElsts\PluginUpdateChecker\v5\PucFactory::buildUpdateChecker() via Composer which shows yahnis-elsts/plugin-update-checker v5.3

Expected behavior with update installation button in plugin's View Details modal
Screenshot 2024-01-05 at 8 48 38 AM

Current behavior without update installation button
Screenshot 2024-01-05 at 8 48 47 AM

@YahnisElsts
Copy link
Owner

Verify that your update server returns a download link (i.e. download_url isn't missing or empty). A quick skim of WordPress core code suggests that it won't show this button if there is no download link.

@MichelleBlanchette
Copy link
Author

Yes, I saw the same thing in WordPress Core's source code. However, Debug Bar is showing that I am indeed retrieving a proper download_url field. (see attached)

Have you confirmed this "Install Update Now" button is supported to work via PUC v5, then? Really, I just wanted confirmation from your end that the button does appear in your own testing of PUC v5.

Screenshot 2024-01-07 at 8 27 12 PM

@YahnisElsts
Copy link
Owner

I tested it just now, and it seems to show up fine even in the latest alpha version of WordPress. Here's a couple of screenshots from an example plugin that's using PUC release 5.3:

firefox_2024-01-08_11-17-20

firefox_2024-01-08_11-28-46

(The plugin metadata is old, but the PUC version is new.)

Is there anything unusual going on with how PUC is configured in your case? Maybe a custom slug that doesn't match the slug shown in the Debug Bar? Or modifying the download_url with custom filters?

@MichelleBlanchette
Copy link
Author

MichelleBlanchette commented Jan 8, 2024

Those screenshots are incredibly helpful. Thank you! I don't know of anything unique or special about my implementation, though.

I'll add some deep logging in WordPress Core and see if I can track down what's causing this. I'm not so much concerned about the button not showing as much as it's an indication that there's unexpected behavior happening.

I'll let you know what I find!

@Thiararapeter
Copy link

Thiararapeter commented Jan 8, 2024 via email

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

3 participants