Forums / Setup & design / Problems showing image in ez 4 alpha 1

Problems showing image in ez 4 alpha 1

Author Message

Ovanes Markarian

Saturday 20 October 2007 10:05:48 am

Hello,

I am pretty new to ezPublish. Just got the alpha 1 release which works with PHP 5. Setup etc went fine and I am even able to publish content.

Created my first article. Opened it in the admin interface uploaded an image to this article as a sub item of the article. Use the command in the template for the article to show an image:

{attribute_view_gui attribute=$node.object.data_map.thumbnail}

Nothing is shown. Even if I use a default template no image appear. Is it a bug in ez 4 alpha 1 or do I do smth wrong?

One more addition: Enabling the debug information produces the following warning:

Warning: eZTemplate:attribute_view_gui  	Oct 15 2007 00:19:46

None of the templates design:content/datatype/view/.tpl, design:content/datatype/view/.tpl could be found

I also let ezPublish print out properties of the image object.

using the property:
{$node.data_map.image.content.data_map.image.content.original.url}
prints me the correct image url.

I also tried to use the following gui command to show the image without luck

	{attribute_view_gui attribute=$node.data_map.image.content.data_map.image.content}

Ovanes Markarian

Sunday 21 October 2007 5:43:20 am

I also sometimes see the error in the debug output stating:

Warning: eZImageShellHandler::convert  	Oct 20 2007 19:59:39

Failed executing: ""C:\WINNT\system32\convert.exe" "-geometry" "600x600>" "var/kw_site/storage/images/article-name/kwdemo/230-2-eng-US/KWDemo.png" "PNG:var/kw_site/storage/images/article-name/kwdemo/230-2-eng-US/KWDemo_reference.png"", Error code: 4

My setup.ini has the following section:

[imagemagick_program]
unix_Executable=convert
unix_SearchPaths=/bin;/sbin;/usr/bin;/usr/sbin;/usr/local/bin;/usr/local/sbin
unix_ExcludePaths=
win32_Executable=convertim.exe;convert.exe
win32_SearchPaths=
win32_ExcludePaths=convert.exe@Program Files/ImageMagick-6.3.6-Q16

and I am a little confused why ezPublish tries to run the app from windows system directory.

Any help appreciated.

André R.

Monday 22 October 2007 12:14:55 am

Example from ezwebin:

            {if $node.data_map.image.has_content}
                <div class="attribute-image">
                    {attribute_view_gui attribute=$node.data_map.image image_class=medium}
                    {if $node.data_map.caption.has_content}
                    <div class="caption">
                        {attribute_view_gui attribute=$node.data_map.caption}
                    </div>
                    {/if}
                </div>
            {/if}

As for imagemagic, tak a look in override/image.ini and fix the values there.
On linux it should contain something like:

<?php /* #?ini charset="utf-8"?

[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin
Executable=convert
*/ ?>

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 31 2025 04:13:19
Script start
Timing: Jan 31 2025 04:13:19
Module start 'content'
Timing: Jan 31 2025 04:13:19
Module end 'content'
Timing: Jan 31 2025 04:13:20
Script end

Main resources:

Total runtime0.2345 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469180.8281
Module start 'content' 0.00580.0059 768.875098.0234
Module end 'content' 0.01170.2228 866.8984527.3281
Script end 0.2345  1,394.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.2835200.0002
Check MTime0.00120.5212200.0001
Mysql Total
Database connection0.00070.307010.0007
Mysqli_queries0.188980.54291410.0013
Looping result0.00110.45701390.0000
Template Total0.222594.910.2225
Template load0.00070.307010.0007
Template processing0.221794.546110.2217
Override
Cache load0.00050.218310.0005
Sytem overhead
Fetch class attribute can translate value0.00070.286210.0007
XML
Image XML parsing0.00020.095610.0002
General
dbfile0.01044.4412200.0005
String conversion0.00000.002230.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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