Forums / Install & configuration / Can't view any newly saved images; .jpg extension is missing in /var

Can't view any newly saved images; .jpg extension is missing in /var

Author Message

Greg McAvoy-Jensen

Monday 19 January 2004 11:29:15 pm

I'm using the shop on 3.3-2. I used to be able to upload pictures of products and view them in a list without trouble. Now whenever I add a new product, I can't view the image. It also is missing in admin when I view the product.

The image seems to be saved, but the new ones simply end in "." rather than in ".jpg" (and renaming the files to include that extension just give me a file not found error). Permissions look wide open.

The HTML produced in admin looks like this:
<img src="" width="" height="" border="0" alt="" title="" />

Debug reports the following:
Module start 'content'
Warning: eZModuleOperationInfo::execute Jan 19 2004 23:26:43
Missing main operation memento for key: 89a76bc7fd7cbde9a83e565173a7ea29
Warning: eZImageShellHandler::convert Jan 19 2004 23:26:43
Failed executing: /usr/bin/convert '-quality' '75' '-geometry' '600x600>' 'var/shop/storage/images/products/bibles/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition/1128-3-eng-US/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition.' 'JPEG:the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition_reference.jpg', Error: , Return: 1
Error: eZImageManager::createImageAlias Jan 19 2004 23:26:43
Failed converting var/shop/storage/images/products/bibles/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition/1128-3-eng-US/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition. to alias original in directory
Error: eZImageManager::createImageAlias Jan 19 2004 23:26:43
Failed creating the referenced alias reference, cannot create alias large
Warning: PHP Jan 19 2004 23:26:43
Invalid argument supplied for foreach() in /var/www/html/gregorybooks/kernel/classes/ezcontentobject.php on line 2228
Timing: Jan 19 2004 23:26:43
Module end 'content'

Why won't the images appear?

Greg
http://www.gregorybooks.com

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

James Packham

Tuesday 20 January 2004 6:41:26 am

hmmm I don't think the extension should really matter too much so long as the reference in the database is correct.

I'd guess it's somekind of problem with imagemagick. Couldn't say much more to help cos of lack of experience, but it should be a good start. I'd say the lines:

"Failed executing: /usr/bin/convert '-quality' '75' '-geometry' '600x600>'"
and
"Failed converting"

seem to back this up - it looks like ez knows what it should be doing with the images, it just comes accross problems when it's trying to do it. You could try setting gd as your image processor (or whatever you want to call it) in site.ini.x.x

Regards,

~James~

Alessandro Cipriani

Tuesday 20 January 2004 8:35:28 am

i'm having the same error
no problem running the site on locale, but when i moved it on the server i had this problem

thanks
alessandro

Marco Zinn

Wednesday 21 January 2004 1:29:38 pm

Alessandro, see your other thread. You have a config error.

Greg...
Did you make sure, that PHP safe mode is off?
Is the path /usr/bin/convert okay?
"Failed executing" usually leads to these errors.

Strange is, that the extension seems to be cut off. Does this happen to all images and nodes? Can you try with a node, that creates a shorter url alias than products/bibles/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition ? Maybe there is a but with long directory names in the Image Conversion call.

Marco
http://www.hyperroad-design.com

Greg McAvoy-Jensen

Wednesday 21 January 2004 11:19:06 pm

Thank you for the ideas.

1. I haven't tried switching to GD. I actually don't know how.
2. php.ini shows safe mode is off.
3. ls -la /usr/bin/convert shows all can read and execute it.
4. I've tried a title shorter than the one which still works (it seems recent additions have this problem), but I still don't get an image.

Could this be a memory problem? ImageMagick's website suggested low memory could cause ImageMagick to cough and sputter(http://studio.imagemagick.org/www/FAQ.html#C9). Then the system's idle (99%), top shows:
Mem: 255316k av, 251724k used, 3592k free, 0k shrd, 6016k buff
Swap: 192740k av, 186572k used, 6168k free, 37480k cached

vmstat shows swap so going from 0 to 228 (idle) up to 4172 as the thing thrashes for 16 seconds putting together a web page for me (just clicking to another part of my site). It used to only take 2-6 seconds to compose the page.

Other system info: it's a 300Mhz Celeron running Red Hat 9.0. The hard drive is IDE. I was hoping to not have to upgrade, since rather than spending money on old SDRAM on an old motherboard which I can't upgrade easily, I'll have to take the plunge and buy new memory, motherboard, and processor--not the end of the world certainly, especially if it solves all my problems!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Monday 26 January 2004 12:11:39 pm

SOLVED!

It was a memory problem. I installed an intel 865PERL motherboard, a celeron 2.2Ghz processor, and 512MB or DDR. Thanks, everyone, for your suggestions.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog