Skip to content

Instantly share code, notes, and snippets.

@jannisg
Created October 19, 2010 21:08
Show Gist options
  • Save jannisg/635131 to your computer and use it in GitHub Desktop.
Save jannisg/635131 to your computer and use it in GitHub Desktop.
ed_imageresizer not returning image tag/data
// note that {embed:channel} is working and is not causing this issue
<header>
<h1>
{embed:title}
</h1>
</header>
{exp:zeebra}
{exp:channel:entries
channel="{embed:channel}"
disable="category_fields|member_data|trackbacks"
dynamic="no"
}
{if no_results}{redirect="404"}{/if}
<article class="{zeebra}">
<h1>{title}</h1>
<time datetime="{entry_date format='%Y-%m-%d'}" pubdate>/{entry_date format="%F %Y"}</time>
{if gallery}
{if "{gallery:total_rows}" < 2}
<div class="image">
{gallery}
{exp:ed_imageresizer
image="{image}" // path is inserted properly but is not outputted
maxWidth="490"
maxHeight="327"
cropratio="3:2"
alt=""
}
{/gallery}
</div>
{if:else}
<div class="slideshow">
<div class="image-group">
{gallery}
{exp:ed_imageresizer
image="{image}"
maxWidth="490"
maxHeight="327"
cropratio="3:2"
alt=""
}
{/gallery}
</div>
<nav class="slider-nav">
<a href="#" class="prev">«</a>
<span class="image-nav">
{!-- dynamically populated by jq.cycle --}
</span>
<a href="#" class="next">»</a>
</nav>
</div>
{/if}
{if:else}
<hr class="big" />
{/if}
<p>
{exp:trunchtml chars="250"}
{copy}
{/exp:trunchtml}
</p>
<a href="{title_permalink={embed:channel}}" class="more">Read more</a>
</article>
{paginate}
{if {total_pages} > 1}
<nav class="pagination">
<div>Page {current_page} of {total_pages} pages {pagination_links}</div>
</nav>
{/if}
{/paginate}
{/exp:channel:entries}
{/exp:zeebra}
TEMPLATE DEBUGGING
(0.000016) - Begin Template Processing -
(0.000626) URI:
(0.000635) Path.php Template: /
(0.000643) Retrieving Template
(0.000650) Parsing Template URI
(0.000663) Retrieving Template from Database: /index
(0.001223) Template Found
(0.001714) Retrieving Template from File
(0.013042) Template Type: webpage
(0.013071) Parsing Site Variables
(0.013109) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.013119) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.013214) Parse Date Format String Constants
(0.013227) Parse Current Time Variables
(0.013246) Parsing Segment, Embed, and Global Vars Conditionals
(0.118575) - Beginning Tag Processing -
(0.118598) - End Tag Processing -
(0.118644) - Processing Sub Templates (Depth: 1) -
(0.118668) List of Embeds: news/list
(0.118738) Processing Sub Template: news/list
(0.118755) Retrieving Template
(0.118772) Retrieving Template from Database: news/list
(0.119490) Template Found
(0.119591) Retrieving Template from File
(0.121005) Template Type: webpage
(0.121038) Parsing Site Variables
(0.121078) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.121094) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.121262) Parse Date Format String Constants
(0.121285) Parse Current Time Variables
(0.121321) Parsing Segment, Embed, and Global Vars Conditionals
(0.121359) - Beginning Tag Processing -
(0.121373) - End Tag Processing -
(0.121430) - Processing Sub Templates (Depth: 2) -
(0.121451) List of Embeds: includes/head title=News,templates/main_feed title=News channel=news,templates/sidebar_feed title=Articles channel=article,includes/foot
(0.121534) Processing Sub Template: includes/head
(0.121551) Retrieving Template
(0.121578) Retrieving Template from Database: includes/head
(0.122195) Template Found
(0.122280) Retrieving Template from File
(0.122764) Template Type: webpage
(0.122812) Parsing Site Variables
(0.122849) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.122864) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.123056) Embed Variables (Keys): title
(0.123070) Embed Variables (Values): News
(0.123174) Parse Date Format String Constants
(0.123205) Parse Current Time Variables
(0.123246) Parsing Segment, Embed, and Global Vars Conditionals
(0.123935) - Beginning Tag Processing -
(0.123952) - End Tag Processing -
(0.124000) - Processing Sub Templates (Depth: 3) -
(0.124016) List of Embeds: search/bar,includes/nav
(0.124065) Processing Sub Template: search/bar
(0.124079) Retrieving Template
(0.124092) Retrieving Template from Database: search/bar
(0.124593) Template Found
(0.124664) Retrieving Template from File
(0.138065) Template Type: webpage
(0.138102) Parsing Site Variables
(0.138143) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.138160) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.138334) Parse Date Format String Constants
(0.138357) Parse Current Time Variables
(0.138389) Parsing Segment, Embed, and Global Vars Conditionals
(0.138433) - Beginning Tag Processing -
(0.138453) Parsing Tags in Template
(0.138501) Tag: {exp:search:simple_form results="20" search_in="entries" status="open" where="all" result_page="search/results" no_result_page="search/no-results" }
(0.138628) Closing Tag Found
(0.138682) Processing Tags
(0.138733) Module Tag: Search/simple_form
(0.138751) Including Files for Plugins and Modules
(0.152811) Files for Plugins and Modules All Included
(0.153387) Beginning Final Tag Data Processing
(0.153409) Calling Class/Method: Search/simple_form
(0.153524) -> Class Called: Search
(0.153558) -> Method Called: simple_form
(0.162643) -> Data Returned
(0.162689) - End Tag Processing -
(0.162783) Processing Sub Template: includes/nav
(0.162798) Retrieving Template
(0.162812) Retrieving Template from Database: includes/nav
(0.163410) Template Found
(0.163486) Retrieving Template from File
(0.163904) Template Type: webpage
(0.163946) Parsing Site Variables
(0.163977) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.163989) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.164250) Parse Date Format String Constants
(0.164555) Parse Current Time Variables
(0.164620) Parsing Segment, Embed, and Global Vars Conditionals
(0.166068) - Beginning Tag Processing -
(0.166088) Parsing Tags in Template
(0.166111) Tag: {exp:zeebra}
(0.166151) Closing Tag Found
(0.166197) Processing Tags
(0.166227) Plugin Tag: Zeebra/zeebra
(0.166240) Including Files for Plugins and Modules
(0.166670) Files for Plugins and Modules All Included
(0.166682) Beginning Final Tag Data Processing
(0.166696) Calling Class/Method: Zeebra/zeebra
(0.166947) -> Class Called: Zeebra
(0.167181) -> Method Called: zeebra
(0.167232) -> Data Returned
(0.167266) - End Tag Processing -
(0.167287) Processing Advanced Conditionals
(0.168156) Processing Sub Template: templates/main_feed
(0.168170) Retrieving Template
(0.168182) Retrieving Template from Database: templates/main_feed
(0.168748) Template Found
(0.168819) Retrieving Template from File
(0.169224) Template Type: webpage
(0.169256) Parsing Site Variables
(0.169285) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.169298) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.169439) Embed Variables (Keys): title|channel
(0.169449) Embed Variables (Values): News|news
(0.169531) Parse Date Format String Constants
(0.169556) Parse Current Time Variables
(0.169607) Parsing Segment, Embed, and Global Vars Conditionals
(0.170357) - Beginning Tag Processing -
(0.170377) Parsing Tags in Template
(0.170398) Tag: {exp:zeebra}
(0.170437) Closing Tag Found
(0.170492) Processing Tags
(0.170522) Plugin Tag: Zeebra/zeebra
(0.170535) Including Files for Plugins and Modules
(0.170545) Files for Plugins and Modules All Included
(0.170553) Beginning Final Tag Data Processing
(0.170571) Calling Class/Method: Zeebra/zeebra
(0.170587) Nested Plugins in Tag, Parsing Outward First
(0.170699) Tag: {exp:channel:entries channel="news" disable="category_fields|member_data|trackbacks" dynamic="no" }
(0.170771) Closing Tag Found
(0.170834) Module Tag: Channel/entries
(0.170846) Including Files for Plugins and Modules
(0.188430) Files for Plugins and Modules All Included
(0.188949) Beginning Final Tag Data Processing
(0.188965) Calling Class/Method: Channel/entries
(0.189407) -> Class Called: Channel
(0.189470) -> Method Called: entries
(0.210612) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
(0.216776) Calling Extension Class/Method: Pt_field_pack_ext/channel_entries_tagdata
(0.228728) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
(0.231172) Calling Extension Class/Method: Pt_field_pack_ext/channel_entries_tagdata
(0.233592) -> Data Returned
(0.233746) Tag: {exp:ed_imageresizer image="http://dev.supply.net.nz/myProject/files/images/sample_image_3-2.png" maxWidth="490" maxHeight="327" cropratio="3:2" alt="" }
(0.233824) No Closing Tag
(0.233866) Tag: {exp:trunchtml chars="250"}
(0.233906) Closing Tag Found
(0.233954) Tag: {exp:trunchtml chars="250"}
(0.233994) Closing Tag Found
(0.234046) Plugin Tag: Ed_imageresizer/ed_imageresizer
(0.234063) Plugin Tag: Trunchtml/trunchtml
(0.234077) Plugin Tag: Trunchtml/trunchtml
(0.234088) Including Files for Plugins and Modules
(0.235942) Files for Plugins and Modules All Included
(0.235964) Beginning Final Tag Data Processing
(0.235974) Calling Class/Method: Ed_imageresizer/ed_imageresizer
(0.236051) -> Class Called: Ed_imageresizer
(0.236279) -> Method Called: ed_imageresizer
(0.236322) -> Data Returned
(0.236344) Calling Class/Method: Trunchtml/trunchtml
(0.236400) -> Class Called: Trunchtml
(0.236429) -> Method Called: trunchtml
(0.236465) -> Data Returned
(0.236484) Calling Class/Method: Trunchtml/trunchtml
(0.236537) -> Class Called: Trunchtml
(0.236615) -> Method Called: trunchtml
(0.236652) -> Data Returned
(0.236906) -> Class Called: Zeebra
(0.237019) -> Method Called: zeebra
(0.237058) -> Data Returned
(0.237082) - End Tag Processing -
(0.237100) Processing Advanced Conditionals
(0.237696) Processing Sub Template: templates/sidebar_feed
(0.237709) Retrieving Template
(0.237720) Retrieving Template from Database: templates/sidebar_feed
(0.238296) Template Found
(0.238362) Retrieving Template from File
(0.239102) Template Type: webpage
(0.239126) Parsing Site Variables
(0.239154) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.239165) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.239267) Embed Variables (Keys): title|channel
(0.239276) Embed Variables (Values): Articles|article
(0.239331) Parse Date Format String Constants
(0.239348) Parse Current Time Variables
(0.239379) Parsing Segment, Embed, and Global Vars Conditionals
(0.239598) - Beginning Tag Processing -
(0.239614) Parsing Tags in Template
(0.239633) Tag: {exp:zeebra}
(0.239666) Closing Tag Found
(0.239715) Processing Tags
(0.239744) Plugin Tag: Zeebra/zeebra
(0.239754) Including Files for Plugins and Modules
(0.239763) Files for Plugins and Modules All Included
(0.239770) Beginning Final Tag Data Processing
(0.239781) Calling Class/Method: Zeebra/zeebra
(0.239796) Nested Plugins in Tag, Parsing Outward First
(0.239892) Tag: {exp:channel:entries channel="article" disable="category_fields|member_data|trackbacks|pagination" dynamic="no" limit="4" }
(0.239959) Closing Tag Found
(0.240014) Module Tag: Channel/entries
(0.240024) Including Files for Plugins and Modules
(0.240031) Files for Plugins and Modules All Included
(0.240352) Beginning Final Tag Data Processing
(0.240363) Calling Class/Method: Channel/entries
(0.240551) -> Class Called: Channel
(0.240599) -> Method Called: entries
(0.243083) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
(0.243208) Calling Extension Class/Method: Pt_field_pack_ext/channel_entries_tagdata
(0.244684) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
(0.244797) Calling Extension Class/Method: Pt_field_pack_ext/channel_entries_tagdata
(0.245926) -> Data Returned
(0.246080) Tag: {exp:trunchtml chars="100"}
(0.246127) Closing Tag Found
(0.246167) Tag: {exp:trunchtml chars="100"}
(0.246207) Closing Tag Found
(0.246253) Plugin Tag: Trunchtml/trunchtml
(0.246269) Plugin Tag: Trunchtml/trunchtml
(0.246279) Including Files for Plugins and Modules
(0.246287) Files for Plugins and Modules All Included
(0.246301) Beginning Final Tag Data Processing
(0.246311) Calling Class/Method: Trunchtml/trunchtml
(0.246376) -> Class Called: Trunchtml
(0.246454) -> Method Called: trunchtml
(0.246494) -> Data Returned
(0.246512) Calling Class/Method: Trunchtml/trunchtml
(0.246564) -> Class Called: Trunchtml
(0.246590) -> Method Called: trunchtml
(0.246626) -> Data Returned
(0.246830) -> Class Called: Zeebra
(0.246911) -> Method Called: zeebra
(0.246949) -> Data Returned
(0.246972) - End Tag Processing -
(0.247072) Processing Sub Template: includes/foot
(0.247083) Retrieving Template
(0.247093) Retrieving Template from Database: includes/foot
(0.247610) Template Found
(0.247676) Retrieving Template from File
(0.248077) Template Type: webpage
(0.248107) Parsing Site Variables
(0.248133) Snippets (Keys): freelancer_version|copyright|static|site_id|site_label|site_short_name
(0.248144) Snippets (Values): FALSE|Pead PR. Copyright {if {current_time format="%Y"} == "2010"}{current_time format="%Y"}{if:else}2010 &ndash; {current_time format="%Y"}{/if}.|{site_url}static|1|Pead/PR|default_site
(0.248301) Parse Date Format String Constants
(0.248322) Parse Current Time Variables
(0.248345) Parsing Segment, Embed, and Global Vars Conditionals
(0.248384) - Beginning Tag Processing -
(0.248394) - End Tag Processing -
(0.248468) - End Template Processing -
(0.248474) Parse Global Variables
(0.250988) Template Parsing Finished
Memory Usage: 14,270,864 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment