Forums / Setup & design / eZP 4.2 and related PDF files

eZP 4.2 and related PDF files

Author Message

Pascal France

Wednesday 24 March 2010 10:12:00 am

Hi,

With an eZP 4.2 installation I can't download PDF files when they are «related objects» of an article.

All works fine with related ODT or DOC objects (I can download them) but with PDF I get this error message:

 Firefox ne peut trouver le fichier à l'adresse http://domain.org/content/download/220/1017/file/FormulaireAdhesion.pdf.

Help is welcome,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 24 March 2010 11:13:37 am

Hi,
There is something really strange:
the PDF files are stored in:
/var/xxxxx/storage/original/application/
If the name of the file is «a2efae4481f40222442e90838a59be13» I can download it with this link:
http://domain.org//var/xxxxx/storage/original/application/a2efae4481f40222442e90838a59be13
but this one:
http://domain.org/var/xxxxx/storage/original/application/a2efae4481f40222442e90838a59be13
returns a «Module not found»
The difference between the 2 links is the double slash after domain.org

There no messages in the log files.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 24 March 2010 7:09:14 pm

Hi,

The problem comes from this setting:

[SiteAccessSettings]
ForceVirtualHost=true

If I disable ForceVirtualHost, then the download of the PDF files works fine.
Someone has an idea about the relation between this setting and PDF handling ?
If I want that users can download PDF files, I have to remove the .pdf prefix of the file (before uploading it from my local machine).

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Thursday 25 March 2010 3:50:44 am

Finally, in order that the PDF files can be downloaded, I need to put 3 slashes after domain.org.
I really don't understand what happens :-(

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Thursday 25 March 2010 5:27:34 am

The problem came from the .htaccess configuration.

Now, all wroks fine.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Thursday 25 March 2010 7:26:02 am

Great news that it works now.
And i can see you used the "mark as solved" feature, great !

Cheers Pascal,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

eZ debug

Timing: Jan 18 2025 05:06:41
Script start
Timing: Jan 18 2025 05:06:41
Module start 'content'
Timing: Jan 18 2025 05:06:41
Module end 'content'
Timing: Jan 18 2025 05:06:42
Script end

Main resources:

Total runtime0.9750 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 587.7109180.8359
Module start 'content' 0.00950.7894 768.5469574.8828
Module end 'content' 0.79890.1760 1,343.4297337.4063
Script end 0.9749  1,680.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4043210.0002
Check MTime0.00160.1615210.0001
Mysql Total
Database connection0.00100.098910.0010
Mysqli_queries0.891591.44212030.0044
Looping result0.00190.19782010.0000
Template Total0.940596.520.4702
Template load0.00200.205120.0010
Template processing0.938596.254520.4692
Template load and register function0.00020.017710.0002
states
state_id_array0.00110.115310.0011
state_identifier_array0.00110.117820.0006
Override
Cache load0.00170.1752430.0000
Sytem overhead
Fetch class attribute can translate value0.00130.134130.0004
Fetch class attribute name0.00150.150070.0002
XML
Image XML parsing0.00100.099130.0003
class_abstraction
Instantiating content class attribute0.00000.001470.0000
General
dbfile0.00610.6226270.0002
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs