You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: wp.Media is not a function (solved by disabling other plugins) #12492
If you are using Gutenberg is a plugin, does the problem go away when you deactivate Gutenberg?
I searched here and found two similar cases reporting the TypeError: wp.media is not a function error.
In #9717, they solved the problem by switching to a different internet connection (which sounds strange and it's worth noting they also did a fresh install of WordPress prior to getting everything working).
In #7643, they noted the same error appears when the Wordfence plugin is active. If you had a similar plugin that you deactivated for testing, did you also try clearing cache after doing that to make sure you've checked that change thoroughly?
Thanks for your help guys, after disabling all of my plugins one by one again, I cleared my cache in my browser and the issue has cleared now.
For future reference, the issue was that basically couldn't load the Gutenberg plugin at all from the wp-admin portal, whether it be to edit an existing post/page or create a new one.
Version of the Gutenberg plugin was 4.6.1 in Wordpress 4.9.8.
@LensflarePhoto thank you so much for the follow-up! If you happen to find out which plugin caused the trouble, please reply again and let me know so I can make a note of it in the title (which helps others in searches).
Activity
swissspidy commentedon Dec 1, 2018
Which version of Gutenberg and WordPress are you using? Does this still happen with one of the default themes active?
Does this happen when creating new posts or only when trying to edit existing ones?
designsimply commentedon Dec 1, 2018
If you are using Gutenberg is a plugin, does the problem go away when you deactivate Gutenberg?
I searched here and found two similar cases reporting the
TypeError: wp.media is not a functionerror.In #9717, they solved the problem by switching to a different internet connection (which sounds strange and it's worth noting they also did a fresh install of WordPress prior to getting everything working).
In #7643, they noted the same error appears when the Wordfence plugin is active. If you had a similar plugin that you deactivated for testing, did you also try clearing cache after doing that to make sure you've checked that change thoroughly?
LensflarePhoto commentedon Dec 3, 2018
Thanks for your help guys, after disabling all of my plugins one by one again, I cleared my cache in my browser and the issue has cleared now.
For future reference, the issue was that basically couldn't load the Gutenberg plugin at all from the wp-admin portal, whether it be to edit an existing post/page or create a new one.
Version of the Gutenberg plugin was 4.6.1 in Wordpress 4.9.8.
designsimply commentedon Dec 4, 2018
@LensflarePhoto thank you so much for the follow-up! If you happen to find out which plugin caused the trouble, please reply again and let me know so I can make a note of it in the title (which helps others in searches).
[-]Error: wp.Media is not a function[/-][+]Error: wp.Media is not a function (solved by disabling other plugins)[/+]afeiship commentedon Mar 22, 2019
@designsimply Try this:
Add backport changelog entry for PR #12492