Here is my situation..
* fast cgi is working (accessible from a drupal path mysitename/fcgi-bin)
* imagemagick/libtiff installed & working
* php recognizes imagemagic
* iip-image folder & files exists in sites/all/libraries
* iipsrv responds if I use a test image and access it through the iipsrv.fcgi drupal path
* proc_open tested and working with php

My convert step fails when uploading a tiff through Drupal.. the failout message is:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field_iiptest/und/0/form-mJMIS0h-tRFPGRVeFk-EWYWRazldCAqBVY1erFzW5FE
StatusText: n/a
ResponseText: 
The Beorn Project
The Fluid Baseline Grid System is an HTML5 & CSS3 development kit that provides a solid foundation to quickly design websites.
Error
Error message
Warning: filesize() [function.filesize]: stat failed for sites/default/files/191544-f_000-2.jpg in _iip_image_file_convert() (line 322 of /drupal-7.2/sites/all/modules/iip_image/iip_image.module).
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'filesize' at row 1: UPDATE {file_managed} SET uri=:db_update_placeholder_0, filename=:db_update_placeholder_1, filemime=:db_update_placeholder_2, filesize=:db_update_placeholder_3
WHERE  (fid = :db_condition_placeholder_0) ; Array
(
[:db_update_placeholder_0] => public://191544-f_000-2.jpg
[:db_update_placeholder_1] => 191544-f_000-2.jpg
[:db_update_placeholder_2] => image/jpeg
[:db_update_placeholder_3] => 
[:db_condition_placeholder_0] => 342
)
in _iip_image_file_convert() (line 328 of /drupal-7.2/sites/all/modules/iip_image/iip_image.module).
The website encountered an unexpected error. Please try again later.

ReadyState: undefined

watchdog spits this out:

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'filesize' at row 1: UPDATE {file_managed} SET uri=:db_update_placeholder_0, filename=:db_update_placeholder_1, filemime=:db_update_placeholder_2, filesize=:db_update_placeholder_3 WHERE (fid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => public://191544-f_000-2.jpg [:db_update_placeholder_1] => 191544-f_000-2.jpg [:db_update_placeholder_2] => image/jpeg [:db_update_placeholder_3] => [:db_condition_placeholder_0] => 342 ) in _iip_image_file_convert() (line 328 of /drupal-7.2/sites/all/modules/iip_image/iip_image.module).

What tests can I do directly to see where the php / imagemagick problem lies?

As a test, I thought I'd upload a jpeg, convert the jpeg to tiled tiff manually via command line and throw it into my files directory along side the jpeg. In that case, things work as expected.

Comments

KrisBulman’s picture

Issue summary: View changes

removed unnecessary local paths from output

KrisBulman’s picture

Issue summary: View changes

re-ordered comments for better flow

KrisBulman’s picture

Just got more info out of the logs..

[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"beorn","theme_token":"ZZXO5AtTEz37mEK3wI1A-h1f6b6Bz0s_CWT1Kw0C-Nc","css":[]},"lightbox2":{"rtl":0,"file_path":"\/(\\w\\w\/)public:\/","default_image":"\/sites\/all\/modules\/lightbox2\/images
\/brokenimage.jpg","border_size":10,"font_color":"000","box_color":"fff","top_position":"","overlay_opacity":"0.8",
"overlay_color":"000","disable_close_click":true,"resize_sequence":0,"resize_speed":400,"fade_in_speed":400,"slid
e_down_speed":600,"use_alt_layout":false,"disable_resize":false,"disable_zoom":false,"force_show_nav":false,"sho
w_caption":true,"loop_items":false,"node_link_text":"View Image 
Details","node_link_target":false,"image_count":"Image !current of !total","video_count":"Video !current of 
!total","page_count":"Page !current of !total","lite_press_x_close":"press \u003ca href=\"#\" 
onclick=\"hideLightbox(); return FALSE;\"\u003e\u003ckbd\u003ex\u003c\/kbd\u003e\u003c\/a\u003e to 
close","download_link_text":"Download Original","enable_login":false,"enable_contact":false,"keys_close":"c x 
27","keys_previous":"p 37","keys_next":"n 
39","keys_zoom":"z","keys_play_pause":"32","display_image_size":"","image_node_sizes":"
()","trigger_lightbox_classes":"","trigger_lightbox_group_classes":"","trigger_slideshow_classes":"","trigger_lightfr
ame_classes":"","trigger_lightframe_group_classes":"","custom_class_handler":0,"custom_trigger_classes":"","disa
ble_for_gallery_lists":true,"disable_for_acidfree_gallery_lists":true,"enable_acidfree_videos":true,"slideshow_interv
al":5000,"slideshow_automatic_start":true,"slideshow_automatic_exit":true,"show_play_pause":true,"pause_on_ne
xt_click":false,"pause_on_previous_click":true,"loop_slides":false,"iframe_width":600,"iframe_height":400,"iframe
_border":1,"enable_video":false}},"merge":true},
{"command":"insert","method":"replaceWith","selector":null,"data":"\u003cdiv class=\"messages error\"\u003e
\n\u003ch2 class=\"element-invisible\"\u003eError message\u003c\/h2\u003e\nAn unrecoverable error 
occurred. The uploaded file likely exceeded the maximum file size (128 MB) that this server supports.\u003c
\/div\u003e\n","settings":null}]

the image was 3MB, and the filesize allowance was set to 128MB.

KrisBulman’s picture

I resolved this by removing the hardcoded public path (sites/default/files) & setting imagemagick module as a dependancy which handles (and tests) the paths of imagemagick for you.

KrisBulman’s picture

Status: Active » Needs review
KrisBulman’s picture

oops, missed a couple paths.

KrisBulman’s picture

Status: Needs review » Needs work

hmm, this seems to be doing something with the regular image file upload field of a node, can't see how changing the paths would have caused this, but it will require further testing.

KrisBulman’s picture

Status: Needs work » Needs review

ok, my bad patch is ok. i added a second imagefield and set it also as an iip field but didn't set the display.

barbun’s picture

Status: Needs review » Fixed

Thanks, Kris!
That was my bad, i commit your changes to 7.x-1.x branch.

Tested it on a working site - everything seems to be ok!

My best,
ROMAN

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

added question