#48620 closed defect (bug) (invalid)
Javascript error when opening file uploader inside the editor
Reported by: | rogeriomoreira | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.3 |
Component: | Media | Keywords: | |
Focuses: | accessibility, javascript | Cc: |
Description
I updated one of my WordPress installations to version 5.3 and I'm getting a Javascript error.
Steps to reproduce:
- Create a new post
- Go to Select or Upload Media button
- Click on Upload Media
When I click Upload Media, the click generates the following error:
From my initial investigation, it seems that it is related to the accessibility improvements made on version 5.3.
I also made a test with the JS files from version 5.2.4 and everything works as expected, so it was some change introduced on 5.3.
Attachments (1)
Change History (10)
#2
follow-up:
↓ 4
@
5 years ago
- Keywords reporter-feedback added
@rogeriomoreira thanks for your report! I wasn't able to reproduce on a standard WordPress 5.3 installation. Also, I'm not sure about the steps to follow:
Go to Select or Upload Media button
Click on Upload Media
There's no "Select or Upload Media" button in the core Classic Editor. Instead, there's the "Add Media" button. Are you using a plugin that alters the editor or media modal by any chance?
Can you confirm that the bug still exists with the default theme activated and all other plugins deactivated?
#4
in reply to:
↑ 2
@
5 years ago
Thanks for replying @afercia.
I said the Select or Upload Media button because I translated it directly from the portuguese version. I also don't have any installed plugins interfering with the Media Modal.
I will test this further today.
Replying to afercia:
@rogeriomoreira thanks for your report! I wasn't able to reproduce on a standard WordPress 5.3 installation. Also, I'm not sure about the steps to follow:
Go to Select or Upload Media button
Click on Upload Media
There's no "Select or Upload Media" button in the core Classic Editor. Instead, there's the "Add Media" button. Are you using a plugin that alters the editor or media modal by any chance?
Can you confirm that the bug still exists with the default theme activated and all other plugins deactivated?
#5
@
5 years ago
@rogeriomoreira thanks for the clarification. One more thing to check: clear your browser cache completely :) Modern browsers tend to hold onto old JavaScript files after updates.
This ticket was mentioned in Slack in #core-media by sergey. View the logs.
5 years ago
#7
@
5 years ago
@rogeriomoreira This looks like an error with Backbone, possibly caused by either stale cache or a plugin that extends the "media view".
Could you add define( 'SCRIPT_DEBUG', true );
to your wp-config.php file. That will load the non-minified js files and produce a better "error trace" so the problem can be pinpointed.
Just on additional note: the site is using the Classic Editor.