Title: [Bug v2.1.1] Uncaught TypeError
Last modified: August 22, 2016

---

# [Bug v2.1.1] Uncaught TypeError

 *  [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/)
 * I was editing some ACF groups in Admin when this error showed up. I’m pretty 
   sure there weren’t any images on the screen at the time.
 *     ```
       Uncaught TypeError: Cannot read property 'events' of undefined
       /wordpress/wp-content/plugins/ricg-responsive-images/js/wp-tevko-responsive-images.js?ver=2.0.0 line 8
       ```
   
 * [https://wordpress.org/plugins/ricg-responsive-images/](https://wordpress.org/plugins/ricg-responsive-images/)

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

 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910663)
 * Thanks Jesse,
 * Can you tell me what the URL is for the page where you were editing the ACF groups?
 * Thanks,
    Joe
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910665)
 *     ```
       /wp-admin/post.php?post=488&action=edit
       ```
   
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910667)
 * Looks like wp.media is undefined when that function gets called.
 *     ```
       wp.media.events.on( 'editor:image-update', function( args ) {
       ```
   
 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910669)
 * What version of WordPress are you running?
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910670)
 * WordPress 4.1.1 w/Advanced Custom Fields Pro 5.1.8
 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910671)
 * Interesting. Does this error happen on all posts or is this a specific to a particular
   post or custom content type?
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910672)
 * Looks like it is just happening from Custom Fields -> Custom Fields -> Edit.
 * I’m sure if you just added a null check on wp.media you could call it a day.
 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910681)
 * Ah, I see it. Didn’t realize ACF used the post.php and post-new.php pages as 
   a base. We’ll get this patched up.
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910683)
 * Awesome, thanks!
 *  Thread Starter [Jesse Graupmann](https://wordpress.org/support/users/jgraup/)
 * (@jgraup)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910684)
 * If you get a chance, I noticed some issues (not related to this plugin) w/ACF
   5.2.x so I haven’t upgraded. I would double check against that when you’re done
   as it seems some things have changed. It may not be that different but it’s worth
   making sure to QA the latest.
 *  Plugin Contributor [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910687)
 * For sure. If you find any weirdness after the upgrade, let us know. In the mean
   time feel free to test out the latest code on the master branch in Github, which
   includes a patch to this issue: [https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/pull/71](https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/pull/71)

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

The topic ‘[Bug v2.1.1] Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/ricg-responsive-images/assets/icon.svg?rev=1119324)
 * [RICG Responsive Images](https://wordpress.org/plugins/ricg-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ricg-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ricg-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/ricg-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ricg-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ricg-responsive-images/reviews/)

## Tags

 * [breakpoints](https://wordpress.org/support/topic-tag/breakpoints/)
 * [default](https://wordpress.org/support/topic-tag/default/)
 * [featured images](https://wordpress.org/support/topic-tag/featured-images/)
 * [media settings](https://wordpress.org/support/topic-tag/media-settings/)
 * [picturefill](https://wordpress.org/support/topic-tag/picturefill/)
 * [RICG](https://wordpress.org/support/topic-tag/ricg/)
 * [sizes](https://wordpress.org/support/topic-tag/sizes/)
 * [srcset](https://wordpress.org/support/topic-tag/srcset/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * 11 replies
 * 2 participants
 * Last reply from: [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/bug-v211-uncaught-typeerror/#post-5910687)
 * Status: not resolved