Opened 10 years ago
Closed 10 years ago
#31784 closed defect (bug) (fixed)
Plugin update gives notice
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Plugins | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
When updating a plugin with the new shiny interface on the plugins page it throws a notice of undefined index.
PHP Notice: Undefined index: plugin in /srv/www/wordpress-develop/src/wp-admin/includes/update.php on line 279
Attachments (3)
Change History (24)
#1
@
10 years ago
- Keywords has-patch added
Above patch makes sure the plugin index is set before it calls is_plugin_active
#4
@
10 years ago
- Keywords reporter-feedback added
Hi Kloon,
Thanks for reporting this. Which screen are you seeing this on? Is it all plugins or just some plugins? If it's some, which ones?
This may be related to #31738 and the fix there might need to be broadened.
#5
@
10 years ago
- Keywords reporter-feedback removed
Hey @jorbin,
The only other plugin I had installed and active was query monitory which I use for debugging.
#6
@
10 years ago
@kloon
Which plugin was it that generated the notice? Query Monitor or a different one? And which screen was it on (for example plugins.php , plugins.php?plugin_status=upgrade , plugin-install.php )?
#7
@
10 years ago
@jorbin
I was testing it by setting the version number of query monitor back a version and then on plugins.php clicking the update link which triggers the ajax update by calling
update.php?action=upgrade-plugin&plugin=query-monitor%2Fquery-monitor.php&_wpnonce=
This ticket was mentioned in Slack in #core by drew. View the logs.
10 years ago
#10
@
10 years ago
- Keywords close added
I can't reproduce this issue on latest trunk, though I suppose adding the isset()
check couldn't hurt.
#11
@
10 years ago
- Keywords close removed
- Milestone 4.2 deleted
- Resolution set to worksforme
- Status changed from reviewing to closed
Closing as worksforme. Feel free to reopen if you continue to see issues.
#12
@
10 years ago
Don't know if this helps but I just saw this today as well while testing my plugins with the shiny updates.
http://i.imgur.com/w7h0sk4.png
I think it may be related to Pippin's Software Licensing Add-on though. I'll shoot him a link to this thread.
#13
follow-up:
↓ 16
@
10 years ago
- Resolution worksforme deleted
- Status changed from closed to reopened
I've seen this several times now. As far as I can tell, it only happens with custom plugin updaters, but it's still a bug in core (I think).
This comment describes the cause: https://core.trac.wordpress.org/ticket/29820#comment:73
#14
@
10 years ago
31784.patch uses $file
instead of $plugin_data['plugin']
since $file
will always exist, even if a plugin has modified the update data.
#15
@
10 years ago
Pre-patch: https://cloudup.com/cgdDRO-01fZ
Post-patch: https://cloudup.com/cp-lYd-VVU2
#16
in reply to:
↑ 13
;
follow-up:
↓ 17
@
10 years ago
Replying to mordauk:
I've seen this several times now. As far as I can tell, it only happens with custom plugin updaters, but it's still a bug in core (I think).
This comment describes the cause: https://core.trac.wordpress.org/ticket/29820#comment:73
As a followup to my comment on the other ticket, I think that there actually was a custom plugin updater installed, but I don't recall know the exact one.
#17
in reply to:
↑ 16
@
10 years ago
Replying to jdgrimes:
Replying to mordauk:
I've seen this several times now. As far as I can tell, it only happens with custom plugin updaters, but it's still a bug in core (I think).
This comment describes the cause: https://core.trac.wordpress.org/ticket/29820#comment:73
As a followup to my comment on the other ticket, I think that there actually was a custom plugin updater installed, but I don't recall know the exact one.
That's the only time I've been able to make it happen.
#18
follow-up:
↓ 19
@
10 years ago
I'm seeing that on every page load of plugins.php with the 4.3-alpha-32681 nightly build.
#19
in reply to:
↑ 18
@
10 years ago
Replying to ryan:
I'm seeing that on every page load of plugins.php with the 4.3-alpha-32681 nightly build.
Never mind. This cleared after a fresh update.
Make sure plugin index is set before passing it through