[Plugin: Post Thumbnail Editor] Error with non-fixed image sizes
-
Howdy, the plugin has been working great, until I stumbled across a new bug (Not so much a bug, more like me using it to do something…unordinary, and it failing on it)
I have a custom image size with only one fixed dimension (add_image_size( ‘header-slider-450’, 0, 400, true );)
When I try to resize an image using that type, I get an error:
[ERROR] - Resize path invalid: /nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1089/cumberland_munich-02-0x400.jpg,[ERROR] - Error writing image: header-slider-450 to '/nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1089/cumberland_munich-02-0x400.jpg',[ERROR] - No images processedThe rest of my images resize fine, just not that specific one.
(here’s the debug log on a different image)
20120409 16:51:03 - [string] ===== STARTUP PHP MESSAGES ===== 20120409 16:51:03 - [string] ===== SERVER LOG ===== 20120409 16:51:03 - [string] [DEBUG] - PARAMETERS: Array ( [action] => pte_ajax [pte-action] => launch [id] => 1105 ) 20120409 16:51:03 - [string] [DEBUG] - USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0 20120409 16:51:03 - [string] [DEBUG] - WORDPRESS: 3.3.1 20120409 16:51:03 - [string] [DEBUG] - SIZER: 0.13333333 20120409 16:51:03 - [string] [DEBUG] - META: Array ( [width] => 2400 [height] => 3000 [hwstring_small] => height='96' width='76' [file] => 2012/04/Alton_Bench-1_high.jpg [sizes] => Array ( [thumbnail] => Array ( [file] => Alton_Bench-1_high-150x150.jpg [width] => 150 [height] => 150 ) [medium] => Array ( [file] => Alton_Bench-1_high-240x300.jpg [width] => 240 [height] => 300 ) [large] => Array ( [file] => Alton_Bench-1_high-819x1024.jpg [width] => 819 [height] => 1024 ) [page-header-1200] => Array ( [file] => Alton_Bench-1_high-1200x400.jpg [width] => 1200 [height] => 400 ) [home-slide-960] => Array ( [file] => Alton_Bench-1_high-960x635.jpg [width] => 960 [height] => 635 ) [related-thumb-128] => Array ( [file] => Alton_Bench-1_high-128x128.jpg [width] => 128 [height] => 128 ) [material-slide-365] => Array ( [file] => Alton_Bench-1_high-365x365.jpg [width] => 365 [height] => 365 ) [material-swatch-70] => Array ( [file] => Alton_Bench-1_high-70x70.jpg [width] => 70 [height] => 70 ) [slideshow-swatch-40] => Array ( [file] => Alton_Bench-1_high-40x40.jpg [width] => 40 [height] => 40 ) [header-slider-450] => Array ( [file] => Alton_Bench-1_high-320x400.jpg [width] => 320 [height] => 400 ) [popup-background-480] => Array ( [file] => Alton_Bench-1_high-480x400.jpg [width] => 480 [height] => 400 ) [post-thumbnail] => Array ( [file] => Alton_Bench-1_high-140x140.jpg [width] => 140 [height] => 140 ) [detail] => Array ( [file] => Alton_Bench-1_high-75x75.jpg [width] => 75 [height] => 75 ) ) [image_meta] => Array ( [aperture] => 0 [credit] => Christopher Barrett [camera] => P 65+ [caption] => [created_timestamp] => 1264595056 [copyright] => © 2010 Christopher Barrett [focal_length] => 0 [iso] => 50 [shutter_speed] => 5.99994801144 [title] => ) ) 20120409 16:51:04 - [string] ===== REFLOW ===== 20120409 16:51:04 - [string] ===== FIXING THICKBOX ===== 20120409 16:51:04 - [string] THICKBOX: 670 x 722 20120409 16:51:04 - [string] WINDOW WIDTH: 780 20120409 16:51:04 - [string] ===== REFLOW ===== 20120409 16:51:04 - [string] ===== FIXING THICKBOX ===== 20120409 16:51:04 - [string] WINDOW WIDTH: 780 20120409 16:51:12 - [string] ===== SETTING ASPECTRATIO: 0:1 ===== 20120409 16:51:18 - [string] ===== RESIZE-IMAGES ===== 20120409 16:51:18 - [object] {"id":"1105","action":"pte_ajax","pte-action":"resize-images","pte-sizes[]":["header-slider-450"],"x":202,"y":1462,"w":2152,"h":1042} 20120409 16:51:19 - [string] ===== RESIZE-IMAGES SUCCESS ===== 20120409 16:51:19 - [object] {"error":["[ERROR] - Resize path invalid: /nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg","[ERROR] - Error writing image: header-slider-450 to '/nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg'","[ERROR] - No images processed"],"log":["[DEBUG] - PARAMETERS: Array\n(\n [id] => 1105\n [action] => pte_ajax\n [pte-action] => resize-images\n [pte-sizes] => Array\n (\n [0] => header-slider-450\n )\n\n [x] => 202\n [y] => 1462\n [w] => 2152\n [h] => 1042\n)\n","[DEBUG] - BASE FILE DIMENSIONS/INFO: Array\n(\n [0] => 2400\n [1] => 3000\n [2] => 2\n [3] => width=\"2400\" height=\"3000\"\n [bits] => 8\n [channels] => 3\n [mime] => image/jpeg\n)\n","[DEBUG] - Array\n(\n [type] => 2\n [dst_x] => 0\n [dst_y] => 0\n [dst_w] => 0\n [dst_h] => 400\n [src_x] => 202\n [src_y] => 1462\n [src_w] => 2152\n [src_h] => 1042\n)\n","[ERROR] - Resize path invalid: /nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg","[ERROR] - Error writing image: header-slider-450 to '/nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg'","[ERROR] - No images processed"]} 20120409 16:51:19 - [string] ===== SERVER LOG ===== 20120409 16:51:19 - [string] [DEBUG] - PARAMETERS: Array ( [id] => 1105 [action] => pte_ajax [pte-action] => resize-images [pte-sizes] => Array ( [0] => header-slider-450 ) [x] => 202 [y] => 1462 [w] => 2152 [h] => 1042 ) 20120409 16:51:19 - [string] [DEBUG] - BASE FILE DIMENSIONS/INFO: Array ( [0] => 2400 [1] => 3000 [2] => 2 [3] => width="2400" height="3000" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) 20120409 16:51:19 - [string] [DEBUG] - Array ( [type] => 2 [dst_x] => 0 [dst_y] => 0 [dst_w] => 0 [dst_h] => 400 [src_x] => 202 [src_y] => 1462 [src_w] => 2152 [src_h] => 1042 ) 20120409 16:51:19 - [string] [ERROR] - Resize path invalid: /nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg 20120409 16:51:19 - [string] [ERROR] - Error writing image: header-slider-450 to '/nas/wp/www/cluster-1062/cumberland/wp-content/uploads/ptetmp/1105/Alton_Bench-1_high-0x400.jpg' 20120409 16:51:19 - [string] [ERROR] - No images processedThanks again for the awesome plugin!
The topic ‘[Plugin: Post Thumbnail Editor] Error with non-fixed image sizes’ is closed to new replies.