#51251 closed defect (bug) (fixed)
Fix PHP notice when opening the edit image popup
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5.2 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Media | Keywords: | has-patch has-screenshots commit fixed-major |
Focuses: | Cc: |
Description
Hi there, I noticed a PHP notice on the last trunk version while playing with the media library.
Steps to reproduce:
- Activate Query Monitor plugin
- Open your web console
- Go to upload.php page on the backend
- Select grid mode
- Click on an attachment image
- Click on 'Edit image' button
- An edit image popup loads, and you should see a PHP notice saying that $msg->error is undefined
Attachments (2)
Change History (11)
#2
@
3 years ago
- Milestone changed from Awaiting Review to 5.6
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
Thanks for the report! I was able to reproduce the issue.
Note: See
TracTickets for help on using
tickets.
Can you please try to reproduce the issue? Just to be sure it's not something related to me, but when looking at the code, it seems better to check that errors property exist in error object, otherwise it can throw an error anyway.