Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-19 15:28:07

aj-lev
New Member
Registered: 2006-06-16
Posts: 2

Duplicate output of code

I’m having trouble with duplicate output of code. I’m getting no error messages and everything’s working except for the doubling, for example:

1. I’m using a simple input form that’s an included PHP file. It sends duplicate emails on form submission.
2. I’m using “zem_contact_reborn” and the error messages display twice (although only one email is sent).
3. I’m using “zem_link” and it prints the last part of the link twice.

Does anyone know why this might be happening?

Thanks.

Offline

#2 2006-06-19 21:13:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Duplicate output of code

Sorry I can only answer #3: that was an issue with zem_link that I think was fixed in wet’s adaptation.

Offline

#3 2006-06-19 21:20:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Duplicate output of code

Offline

#4 2006-06-19 21:38:49

aj-lev
New Member
Registered: 2006-06-16
Posts: 2

Re: Duplicate output of code

Thanks, that fixed issue #3 (zem_link problem).

Here’s my tag trace for issue #1 (duplicate emails for included PHP form):

<code>
<!— Runtime: 0.5769 —>
<!— Query time: 0.027879 —>
<!— Queries: 27 —>
<!— Memory: 1667Kb, <txp:php>echo date(“Y”);</txp:php> —>
<!— txp tag trace:
[SQL (0.000386): select name from `uactxp_lang` where lang=‘en-us’ limit 1]
[SQL (0.002528): select name, data from `uactxp_lang` where lang=‘en-us’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.003545): select name, code from `uactxp_plugin` where status=‘1’]
[SQL (0.000871): select ID,Section from `uactextpattern` where url_title like ‘one-book-proposals’ AND Section=‘one-book’ limit 1]
[SQL (0.000768): select * from `uactxp_section` where name = ‘one-book’ limit 1]
[SQL (0.000795): select Posted, AuthorID, Keywords from `uactextpattern` where ID=14]
[SQL (0.001319): select ID, Title, url_title, unix_timestamp(Posted) as uposted from uactextpattern where Posted > ’2006-05-22 15:52:00’ and Section = ‘one-book’ and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.000988): select ID, Title, url_title, unix_timestamp(Posted) as uposted from uactextpattern where Posted < ’2006-05-22 15:52:00’ and Section = ‘one-book’ and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000680): select RealName from `uactxp_users` where `name` = ‘leverenz’ limit 1]
[SQL (0.000674): select host from `uactxp_log` where ip=‘129.107.56.236’ limit 1]
[SQL (0.000706): insert into `uactxp_log` set `time`=now(),page=’/testzone/uac/one-book/one-book-proposals’,ip=‘129.107.56.236’,host=‘ns9400-mip.uta.edu’,refer=’‘,status=‘200’,method=‘POST’]
[SQL (0.001128): select user_html from `uactxp_page` where name=‘onebook’]
[Page: onebook]
<txp:css/>
<txp:page_title/> [SQL (0.000448): select Title from `uactextpattern` where ID = 14]
<txp:site_url/>
<txp:category link=“1” title=“1” name=“about-one-book” section=“one-book” /> [SQL (0.000550): select title from `uactxp_category` where name=‘about-one-book’ and type=‘article’]
<txp:category link=“1” title=“1” name=“one-book-resources” section=“one-book” /> [SQL (0.000543): select title from `uactxp_category` where name=‘one-book-resources’ and type=‘article’]
<txp:article_custom form=“menu” id=“13” /> [SQL (0.001868): select *, unix_timestamp(Posted) as uPosted from `uactextpattern` where 1 and Status >= ‘4’ and Posted < now() and ID = ‘13’ order by Posted desc limit 0, 10] [SQL (0.000547): select Form from `uactxp_form` where `name` = ‘menu’ limit 1] [Form: menu] [article 13] <txp:permlink> <txp:title/> </txp:permlink>
<txp:article_custom form=“menu” id=“14” /> [SQL (0.001810): select *, unix_timestamp(Posted) as uPosted from `uactextpattern` where 1 and Status >= ‘4’ and Posted < now() and ID = ‘14’ order by Posted desc limit 0, 10] [Form: menu] [article 14] <txp:php> [SQL (0.000533): select privs from `uactxp_users` where `name`=‘leverenz’] </txp:php> <txp:permlink> <txp:title/> </txp:permlink>
<txp:image id=“5” /> [SQL (0.000947): select * from `uactxp_image` where id=‘5’ limit 1]
<txp:site_url/>
<txp:section name=“onebook-home” />
<txp:image id=“2” /> [SQL (0.000900): select * from `uactxp_image` where id=‘2’ limit 1]
<txp:if_category> [<txp:if_category>: false]
</txp:if_category>
<txp:article/> [SQL (0.001336): select *, unix_timestamp(Posted) as uPosted from `uactextpattern` where ID=‘14’ and Status in (4,5) limit 1] [article 14] <txp:php> [SQL (0.000398): select privs from `uactxp_users` where `name`=‘leverenz’] </txp:php> [SQL (0.000729): select Form from `uactxp_form` where `name` = ‘default’ limit 1] [Form: default] <txp:permlink> <txp:title/> </txp:permlink> <txp:if_individual_article> [<txp:if_individual_article>: true] <txp:body/> </txp:if_individual_article>
<txp:related_articles label=“Related Items” limit=“5” /> [SQL (0.000737): select Category1,Category2 from `uactextpattern` where ID=‘14’ limit 1]
<txp:output_form form=“studentsuccess_footer” /> [SQL (0.000840): select form from `uactxp_form` where `name` = ‘studentsuccess_footer’ limit 1] <txp:php> </txp:php>
[ —- secondpass —- ] —>
</code>

Offline

#5 2006-06-24 02:13:48

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Duplicate output of code

aj-lev wrote:

I’m having trouble with duplicate output of code. snip … I’m using “zem_contact_reborn” and the error messages display twice (although only one email is sent).

Check out this post and the screenshots.

Does anyone know why this might be happening? Thanks.

Seems like there is still a bug in zem_contact_reborn v.17 that does this with the ‘show error’ attribute. If you are using that attribute then that might be the reason.


Steve

Offline

Board footer

Powered by FluxBB