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: undefinedwatchdog 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | imagemagick-depend-public-files-dir-1286086-2.patch | 3.94 KB | KrisBulman |
| #2 | imagemagick-depend-public-files-dir-1286086-1.patch | 3.33 KB | KrisBulman |
Comments
Comment #0.0
KrisBulman commentedremoved unnecessary local paths from output
Comment #0.1
KrisBulman commentedre-ordered comments for better flow
Comment #1
KrisBulman commentedJust got more info out of the logs..
the image was 3MB, and the filesize allowance was set to 128MB.
Comment #2
KrisBulman commentedI 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.
Comment #3
KrisBulman commentedComment #4
KrisBulman commentedoops, missed a couple paths.
Comment #5
KrisBulman commentedhmm, 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.
Comment #6
KrisBulman commentedok, my bad patch is ok. i added a second imagefield and set it also as an iip field but didn't set the display.
Comment #7
barbun commentedThanks, 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
Comment #8.0
(not verified) commentedadded question