-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media upload button is not rendering #5860
Comments
I can't reproduce this myself. It seems to work as expected for me. |
@jvisick What debugging have you done? Can you see if there are any JavaScript errors in your console? |
@danielbachhuber No console errors. I have tried to isolate what commit it still works on. @youknowriad if you can't recreate it let me try and get some more info... |
@danielbachhuber Okay, it appears to be a plugin conflict with ACF Pro (v5.6.9). I'll see if I can isolate it further. |
@youknowriad @gziolo yes the merge of #5211 seems to be where the conflict was introduced. |
I'll try to reproduce myself with AFC Pro. |
I experience the same issue. It's not necessarily bound to the pro version, just to version 5 i think. |
Same for me ... using ACF Pro 5.6.9. When I disable the plugin it works, if I enable plugin, MediaUpload is not shown. |
@gziolo I tested with a clean install of wp and just activating ACF Pro (v5.6.9) without any config causes the problem. I have not tried the free or earlier versions of ACF. |
I was able to reproduce by installing ACF Pro (v5.6.9). I also found that other hooks don't work as expected. This issue is caused by the ACF implementation in var EventManager = function() {
...
};
window.wp = window.wp || {};
window.wp.hooks = new EventManager(); Putting this into words, ACF reimplements There is nothing to do about it on the Gutenberg side, so closing this one. |
Thanks for your help with debugging this one. Any hints what is the best way to reach out to ACF team and help them fix this issue? |
Okey, I opened an issue in ACF repository ☝️ |
@gziolo I can confirm that issue with MediaUpload is fixed with ACF PRO 5.6.10. When activated it works as expected. But they introduced new bug with |
I bet they need to updated the names of their hooks to follow whatever wp.hooks expects. It’s definitely fixable. Thanks for your help 👏 |
Issue Overview
Working locally off of current master #f4c40f6 it looks like the MediaUpload component is not rendering anymore? I don't see it on the image block or the cover image block, as well as in the inspector for featured images.
Steps to Reproduce (for bugs)
Screenshots / Video
The text was updated successfully, but these errors were encountered: