No images are shown

Author Message

Wolfgang Hofbauer

Wednesday 02 July 2003 4:16:10 am

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:27:07
Script start
Timing: Jan 18 2025 16:27:07
Module start 'layout'
Timing: Jan 18 2025 16:27:07
Module start 'content'
Timing: Jan 18 2025 16:27:08
Module end 'content'
Timing: Jan 18 2025 16:27:08
Script end

Main resources:

Total runtime0.9017 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 587.9063152.6250
Module start 'layout' 0.00980.0069 740.531339.4297
Module start 'content' 0.01670.8835 779.9609697.6641
Module end 'content' 0.90020.0015 1,477.625016.1875
Script end 0.9017  1,493.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4298160.0002
Check MTime0.00140.1553160.0001
Mysql Total
Database connection0.00220.249210.0022
Mysqli_queries0.806289.4046770.0105
Looping result0.00080.0904750.0000
Template Total0.853394.620.4266
Template load0.00180.203020.0009
Template processing0.851494.421720.4257
Template load and register function0.00020.024210.0002
states
state_id_array0.00200.223810.0020
state_identifier_array0.00130.144420.0007
Override
Cache load0.00180.20241340.0000
Sytem overhead
Fetch class attribute can translate value0.00100.115860.0002
Fetch class attribute name0.00190.212570.0003
XML
Image XML parsing0.00070.082360.0001
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00070.0793100.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
30content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
35content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 74
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs