This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » No images are shown
expandshrink

No images are shown

No images are shown

Wednesday 02 July 2003 1:16:10 pm - 6 replies

Hi folks,
I have a real problem with images. After installing IMageMagik I can now upload images and I consee these images in the folder var/storage/original/image.
But there is no image to view in the admin, nore in my users view. Debug is on and posts the following errors:
eZ debug

Timing:
Jul 02 2003 13:09:04

Script start

Timing:
Jul 02 2003 13:09:04

Module start 'content'

Warning: eZModuleOperationInfo::execute
Jul 02 2003 13:09:04

Missing main operation memento for key: 9d130c9d264433ab7ec9c1fc496c2ba2

Warning:
Jul 02 2003 13:09:04

Exec: convert -geometry "600x600>" var/storage/reference/image//phpioy1ur.jpg jpg:var/storage/variations/image/p/h/p//phpioy1ur_600x600_137.jpg, Err: , Ret: 127

Warning: PHP
Jul 02 2003 13:09:04

getimagesize: Unable to open 'var/storage/variations/image/p/h/p/phpioy1ur_600x600_137.jpg' for reading. in /Library/WebServer/Documents/ezp/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 234

Warning: PHP
Jul 02 2003 13:09:04

stat failed for var/storage/variations/image/p/h/p/phpioy1ur_600x600_137.jpg (errno=2 - No such file or directory) in /Library/WebServer/Documents/ezp/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 249

Error:
Jul 02 2003 13:09:04

Could not create variation for var/storage/variations/image/p/h/p/phpioy1ur_600x600_137.jpg

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[14]
Jul 02 2003 13:09:04

Cannot retrieve attribute of a boolean

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[45]
Jul 02 2003 13:09:04

Cannot retrieve attribute of a boolean

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[67]
Jul 02 2003 13:09:04

Cannot retrieve attribute of a boolean

Timing:
Jul 02 2003 13:09:04

Module end 'content'

Notice: eZTSTranslator::load
Jul 02 2003 13:09:04

Loading cached translation

Warning: ezi18n
Jul 02 2003 13:09:04

No translation for file(translation.ts) in context(design/standard/layout): '%1 front page' with comment()

Warning: ezi18n
Jul 02 2003 13:09:04

No translation for file(translation.ts) in context(design/standard/layout): 'Search %1' with comment()

Warning: ezi18n
Jul 02 2003 13:09:04

No translation for file(translation.ts) in context(design/standard/layout): 'Printable version' with comment()

Timing:
Jul 02 2003 13:09:04

End

After msurfing teh ez.no-Forum for a while, I ended up with no knowledge plus. So hopefully you guys can help me out.

Thnaks
Wolfgang

Wednesday 02 July 2003 5:21:15 pm

You can run ./bin/modfix.sh and see if it helps.

Regards,
wenyue

Modified on Wednesday 02 July 2003 5:21:41 pm by Wenyue Yu

Friday 11 July 2003 6:20:47 pm

Thanx for your tip. But it didn't solve my problem.
What is about the path to th image? This sounds very strnage: var/storage/variations/image/p/h/p/phpioy1ur_600x600_137.jpg

The path exists, but the file doesn't. That is exactly what the debugger tells me, I guess.
But what can I do about it. Permissions are set to 777, so this shouldn't be the prob.

Any suggestions?

Thanks
Wolfgang

Thursday 24 July 2003 6:42:12 pm

I had this exact problem and I just solved it...

There is a problem with the path: var/storage/variations/image/p/h/p//phpioy1ur_600x600_137.jpg

You can't have two slashes next to each other (at least not on the FreeBSD server I am hosted on)

To fix that I hacked two files (not sure I had to hack them both - but what the heck)

lib/ezimage/classes/ezimagemanager.php

line: around line 417

function convert
{
......
return $from_array["dir"] . "/" . $out_file;
}

changed to:

function convert
{
......
return str_replace( '//', '/', $from_array["dir"] . "/" . $out_file);
}

lib/ezimage/classes/ezimageshell.php

line: around line 172

function convert
{
......

return $str;
}

changed to:

function convert
{
......

return str_replace( '//', '/', $str );
}

Now this is the basic premise - but in my case it wasn't enough.

As it turned out - my ISP had 'convert' in '/usr/local/bin' but my $PATH wasn't pointing there. So I had to hack lib/ezimage/classes/ezimageshell.php again

line: around line 290

function run( &$execstr, $dest_str )
{
$err = system( $execstr, $ret_code );
....
}

to

function run( &$execstr, $dest_str )
{
$err = system( $this->ExecPath . '/' . $execstr, $ret_code );
....
}

Now it works....

(other things to check are as mentioned safemode and writepermissions on the dir's involved)

-------------------------------
Imagemagick 127 convert
-------------------------------

Sunday 27 July 2003 8:08:03 am

I had a similar problem and the fix built out below with the modifications to the various image class files worked for me. Thank you so much.

Having said that, which forum article would have told me how to turn on the debugger, as I took it on faith that I had the same problem as I had the same symptoms...

sigh...

***Jay

Friday 17 October 2003 1:22:45 am

FYI, I had a similar problem using ezp 3.2 but this did not help. Instead, I finally found this documentation which solved the problem:

http://ez.no/developer/ez_publish...have_imagemagick_but_its_not_working

I'm not sure that the double slashes make a difference. I use freebsd 4.8 and I've never noticed it rejecting consecutive slashes in a path. I tested this issues specifically while debugging a shell script...

-Mark

Friday 17 October 2003 5:12:44 am

Maybe this would help happy.gif Emoticon

http://ez.no/developer/ez_publish...onfiguration/32_final_no_image_shown

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from