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

Javascript error when interacting with PDF files #165

Closed
bonifacp opened this issue Feb 11, 2021 · 2 comments
Closed

Javascript error when interacting with PDF files #165

bonifacp opened this issue Feb 11, 2021 · 2 comments
Labels

Comments

@bonifacp
Copy link

When uw-2014 is active on a site, Javascript encounters an error when trying to preview PDF documents, halting execution. Issue has been encountered in the following places:

  • In the media library when opening PDFs.
  • In the post/page editor when trying to embed a PDF using the media library, both when uploading a new document and when trying to use an existing document.

Uncaught TypeError: jQuery(...).live is not a function at eval (eval at <anonymous> (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:2), <anonymous>:5:42) at eval (<anonymous>) at load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:2 at Function.globalEval (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:2) at Ga (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:3) at n.fn.init.append (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:3) at n.fn.init.n.fn.<computed> [as appendTo] (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,moxiejs,plupload,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.5.1:3) at i.attach (media-views.min.js?ver=5.5.1:2) at i.open (media-views.min.js?ver=5.5.1:2) at i.createModal (media-grid.min.js?ver=5.5.1:2)

@lcaple lcaple added the Bug label Apr 14, 2021
@lcaple
Copy link
Contributor

lcaple commented Apr 14, 2021

Hi @bonifacp, I was able to track the issue down to the Replace Media function that was loading the deprecated jQuery live() function.

Fixed in de0c655

@lcaple lcaple closed this as completed Apr 14, 2021
@bonifacp
Copy link
Author

Thanks Lauren!

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

No branches or pull requests

2 participants