Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
article_image won't work
Hi,
Since I moved my site to a new server, article_image doesn’t seem to work anymore.
I have the following tags in forms:
Form 1: <txp:article_image class="article_image" thumbnail="1" />
Form 2: <txp:article_image class="article_image" />
— For form 1, I get the regular image, not the thumbnail.
— Neither form makes use of class “article image”.
I read the FAQs and tried everything that was described.
I have tried turning plug-ins off. No improvements.
I also set Textpattern to testing mode, but there is no Tag Trace in the source…
PHP version: 4.4.4 (on a gridserver)
Textpattern: 4.0.4
Style: .article_image
{
float: left;
margin: 0 10px 0 10px;
border: solid #252525 1px;
}
It is extraordinarily frustrating. I hope somebody can help me.
Last edited by Kjeld (2007-02-08 13:30:13)
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#2 2007-02-09 05:04:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: article_image won't work
Tag trace only shows up in debugging mode.
Offline
Re: article_image won't work
Yes, I discovered that. Thanks, Mary. It didn’t really help me much, but I must admit that I don’t know what I am looking for.
IMPORTANT: This FAQ states that Tag Trace also works in Testing Mode: http://textpattern.com/faq/165/diagnosing-template-problems So I figured there was something wrong with my Testing Mode. I suggest to have the FAQ adjusted.
Any suggestions for fixing the problem with the article_image tag?
Last edited by Kjeld (2007-02-09 05:16:24)
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#4 2007-02-09 06:33:51
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: article_image won't work
This FAQ states that Tag Trace also works in Testing Mode…
Thanks, I’ll correct that right away.
It didn’t really help me much, but I must admit that I don’t know what I am looking for. Any suggestions for fixing the problem with the article_image tag?
You will need to post it here.
Offline
Re: article_image won't work
Thanks, Mary. Here it is. It is quite a jumble…
<!-- Runtime: 0.3909 -->
<!-- Query time: 0.02393 -->
<!-- Queries: 40 -->
<!-- Memory: 2347Kb, <txp:chh_keywords_list field="style" section="?" /> -->
<!-- txp tag trace:
[SQL (0.000296): select name from `newstxp_lang` where lang='en-us' limit 1]
[SQL (0.000798): select name, data from `newstxp_lang` where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.002016): select name, code from `newstxp_plugin` where status='1']
[SQL (0.000904): select name,code from `newstxp_plugin` where status='1' AND name='sgb_error_documents']
[SQL (0.000987): select name from `newstxp_section` where `name` like 'fashion-people' limit 1]
[SQL (0.000554): select * from `newstxp_section` where name = 'fashion-people' limit 1]
[SQL (0.000292): select user_html from `newstxp_page` where name='directory']
[Page: directory]
<txp:output_form form="header" />
[SQL (0.001614): select form from `newstxp_form` where `name` = 'header' limit 1]
<txp:css/>
<txp:page_title/>
<txp:section/>
<txp:output_form form="logo" />
[SQL (0.000627): select form from `newstxp_form` where `name` = 'logo' limit 1]
<txp:image id="4" />
[SQL (0.000521): select * from `newstxp_image` where id='4' limit 1]
<txp:site_url/>
<txp:image id="56" style="margin-bottom:5px;" />
[SQL (0.000392): select * from `newstxp_image` where id='56' limit 1]
<txp:site_url/>
<txp:image id="55" />
[SQL (0.000684): select * from `newstxp_image` where id='55' limit 1]
<txp:site_slogan/>
<txp:output_form form="top_menu" />
[SQL (0.000504): select form from `newstxp_form` where `name` = 'top_menu' limit 1]
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:image id="3" />
[SQL (0.000425): select * from `newstxp_image` where id='3' limit 1]
<txp:site_url/>
<txp:if_section name="fashion-brands,fashion-schools,fashion-mags,fashion-people,fashion-links">
[<txp:if_section name="fashion-brands,fashion-schools,fashion-mags,fashion-people,fashion-links">: true]
<txp:site_url/>
</txp:if_section>
<txp:section title="1" link="1" />
[SQL (0.000564): select title from `newstxp_section` where name='fashion-people']
<txp:if_section name="reports">
[<txp:if_section name="reports">: false]
</txp:if_section>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:output_form form="search-input" />
[SQL (0.000540): select form from `newstxp_form` where `name` = 'search-input' limit 1]
<txp:site_url/>
<txp:section/>
<txp:section title="1" />
<txp:section title="1" />
<txp:image id="6" />
[SQL (0.000461): select * from `newstxp_image` where id='6' limit 1]
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:output_form form="give_away" />
[SQL (0.000420): select form from `newstxp_form` where `name` = 'give_away' limit 1]
<txp:image id="24" />
[SQL (0.000465): select * from `newstxp_image` where id='24' limit 1]
<txp:image id="40" />
[SQL (0.000523): select * from `newstxp_image` where id='40' limit 1]
<txp:output_form form="banners" />
[SQL (0.001628): select form from `newstxp_form` where `name` = 'banners' limit 1]
<txp:image id="8" />
[SQL (0.000364): select * from `newstxp_image` where id='8' limit 1]
<txp:image id="9" />
[SQL (0.000469): select * from `newstxp_image` where id='9' limit 1]
<txp:image id="10" />
[SQL (0.000391): select * from `newstxp_image` where id='10' limit 1]
<txp:image id="11" />
[SQL (0.000590): select * from `newstxp_image` where id='11' limit 1]
<txp:asv_amazon asin="0714845108" locale="us">
</txp:asv_amazon>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_section name="fashion-brands,fashion-schools,fashion-mags,fashion-people">
[<txp:if_section name="fashion-brands,fashion-schools,fashion-mags,fashion-people">: true]
<txp:output_form form="category_box" />
[SQL (0.000364): select form from `newstxp_form` where `name` = 'category_box' limit 1]
<txp:section title="1" />
<txp:category_list label="field: " labeltag="strong" this_section="1" break=", " categories="accessories,apparel,bags,beauty,headwear,jewelry,shoes" />
[SQL (0.000283): select name,title from `newstxp_category` where name != 'default' and type='article' order by name]
<txp:chh_keywords_list_all field="type" label="type: " labeltag="strong" section="?" break=", " />
[SQL (0.000591): select custom_1 from `newstextpattern` where Posted < now() AND Status >= 4 AND ( (Section = 'fashion-people') ) AND custom_1 != '' ORDER BY Posted DESC]
<txp:if_section name="fashion-brands,fashion-people">
[<txp:if_section name="fashion-brands,fashion-people">: true]
</txp:if_section>
<txp:chh_keywords_list_all field="style" label="style: " labeltag="strong" section="?" break=", " />
[SQL (0.000497): select custom_2 from `newstextpattern` where Posted < now() AND Status >= 4 AND ( (Section = 'fashion-people') ) AND custom_2 != '' ORDER BY Posted DESC]
<txp:if_section name="fashion-brands,fashion-people,fashion-mags">
[<txp:if_section name="fashion-brands,fashion-people,fashion-mags">: true]
</txp:if_section>
<txp:chh_keywords_list_all field="market" label="market: " labeltag="strong" section="?" break=", " />
[SQL (0.000398): select custom_3 from `newstextpattern` where Posted < now() AND Status >= 4 AND ( (Section = 'fashion-people') ) AND custom_3 != '' ORDER BY Posted DESC]
<txp:if_section name="fashion-brands,fashion-people,fashion-mags">
[<txp:if_section name="fashion-brands,fashion-people,fashion-mags">: true]
</txp:if_section>
<txp:chh_keywords_list_all field="region" label="region: " labeltag="strong" section="?" break=", " />
[SQL (0.000419): select custom_4 from `newstextpattern` where Posted < now() AND Status >= 4 AND ( (Section = 'fashion-people') ) AND custom_4 != '' ORDER BY Posted DESC]
<txp:if_section name="fashion-mags">
[<txp:if_section name="fashion-mags">: false]
</txp:if_section>
<txp:chh_keywords_list_all field="frequency" label="frequency: " labeltag="strong" section="?" break=", " />
[SQL (0.000477): select custom_5 from `newstextpattern` where Posted < now() AND Status >= 4 AND ( (Section = 'fashion-people') ) AND custom_5 != '' ORDER BY Posted DESC]
</txp:if_section>
<txp:chh_if_keywords>
[<txp:chh_if_keywords>: false]
<txp:if_section name="directory">
[<txp:if_section name="directory">: false]
<txp:article limit=10 searchall=0 pgonly=1 />
[SQL (0.000384): select count(*) from `newstextpattern` where 1 and Status='4' and Posted < now() and Section = 'fashion-people']
<txp:if_search>
[<txp:if_search>: false]
</txp:if_search>
<txp:if_category>
[<txp:if_category>: false]
</txp:if_category>
<txp:search_result_count text="hits" />
</txp:if_section>
<txp:if_section name="directory">
[<txp:if_section name="directory">: false]
<txp:article sort="Title" limit=10 searchall=0 form="default-directory" />
[SQL (0.000347): select count(*) from `newstextpattern` where 1 and Status='4' and Posted < now() and Section = 'fashion-people']
[SQL (0.000950): select *, unix_timestamp(Posted) as uPosted from `newstextpattern` where 1 and Status='4' and Posted < now() and Section = 'fashion-people' order by Posted desc limit 0, 10]
[SQL (0.000321): select Form from `newstxp_form` where `name` = 'default-directory' limit 1]
[Form: default-directory]
[article 9]
<txp:permlink>
<txp:article_image class="article_image" thumbnail="1" />
[SQL (0.000364): select * from `newstxp_image` where id='43']
<txp:title/>
</txp:permlink>
<txp:excerpt/>
<txp:site_url/>
<txp:section/>
<txp:category2/>
<txp:category2/>
<txp:site_url/>
<txp:section/>
<txp:category1/>
<txp:category1/>
<txp:chh_keywords_list field="type" section="?" />
<txp:chh_keywords_list field="style" section="?" />
</txp:if_section>
</txp:chh_if_keywords>
<txp:ob1_googlenav ulid="pagination" firsttext="first" previoustext="«" nexttext="»" lasttext="last" />
</txp:if_article_list>
<txp:output_form form="google_ads" />
[SQL (0.000219): select form from `newstxp_form` where `name` = 'google_ads' limit 1]
<txp:output_form form="footer" />
[SQL (0.000222): select form from `newstxp_form` where `name` = 'footer' limit 1]
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:site_url/>
<txp:php>
</txp:php>
[ --- secondpass --- ]
-->
Last edited by Mary (2007-02-10 20:37:28)
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#6 2007-02-10 21:06:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: article_image won't work
Okay, and what is the XHTML output (of the article image) you get?
I’ve been trying to replicate the problem and I can’t seem to.
Offline
#7 2007-02-10 23:11:03
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: article_image won't work
My first guess would be that this is something trivial, like the image doesn’t have a thumbnail.
Alex
Offline
Re: article_image won't work
It does have a thumbnail, and it did work before. I hope it is trivial, though!
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
Re: article_image won't work
I had the same problem when i filled the article image with the image absolute path. I changed it to just the image id, and it showed ok.
—-
frq.
http://novedesign.com.br
Offline
#10 2007-02-13 19:46:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: article_image won't work
Offline
Pages: 1