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)

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 22:37:34
Script start
Timing: Jan 18 2025 22:37:34
Module start 'layout'
Timing: Jan 18 2025 22:37:34
Module start 'content'
Timing: Jan 18 2025 22:37:34
Module end 'content'
Timing: Jan 18 2025 22:37:34
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9141152.6250
Module start 'layout' 0.00660.0031 740.539139.4453
Module start 'content' 0.00960.0047 779.984493.4453
Module end 'content' 0.01430.0021 873.429734.3047
Script end 0.0164  907.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002817.2600140.0002
Check MTime0.00148.3654140.0001
Mysql Total
Database connection0.00095.663210.0009
Mysqli_queries0.002515.085430.0008
Looping result0.00000.103210.0000
Template Total0.00159.210.0015
Template load0.00084.903010.0008
Template processing0.00074.304110.0007
Override
Cache load0.00053.334510.0005
General
dbfile0.00021.487080.0000
String conversion0.00000.055240.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