Skip to content
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

Image upload not working #50

Open
tostiheld opened this issue Aug 29, 2019 · 0 comments
Open

Image upload not working #50

tostiheld opened this issue Aug 29, 2019 · 0 comments

Comments

@tostiheld
Copy link

Unfortunately, uploading an image is currently not working. Clicks on the "Select image" button don't seem to do anything. Upon further investigation, the following notice is show in the console:

Uncaught TypeError: Cannot read property 'id' of undefined
    at Object.e (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295)
    at b (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295)
    at Object.e (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295)
    at b (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295)
    at load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295
    at load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-position,jquery-ui-menu&load[]=,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,svg-painter,wp-auth-check,shortcode,media-editor,media-audiovideo,&load[]=mce-view,imgareaselect,image-edit&ver=5.2.2:295

It seems the property 'post' of wp.media.model.settings is undefined, and therefore the 'id' property of said post. I got this from https://github.com/mennolui/wp-foyer/blob/master/raw/js/admin/foyer-admin-slide.js#L124

My wordpress version is 5.2.2
My Foyer version is 1.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant