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

Unable to add cover image to issue #63

Open
kkalbaugh opened this issue Sep 18, 2020 · 1 comment
Open

Unable to add cover image to issue #63

kkalbaugh opened this issue Sep 18, 2020 · 1 comment

Comments

@kkalbaugh
Copy link

Wordpress 5.5 / IssueM 2.8.2

Under Issues, when you click on "Set Cover Image" nothing happens and you see below in console:

issuem-issue-admin.js?ver=2.8.2:36 Uncaught TypeError: Cannot read property 'frames' of undefined
    at renderCoverUploader (issuem-issue-admin.js?ver=2.8.2:36)
    at HTMLAnchorElement.<anonymous> (issuem-issue-admin.js?ver=2.8.2:176)
    at HTMLAnchorElement.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable&ver=5.5:3)
    at HTMLAnchorElement.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-sortable&ver=5.5:3)
  ##```
@kkalbaugh
Copy link
Author

I found the solution, but I don't know what caused this to break.

https://thewebtier.com/wordpress/fix-wp-media-is-undefined/

function load_wp_media_files() {
     wp_enqueue_media();
}
add_action( 'admin_enqueue_scripts', 'load_wp_media_files' );

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