Title: JS Error and upload failed
Last modified: August 24, 2016

---

# JS Error and upload failed

 *  Resolved [mortay](https://wordpress.org/support/users/mortay/)
 * (@mortay)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/)
 * When I upload a file using the “media uploader” Administrator get this message
   in the “console.log” Chrome …
 * Uncaught TypeError: Cannot read property ‘text’ of undefined …. media-views.min.
   js?ver=4.1.2:612
 * If I disable the plugin everything starts working again.
 * Thanks
 * [https://wordpress.org/plugins/post-thumbnail-editor/](https://wordpress.org/plugins/post-thumbnail-editor/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/#post-6073329)
 * Yes, not sure of the cause yet, but there is a workaround here:
    [https://wordpress.org/support/topic/js-bug-prevents-uploading-media-in-pagepost-editor?replies=11#post-6860868](https://wordpress.org/support/topic/js-bug-prevents-uploading-media-in-pagepost-editor?replies=11#post-6860868)
 * TL;DR;
 * Comment out [line 171 in post-thumbnail-editor.php](https://github.com/sewpafly/post-thumbnail-editor/blob/master/post-thumbnail-editor.php#L171)
 *  [marcocavicchioli](https://wordpress.org/support/users/marcocavicchioli/)
 * (@marcocavicchioli)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/#post-6073469)
 * it works!!!
 *  [Ian Ray](https://wordpress.org/support/users/ianthekid/)
 * (@ianthekid)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/#post-6073506)
 * Is there a plan or ETA when this will be resolved? I would prefer to not edit
   Plugin files as it will get overwritten on update.
 *  [fburatti](https://wordpress.org/support/users/fburatti/)
 * (@fburatti)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/#post-6073508)
 * Without editing the plugin, add this in your theme’s functions.php:
    `remove_action('
   dbx_post_advanced', 'pte_edit_form_hook_redirect');`

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JS Error and upload failed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-thumbnail-editor_afafac.svg)
 * [Post Thumbnail Editor](https://wordpress.org/plugins/post-thumbnail-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-thumbnail-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-thumbnail-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/post-thumbnail-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-thumbnail-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-thumbnail-editor/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [fburatti](https://wordpress.org/support/users/fburatti/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/js-error-and-upload-failed/#post-6073508)
 * Status: resolved