Share » Forums » Setup & design » No images are shown

No images are shown

No images are shown

Wednesday 02 July 2003 4:16:10 am - 6 replies

Author Message

Wenyue Yu

Wednesday 02 July 2003 8:21:15 am

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

Regards,
wenyue

Wolfgang Hofbauer

Friday 11 July 2003 9:20:47 am

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

Esben Maaløe

Thursday 24 July 2003 9:42:12 am

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
-------------------------------

Jay Towslee

Saturday 26 July 2003 11:08:03 pm

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

Mark Scarbrough

Thursday 16 October 2003 4:22:45 pm

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_3/documentation/configuration/troubleshooting/images_do_not_work/you_are_sure_that_you_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

Mike Salazar

Thursday 16 October 2003 8:12:44 pm

Maybe this would help :)

http://ez.no/developer/ez_publish_3/forum/install_configuration/32_final_no_image_shown

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

36 542 Users on board!

Forums menu