Absolute paths?

Author Message

Ben Overmyer

Wednesday 26 November 2008 8:32:42 am

Currently, our site ( https://lpdaac.usgs.gov ) shows a "insecure items" warning on every single page.

I've modified every template, stylesheet, and javascript file to use only absolute paths, but eZ Publish itself is putting relative paths to images into the markup.

How do I force eZ Publish to only serve absolute paths?

michiel n.

Wednesday 26 November 2008 9:25:00 am

The only problem I see is that I don't have the root certificate of Verisign (read: do not trust verisign).

If it shows 'insecure items' because it uses an absolute path, or do I misunderstand you?

But to answer your question, check which template is being used for displaying images.
Once you found out, check whether it uses

 src={$image.imagepath|ezroot}

or

 src={$image.imagepath|ezurl}

You also might want to check your vhosts and rewrite rules, those could screw up your configuration as well.

Certified eZ developer looking for projects.
michieln at gmail dot com
http://ez.no/certification/verify/225305

Ben Overmyer

Wednesday 26 November 2008 9:43:19 am

The template for images appears to be using ezroot, not ezurl.

I need to use URLs that include the server/host name (e.g., https://lpdaac.usgs.gov) in them in order to get rid of the "insecure items" warnings. I've done this in other templates by doing something like this:

<img src="https://lpdaac.usgs.gov{'extensions/etc/images/test.gif'|ezdesign('no')}" alt="" />

Unless someone has a better solution, that is.

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 05:09:24
Script start
Timing: Jan 18 2025 05:09:24
Module start 'layout'
Timing: Jan 18 2025 05:09:24
Module start 'content'
Timing: Jan 18 2025 05:09:25
Module end 'content'
Timing: Jan 18 2025 05:09:25
Script end

Main resources:

Total runtime0.9107 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7891152.6094
Module start 'layout' 0.00540.0031 740.398439.4297
Module start 'content' 0.00850.9002 779.8281539.5313
Module end 'content' 0.90880.0018 1,319.359412.5078
Script end 0.9106  1,331.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4145160.0002
Check MTime0.00140.1570160.0001
Mysql Total
Database connection0.00090.093610.0009
Mysqli_queries0.840592.2918570.0147
Looping result0.00060.0690550.0000
Template Total0.877996.420.4390
Template load0.00220.246320.0011
Template processing0.875796.156220.4378
Template load and register function0.00020.016710.0002
states
state_id_array0.00090.098710.0009
state_identifier_array0.00110.120720.0005
Override
Cache load0.00190.2050230.0001
Sytem overhead
Fetch class attribute can translate value0.00180.202120.0009
Fetch class attribute name0.00180.197850.0004
XML
Image XML parsing0.01201.320920.0060
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.01271.3961220.0006
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs