Forums / Install & configuration / Some images are not shown !!

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