sewpafly / post-thumbnail-editor

Wordpress Plugin to manually edit post thumbnails
http://wordpress.org/extend/plugins/post-thumbnail-editor/
32 stars 18 forks source link

Can't save cropped thumbnail #54

Closed Pantsoffski closed 11 years ago

Pantsoffski commented 11 years ago

Hello!

First of all, thanks for your great work! Your plugin is really great, but I have some problem with 2.0.0-beta version.

Everything works great except one thing - I cant save cropped thumbnail. Save worked before (version 1.0.7), but now when I press green disc icon to save, just nothing happens. Help me please!

Thanks

sewpafly commented 11 years ago

Seems to be an issue with the beta, Can you help debug this issue by following the instructions in this post: http://wordpress.org/support/topic/firefox-not-saving-crop?replies=3#post-3948825?

Thanks

Pantsoffski commented 11 years ago

U mean this? {"thumbnails":{"thumbnail":{"url":"http:\/\/***.pl\/wp-content\/uploads\/ptetmp\/19821\/Angry-Birds-na-iOS-150x1503.jpg","file":"Angry-Birds-na-iOS-150x1503.jpg"}},"pte-nonce":"2037fe97f9","pte-delete-nonce":"fcaedd6237","error":[],"log":["[DEBUG] - PARAMETERS: Array\n(\n [action] => pte_ajax\n [h] => 163.2\n [id] => 19821\n [pte-action] => resize-images\n [pte-sizes] => thumbnail\n [w] => 163.2\n [x] => 56.4\n [y] => 174\n)\n","[DEBUG] - Converting pte_sizes to array","[DEBUG] - BASE FILE DIMENSIONS\/INFO: Array\n(\n [0] => 270\n [1] => 480\n [2] => 2\n [3] => width=\"270\" height=\"480\"\n [bits] => 8\n [channels] => 3\n [mime] => image\/jpeg\n)\n","[DEBUG] - GETwidthheightCROPPED","[DEBUG] - WIDTHxHEIGHT: 150 x 150","[DEBUG] - EDITOR: GD","[DEBUG] - COMPRESSION: 90"]}

sewpafly commented 11 years ago

That step creates the file on disk (which appears to work), the next step, when you click the save button, will have a different response (or maybe it's not getting sent at all) -- that's the piece that I need to know about. Also, do you see any javascript errors in the console?

Pantsoffski commented 11 years ago

When I press Save, just nothing happens, no errors and no debug logs, console is clean, no java errors. It's strange, but when i press Preview button or trash button, those two functions works normally, but gives no mark in debug log, or console.

Pantsoffski commented 11 years ago

Crop doesn't work only in Firefox, but when I try to crop in Chrome, it gives me no preview for cropped image, I need to reenter thumbnail UI to see changed image. Here is log: {"error":["[ERROR] - FILE is invalid: \/var\/www\/pest\/data\/www\/_.pl\/wp-content\/uploads\/ptetmp\/19821\/Angry-Birds-na-iOS-150x150.jpg"],"log":["[DEBUG] - PARAMETERS: Array\n(\n [action] => pte_ajax\n [id] => 19821\n [pte-action] => confirm-images\n [pte-confirm] => Array\n (\n [thumbnail] => Angry-Birds-na-iOS-150x150.jpg\n )\n\n [pte-nonce] => 2037fe97f9\n)\n","[DEBUG] - pte_get_all_alternate_size_information returned: Array\n(\n [thumbnail] => Array\n (\n [width] => 150\n [height] => 150\n [crop] => 1\n [current] => Array\n (\n [file] => Angry-Birds-na-iOS-150x150.jpg\n [width] => 150\n [height] => 150\n [path] => 2013\/03\/Angry-Birds-na-iOS-150x150.jpg\n [url] => http:\/\/_.pl\/wp-content\/uploads\/2013\/03\/Angry-Birds-na-iOS-150x150.jpg\n )\n\n )\n\n)\n","[ERROR] - FILE is invalid: \/var\/www\/pest\/data\/www\/***.pl\/wp-content\/uploads\/ptetmp\/19821\/Angry-Birds-na-iOS-150x150.jpg"]}