Forums / Developer / ezroot doesn't work correctly

ezroot doesn't work correctly

Author Message

Sébastien Morel

Thursday 24 May 2007 1:48:16 am

Hello,

In my file ezimage.tpl
templates/content/datatype/view/ezimage.tpl
I have this code, to generate the full source of images

src={$image.url|ezroot('double', 'full')} 

This code works perfecctly on my development environnement, but in production, the full url contains the private IP of the server

http://10.0.0.X/.....

and so images are broken

The problem must be a configuration problem, somebody knows this problem ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Nabil Alimi

Thursday 24 May 2007 2:15:59 am

Yop Séb,

Have you checked your site.ini on the production environnement ? Maybe that the [SiteSettings].SiteURL setting is incorrect.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Sébastien Morel

Thursday 24 May 2007 2:27:42 am

Hi, thanks for this quickly answer...

But no, in fact, in my development environement, in the site.ini, the SiteURL varable is set with the production value....

So, eZ don't use a file.ini for generate the full path..

Perhaps a server configuration ? It's the first time I use the "full" argument with ezroot, in general I use

concat("http//",{ezsys( 'hostname' )},$image.url|ezroot)

But the arguments "full" should be work....

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)