Forums / Install & configuration / no images visible in demo version

no images visible in demo version

Author Message

rik lingen

Friday 08 August 2003 4:39:59 am

Hi all,

I installed ez:

tar xvfz ezpublish-3[1].1-1.tar.gz
./bin/modfix.sh
chmod -R a+rwx design/demo/override/templates/
chmod -R a+rwx design/admin/override/templates/
chmod -R 770 var/*
chown -R httpd:httpd var/*

in the adminpanel I have in the "weekend in the" article

Image filename
phpTw4jRT.jpg

but no image.

it is expected (according to the source) in
/ez/var/storage/variations/image/p/h/p
but it resides in fact in /ez/var/storage/original/images

uploads of new images in the admin also places the files in this folder and not in the /p/h/p folder.

The sugggestions in

http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/troubleshooting/images_do_not_work

offer no help.

Any suggestions?

sys config

xml, tokenizer, standard, sockets, session, posix, pgsql, pcre, overload, openssl, mysql, imap, gettext, gd, ftp, ctype, zlib, apache

Safe mode is off.
Basedir restriction is off.
Global variable registration is on.
File uploading is enabled.
Maximum size of post data (text and files) is 8M.
Script memory limit is .
Maximum execution time is 30 seconds.

Alex Jones

Friday 08 August 2003 7:01:03 am

Have you made the changes to image.ini to use GD instead of convert?

[ConverterSettings]
UseConvert=false
UseGD=true

[GDSettings]
HasGD2=true

[Rules]
DefaultRule=image/jpeg;gd
Rules[]=image/jpeg;image/jpeg;gd
Rules[]=image/png;image/png;gd
Rules[]=image/gif;image/png;gd
Rules[]=image/xpm;image/png;gd

If so, you may want to turn on the debug mode in settings/site.ini or settings/siteaccess/YOURSITE/site.ini.append to see what errors it generates:

[DebugSettings]
DebugOutput=disabled

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

rik lingen

Friday 08 August 2003 10:05:00 am

Thanks Alex, for your reply. Your solution takes care of the images not being visible right at the demo start up. that problem solved. (my config is php4.3.2 with embedded GD, so perhaps that is why the GD was not picked up correctly)

problem that remains:

a new article image upload ends up in the

ezpublish/var/storage/original/image folder together with all the images that go with the demo.

The ez source however expects them in the variations folder. the html source code gives you

img src="/ezpublish/var/storage/variations/image/p/h/p" alt="" /

the /p folder remains empty and a broken image links is the only thing you get to see.

a symlink from original to variations will not do the trick.

There are a few older posts on this folder related to this problem but without a satisfactry answer.

suggestions are greatly appreciated.

Rik

 

padEE Scherer

Saturday 09 August 2003 5:50:23 am

i've got the same problem. i can't see any picures. on the server where ez3.1.1 runs properly has php4.3.1. now, what is gd exactly and is it in the version 4.3.1, so that i could proceed as mentioned above?

thanks for any help

padEE

Tony Wood

Saturday 09 August 2003 6:49:26 am

Hi,

I've added a couple of problems/solutions to
http://ez.no/developer/ez_publish_3/documentation/installation_and_configuration/troubleshooting/images_do_not_work i hope they help.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

rik lingen

Sunday 10 August 2003 10:32:04 am

Thanks Tony,

I checked the troubleshooting page but no succes.

the point is that there is nothing wrong with the quality of the image when you upload it to the server, it just is in the wrong directory. I can get the image in my browser with www.mysite/ezpublish/var/storage/original/images/imagename.gif

but the scripts expects the image in the var/storage/variations directory.

Ekkehard Dörre

Monday 11 August 2003 11:50:34 pm

Look at my last posting:

http://ez.no/developer/ez_publish_3/forum/install_configuration/still_problems_with_images

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

rik lingen

Tuesday 12 August 2003 4:46:47 am

Happy days are here again!

Thanks Ekke for your input.

Your suggestion did not make the difference though and the thread looks related to my problem but concerns imagemagic?

the solution turned out to be that GD compiled with php 4.3.0 does not support gif. A jpg givens no problem at all.

to summarise:

make the changes to image.ini when using 4.3.0

[GDSettings]
HasGD2=true

[Rules]
DefaultRule=image/jpeg;gd
Rules[]=image/jpeg;image/jpeg;gd
Rules[]=image/png;image/png;gd
Rules[]=image/gif;image/png;gd
Rules[]=image/xpm;image/png;gd

and do not use gif (I can live with that)

by the way the log still gives you 2 warnings

Missing main operation memento for key: fab424e98542f98b2b35d3973614a522

Undefined variable: lang in ez/kernel/classes/ezcontentobject.php on line 1155