[horde] Can't add pics to Ansel - syntax error

Michael J Rubinsky mrubinsk at horde.org
Fri Oct 21 00:15:20 UTC 2011


Quoting Simon Wilson <simon at simonandkate.net>:

> ----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
>    Date: Thu, 20 Oct 2011 09:43:55 -0400
>    From: Michael J Rubinsky <mrubinsk at horde.org>
> Subject: Re: [horde] Can't add pics to Ansel - syntax error
>      To: horde at lists.horde.org
>
>
>> Quoting Simon Wilson <simon at simonandkate.net>:
>>
>>> ----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
>>>  Date: Wed, 19 Oct 2011 23:54:05 -0400
>>>  From: Michael J Rubinsky <mrubinsk at horde.org>
>>> Subject: Re: [horde] Can't add pics to Ansel - syntax error
>>>    To: horde at lists.horde.org
>>>
>>>
>>>> Quoting Simon Wilson <simon at simonandkate.net>:
>>>>
>>>>> I have installed Ansel 2.0 RC1.
>>>>>
>>>>> I created a gallery, and tried to add a picture to the gallery.  
>>>>> The upload to gallery UI says "SyntaxError (stop sign) Syntax  
>>>>> error" when I click "^Upload". The Horde log says this... <snip>
>>>>>
>>>> Can you see what the ajax request looks like when you click  
>>>> upload? You can use something like Firebug or webkit's developer  
>>>> tools to see this.
>>>>
>>>>> I have no shares set on anything outside a couple of calendars.
>>>>
>>>> Every Ansel gallery is a share.
>>>>
>>>> -- 
>>>> mike
>>>>
>>>
>>>
>>> OK, doing it on my home PC with Firefox instead of horrible IE8 at  
>>> work, it appears to upload. However, then viewing the Gallery  
>>> shows a partially uploaded JPG with about 3/4 grey.
>>>
>>> Horde log reads:
>>>
>>> 2011-10-20T22:24:28+10:00 ERR: HORDE [ansel] Unknown error running  
>>> exiftool command [pid 1599 on line 59 of  
>>> "/usr/share/pear/Horde/Image/Exif/Exiftool.php"]
>>> 2011-10-20T22:24:32+10:00 ERR: HORDE [ansel] Error running  
>>> command: /usr/bin/convert  "/tmp/imgIKsUvx"'[0]' -thumbnail 50x50^  
>>> -gravity center -extent 50x50 +profile "*" jpeg:"/tmp/imgmrokCP"  
>>> 2>&1
>>> convert: Premature end of JPEG file `/tmp/imgIKsUvx'.
>>> convert: Corrupt JPEG data: premature end of data segment `/tmp/imgIKsUvx'.
>>> convert: invalid argument for option `50x50^': -thumbnail. [pid  
>>> 1595 on line 441 of "/usr/share/pear/Horde/Image/Base.php"]
>>> 2011-10-20T22:24:32+10:00 EMERG: HORDE [ansel] Error running  
>>> command: /usr/bin/convert  "/tmp/imgIKsUvx"'[0]' -thumbnail 50x50^  
>>> -gravity center -extent 50x50 +profile "*" jpeg:"/tmp/imgmrokCP"  
>>> 2>&1
>>> convert: Premature end of JPEG file `/tmp/imgIKsUvx'.
>>> convert: Corrupt JPEG data: premature end of data segment `/tmp/imgIKsUvx'.
>>> convert: invalid argument for option `50x50^': -thumbnail. [pid  
>>> 1595 on line 1160 of "/var/www/horde4/ansel/lib/Image.php"]
>>>
>>> For each time I tried to upload the file there are two files in  
>>> /tmp - e.g. imgmrokCP @ 0B, and imgIKsUvx @ 65kB. Downloading the  
>>> 65kB one and adding .jpg reveals the partially uploaded mostly  
>>> grey jpg.
>>>
>>> I have tried with a couple of pics - can send them to you Mike if  
>>> you need to see them.
>>
>> Yes please. One image that is exhibiting this behavior would be  
>> helpful, if only to rule out that it's something specific with your  
>> images. Also, what version of FF are you using?
>>
>> -- 
>> mike
>>
>> The Horde Project (www.horde.org)
>> mrubinsk at horde.org
>>
>>
>> -- 
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
> ----- End message from Michael J Rubinsky <mrubinsk at horde.org> -----
>
> Pics attached.
>
> Firefox 7.0.1


Thanks for the pics (nice shots, btw). They uploaded without issue on  
various browsers on MacOS. However, I dusted off a windows VM and ran  
into the same missing share error you had on IE. I fixed *that* error,  
but was unable to reproduce the upload error you are seeing with the  
incomplete image uploads, even with FF on windows. Are there any  
errors in the webserver's error log? Sounds like something is causing  
the upload to stop/timeout before it's finished.

-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org



More information about the horde mailing list