o.thumbnails undefined
-
After hitting crop and save i get o.thumbnails is undefined and points to main.js:20, any ideas ? Thanks
-
What version of wordpress are you using?
What error do you get if you enable debugging ( Settings → Post Thumbnail Editor)?
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:61edit: using wp 3.5.1, and lastest version of the plugin
Assuming you were accessing this URL: 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
Oh and what browser are you using?
I’m getting the same error on a fresh WP 3.5.1 install using OSX 10.8.3 and Chrome 27
What version of PTE? What happens if you put PTE in debug mode? (Settings → Post Thumbnail Editor)
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.
so is there no error message now? (If you inspect the returned message in the network tab).
The topic ‘o.thumbnails undefined’ is closed to new replies.