Some images are not shown !!

Author Message

Astrid van Zanten

Saturday 03 May 2003 8:56:26 am

I got ez3 running on MacOSX Server 10.2.5, Apache 1.3.27, php 4.3.0 (PHP is not running in safe mode and with open_basedir restrictions.), GD and ImageMagick 5 and all seems fine except that when I run

http://127.0.0.1/ezpublish-3.0-2/index.php or http://127.0.0.1/ezpublish-3.0-2/index.php/demo/content/view/thumbnail/92
-(SOME) IMAGES can not be found !! - I am puzzeled
***************
This image : <img border="0" src="/ezpublish-3.0-2/var/cache/texttoimage/imagetext/9/4/2/942ecc3a1cc7b74451a8250caa5307b2/Water.png" alt="Water" width="51" height="20" /> is found !! [look at the source code below]
****************
and when I run
http://127.0.0.1/ezpublish-3.0-2/index.php/demo/content/view/slideshow/92/offset/0

I see the following Message:

Unavailable
* The object is not available.

When I look at the Source code of: (http://127.0.0.1/ezpublish-3.0-2/index.php/demo/content/view/thumbnail/92)
I see this:

******************************************
<!-- Main area START -->

<form method="post" action="/ezpublish-3.0-2/index.php/demo/content/action/">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<img border="0" src="/ezpublish-3.0-2/var/cache/texttoimage/imagetext/9/4/2/942ecc3a1cc7b74451a8250caa5307b2/Water.png" alt="Water" width="51" height="20" />
</td>
</tr>
</table>

<table width="100%">
<tr> <td align="left">
<table border="0" bgcolor="#000000" cellpadding="10" cellspacing="0">
<tr>
<td valign="top">
<a href="/ezpublish-3.0-2/index.php/demo/content/view/slideshow/92/offset/0">
<img src="/ezpublish-3.0-2/var/storage/variations/image/X/U/b" width="" height="" border="0" alt="" />
</a></td>
</tr>
</table>
</td> <td align="left">
<table border="0" bgcolor="#000000" cellpadding="10" cellspacing="0">
<tr>
<td valign="top">
<a href="/ezpublish-3.0-2/index.php/demo/content/view/slideshow/92/offset/1">
<img src="/ezpublish-3.0-2/var/storage/variations/image/o/Z/w" width="" height="" border="0" alt="" />
</a></td>
</tr>
</table>
</td></tr>
<tr>
<td> </td>
</tr>
<tr> <td align="left">
<table border="0" bgcolor="#000000" cellpadding="10" cellspacing="0">
<tr>
<td valign="top">
<a href="/ezpublish-3.0-2/index.php/demo/content/view/slideshow/92/offset/2">
<img src="/ezpublish-3.0-2/var/storage/variations/image/Y/c/1" width="" height="" border="0" alt="" />
</a></td>
</tr>
</table>
</td> <td align="left">
<table border="0" bgcolor="#000000" cellpadding="10" cellspacing="0">
<tr>
<td valign="top">
<a href="/ezpublish-3.0-2/index.php/demo/content/view/slideshow/92/offset/3">
<img src="/ezpublish-3.0-2/var/storage/variations/image/Y/w/I" width="" height="" border="0" alt="" />
</a></td>
</tr>
</table>
</td></tr>
</table>

</form>

<!-- Main area END -->
******************************************
I would appreciate some help !!

I can mention that I have changed (earlier) the following in image.ini without any result.
ConvertPath=Library/WebServer/Documents/ezpublish-3.0-2/lib/ezimage/classes/ezimagemanager.php
I have subsequently changed it to default again !!

Astrid van Zanten

Monday 05 May 2003 6:28:02 am

I enabled DebugOutput in site.ini
My ez Debug results on my computer
http://127.0.0.1/ezpublish-3.0-2/index.php/demo/content/view/full/26/
are as follows:
Module start 'content'
Warning: eZModuleOperationInfo::execute May 05 2003 15:19:48

Missing main operation memento for key: ab1801831bf612445e0e64edcc3a3280
Debug: May 05 2003 15:19:48

checking viewmode 'full' #1
Debug: May 05 2003 15:19:48

cache used #1
Debug: May 05 2003 15:19:48

checking viewmode 'full' #1
Debug: May 05 2003 15:19:48

cache used #2
Timing: May 05 2003 15:19:48

Module end 'content'
Warning: PHP May 05 2003 15:19:48

Undefined variable: to_file in /Library/WebServer/Documents/ezpublish-3.0-2/lib/ezimage/classes/ezimagemanager.php on line 405
Warning: PHP May 05 2003 15:19:48

Undefined offset: 1 in /Library/WebServer/Documents/ezpublish-3.0-2/lib/ezimage/classes/ezimagemanager.php on line 405
Warning: PHP May 05 2003 15:19:48

Undefined offset: 1 in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 202
Warning: PHP May 05 2003 15:19:48

getimagesize() [<a href='http://www.php.net/function.getimagesize'>function.getimagesize</a>]: Read error! in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 204
Warning: PHP May 05 2003 15:19:48

Undefined offset: 1 in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 209
Warning: PHP May 05 2003 15:19:48

Undefined offset: 1 in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 216
Error: eZImageVariation May 05 2003 15:19:48

Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
Error: eZImageVariation May 05 2003 15:19:48

Undefined attribute 'contentobject_attribute_id, version, requestedwidth, requestedheight', cannot get
Timing: May 05 2003 15:19:48

End

How must I fix these problems? What must I change? Has someone struggled with these same Warings.

I would like to hear from you before I change the wrong things in my scripts.

Bye for now ! (-;
Astrid

Karsten Jennissen

Monday 05 May 2003 6:35:16 am

Have you tried this:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/typical_problems_and_solutions/images_do_not_work/you_are_sure_that_you_have_imagemagick_but_its_not_working

Karsten

Astrid van Zanten

Monday 05 May 2003 2:17:10 pm

Thanks for your advice Karsten Jennissen I have changed in image.ini the following:
[ShellSettings]
ConvertPath=usr/local/bin/
ConvertExecutable=usr/local/bin/convert I don't think that it makes any difference

I have also installed ezpublish-3.0-2 again ! It was getting very messy !
(I am using MacOS 10.2.5, Apache 1.3.27 and php 4.3.0) ImageMagick 5.5.5 is installed without any setup-problems!

I have again enabled DebugOutput in site.ini
My ez Debug results on my computer
http://127.0.0.1/ezpublish-3.0-2/index.php/demo/content/view/full/26/
are now as follows:
Timing: May 05 2003 23:20:44

Script start
Timing: May 05 2003 23:20:44

Module start 'content'
Warning: eZModuleOperationInfo::execute May 05 2003 23:20:44

Missing main operation memento for key: 8dc9b663b84d7d3cd75aa58626b72810
Debug: May 05 2003 23:20:44

checking viewmode 'full' #1
Debug: May 05 2003 23:20:44

cache used #1
Debug: May 05 2003 23:20:44

checking viewmode 'full' #1
Debug: May 05 2003 23:20:44

cache used #2
Timing: May 05 2003 23:20:44

Module end 'content'
Warning: May 05 2003 23:20:44

Exec: convert -geometry "100x100>" var/storage/reference/image//bqOnp1.jpg jpg:var/storage/variations/image/b/q/O//bqOnp1_100x100_297.jpg, Err: , Ret: 127
Warning: PHP May 05 2003 23:20:44

getimagesize(var/storage/variations/image/b/q/O/bqOnp1_100x100_297.jpg) [<a href='http://www.php.net/function.getimagesize'>function.getimagesize</a>]: failed to create stream: No such file or directory in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 211
Warning: PHP May 05 2003 23:20:44

filesize() [<a href='http://www.php.net/function.filesize'>function.filesize</a>]: Stat failed for var/storage/variations/image/b/q/O/bqOnp1_100x100_297.jpg (errno=2 - No such file or directory) in /Library/WebServer/Documents/ezpublish-3.0-2/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 226
Error: May 05 2003 23:20:44

Could not create variation for var/storage/variations/image/b/q/O/bqOnp1_100x100_297.jpg
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[14] May 05 2003 23:20:44

Cannot retrieve attribute of a boolean
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[45] May 05 2003 23:20:44

Cannot retrieve attribute of a boolean
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[67] May 05 2003 23:20:44

Cannot retrieve attribute of a boolean
Timing: May 05 2003 23:20:44

End

How do I tackle these problems? If you know, please let me know !!

Bye 8-(

Astrid

Astrid van Zanten

Tuesday 06 May 2003 7:32:58 am

Problem solved !! I am extemely happy.
I have read the two entries:
in forum / Install & Configuration / Tried everything ( Roland Guijt ) and (Dave Ames)
dates: 01 May and 02 May

I realized that I was experiencing the same problem!
I had to make the same changes in: settings/override/image.ini.append.php as in had done insettings/image.ini

[ShellSettings]
ConvertPath=/usr/local/bin
ConvertExecutable=/usr/local/bin/convert

Everything works just fine now!
Thanks a lot Bård Farstad, Roland Guijt and Dave Ames

Bye :-)
Astrid

(I hope that I can help others in the future)

Claus Jensen

Wednesday 14 May 2003 5:01:51 am

When I had a problem with images it was because of the image.append.ini in the settings/override/.
It said:
UseConvert=false
UseGD=true

I would check this, if I were you...

claÜs

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 31 2025 01:17:04
Script start
Timing: Jan 31 2025 01:17:05
Module start 'layout'
Timing: Jan 31 2025 01:17:05
Module start 'content'
Timing: Jan 31 2025 01:17:05
Module end 'content'
Timing: Jan 31 2025 01:17:05
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2344151.2109
Module start 'layout' 0.00540.0047 739.4453220.6875
Module start 'content' 0.01000.0140 960.13281,009.7109
Module end 'content' 0.02400.0016 1,969.843841.9922
Script end 0.0256  2,011.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.1019140.0002
Check MTime0.00124.6659140.0001
Mysql Total
Database connection0.00093.530110.0009
Mysqli_queries0.002810.958730.0009
Looping result0.00000.070710.0000
Template Total0.00114.410.0011
Template load0.00093.444510.0009
Template processing0.00020.893010.0002
Override
Cache load0.00062.380410.0006
General
dbfile0.00124.533880.0001
String conversion0.00000.030740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs