JS bug prevents uploading media in Page/Post editor
-
Hi,
This week I noticed that when I try to upload media on the Edit Page screen it fails. Essentially after clicking “Select Files” and choosing a file, nothing happens, or I get a 1/10th filled progress bar. When I deactivate this plugin, everything works again. I’ve swapped out WordPress versions 4.1, 4.1.1, and 4.1.2, and this bug occurs in each of them.
It is due to a Javascript error in the following file:
/wp-admin/load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,sug&load%5B%5D=gest,postbox,post,editor-expand,backbone,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,m&load%5B%5D=edia-editor,media-audiovideo,wp-playlist,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,jquery-ui-menu,jquery-ui-au&load%5B%5D=tocomplete,word-count,editor,wplink&ver=4.1.2
The error itself occurs on line 83 and the message (in Chrome) is:
“Uncaught TypeError: Cannot read property ‘text’ of undefined”It occurs in this function:
info:function(){var a,b=this.queue,c=0;b.length&&(a=this.queue.find(function(a,b){return c=b,a.get("uploading")}),this.$index.text(c+1),this.$total.text(b.length),this.$filename.html(a?this.filename(a.get("filename")):""))}
I’ve done testing in Chromium (ubuntu) and Chrome for Safari. Hopefully the error info is helpful. Thanks for a great plugin.
– Micah
- The topic ‘JS bug prevents uploading media in Page/Post editor’ is closed to new replies.