Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Cannot update non-WordPress.org plugins #40053

Open mmtr opened 4 years ago

mmtr commented 4 years ago

Steps to reproduce

Since these plugins cannot be updated (p9dueE-1ho-p2), let's disable the update button to prevent users from clicking on it.

Originally reported by @jessefriedman in p4TIVU-9nb-p2

I have a plugin called PixelGrade on my personal website. It’s out-of-date and Calypso says I can’t “Autoupdate” the plugin because it’s not in the WordPress.org directory. However, it does allow me to manually update. At first, I was like “woah that’s cool”, then I was like “wait if you can manually update why can’t you auto-update?”.

Going through the manual update flow I realized the problem, it doesn’t actually work.

I need to update image

I can’t autoupdate image

I click Update and am told it was working image

Success! image

Fail! after refresh image

danhauk commented 4 years ago

Using a plugin called AudioTheme that comes with a premium theme and not available in the WordPress.org repo. I was able to successfully update the plugin.

Plugin needs updating

Screen Shot 2020-03-11 at 11 58 42 AM

Successful update

Screen Shot 2020-03-11 at 11 59 06 AM

Refresh

Screen Shot 2020-03-11 at 12 00 33 PM
jessefriedman commented 4 years ago

@danhauk can you confirm that it's not update in wp-admin? I thought mine had actually updated till I went to the wp-admin and saw it wasn't updated there. Then I went back to Calypso and it said it needed an update again.

If it did update I wonder if the theme hooked into the request somehow to get the files and update the plugin?

mmtr commented 4 years ago

I verified that the Jetpack Beta plugin is updated too from the "Manage plugins" (https://wordpress.com/plugins/manage/:site) page when clicking on the "Update 1 plugin" button (it's updated in WP Admin as well):

Screen Shot 2020-03-11 at 17 11 23

Couldn't test with the plugin details page though because Calypso refuses to open it for the Jetpack Beta plugin.

danhauk commented 4 years ago

@jessefriedman It's showing as updated in wp-admin as well.

image

kriskarkoski commented 4 years ago

Similar issue here for third-party theme updates: https://github.com/Automattic/wp-calypso/issues/39056

stale[bot] commented 3 years ago

This issue has been marked as stale and will be closed in seven days. This happened because:

You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation.