Title: o.thumbnails undefined
Last modified: August 21, 2016

---

# o.thumbnails undefined

 *  [Erocanti](https://wordpress.org/support/users/erocanti/)
 * (@erocanti)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/othumbnails-undefined/)
 * After hitting crop and save i get o.thumbnails is undefined and points to main.
   js:20, any ideas ? Thanks
 * [http://wordpress.org/extend/plugins/post-thumbnail-editor/](http://wordpress.org/extend/plugins/post-thumbnail-editor/)

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

 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694299)
 * What version of wordpress are you using?
 * What error do you get if you enable debugging ( Settings → Post Thumbnail Editor)?
 *  Thread Starter [Erocanti](https://wordpress.org/support/users/erocanti/)
 * (@erocanti)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694306)
 *     ```
       TypeError: Cannot read property 'thumbnail' of undefined
           at Object.eval (http://localhost/wp-content/plugins/post-thumbnail-editor/js/controllers/CropCtrl.coffee:168:42)
           at Function.v.extend.each (http://localhost/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery,utils&ver=3.5.1:2:14543)
           at eval (http://localhost/wp-content/plugins/post-thumbnail-editor/js/controllers/CropCtrl.coffee:165:15)
           at http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular-resource.min.js:8:255
           at h (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:77:33)
           at http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:77:266
           at Object.e.$eval (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:87:347)
           at Object.e.$digest (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:85:198)
           at Object.e.$apply (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:87:506)
           at e (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:94:38)
           at o (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:97:123)
           at XMLHttpRequest.s.onreadystatechange (http://localhost/wp-content/plugins/post-thumbnail-editor/apps/angular/angular.min.js:98:259) angular.min.js:61
       ```
   
 * edit: using wp 3.5.1, and lastest version of the plugin
 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694322)
 * Assuming you were accessing this URL: [http://wordpress/wp-admin/upload.php?page=pte-edit&pte-id=48](http://wordpress/wp-admin/upload.php?page=pte-edit&pte-id=48),
   what does the following URL give you (change the domain and the id’s to match
   yours)?
 * [http://wordpress/wp-admin/admin-ajax.php?action=pte_ajax&id=48&pte-action=get-thumbnail-info](http://wordpress/wp-admin/admin-ajax.php?action=pte_ajax&id=48&pte-action=get-thumbnail-info)
 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694323)
 * Oh and what browser are you using?
 *  [Kevin Langley Jr.](https://wordpress.org/support/users/kevinlangleyjr/)
 * (@kevinlangleyjr)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694578)
 * I’m getting the same error on a fresh WP 3.5.1 install using OSX 10.8.3 and Chrome
   27
 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694579)
 * What version of PTE? What happens if you put PTE in debug mode? (Settings → Post
   Thumbnail Editor)
 *  [Kevin Langley Jr.](https://wordpress.org/support/users/kevinlangleyjr/)
 * (@kevinlangleyjr)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694580)
 * Latest version 2.1.0 and upon turning on debug more it turns out it my permissions
   were not allowing it to create the ptetemp folder within my uploads, I’ve changed
   the parameters and it now creates the image file, but it never updates the db
   with the new url, instead it just has the _wp_attachment_metadata set to the 
   old originally cut file.
 *  Plugin Author [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * (@sewpafly)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694581)
 * so is there no error message now? (If you inspect the returned message in the
   network tab).

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

The topic ‘o.thumbnails undefined’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [sewpafly](https://wordpress.org/support/users/sewpafly/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/othumbnails-undefined/#post-3694581)
 * Status: not resolved