Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1405 2014-02-19 14:24:26
- dana
- New Member
- Registered: 2014-02-19
- Posts: 6
Re: zem_contact_reborn 4.0.3.20
Yes I do, it contains the following (took it from the helpfile):
<txp:php>
global $zem_contact_form;
echo $zem_contact_form['Subject'];
</txp:php>
Offline
#1406 2014-02-19 14:32:39
Re: zem_contact_reborn 4.0.3.20
Hi
Can you trun your website into debug mode (in admin pref) then refresh you website and see at the source at the end you will see all the sql as comments copy/past them here to see what s happening.
Online
#1407 2014-02-19 14:55:56
- dana
- New Member
- Registered: 2014-02-19
- Posts: 6
Re: zem_contact_reborn 4.0.3.20
Here it is (replaced sensitive infp)
<!-- Runtime: 0,0135 -->
<!-- Query time: 0,001640 -->
<!-- Queries: 13 -->
<!-- Memory: 5906Kb, <txp:zem_contact_submit label="Odeslat" /> -->
<!-- txp tag trace:
[SQL (0,00018000602722168): select name, data from tpcz_txp_lang as txp_lang where lang='cs-cz' AND ( event='public' OR event='common')]
[SQL (0,00013303756713867): select name, code, version from tpcz_txp_plugin as txp_plugin where status = 1 AND type IN (0,1,5) order by load_order]
[SQL (7,6055526733398E-5): select name from tpcz_txp_section as txp_section where `name` = 'kontakt' limit 1]
[SQL (7,0095062255859E-5): select page, css from tpcz_txp_section as txp_section where name = 'kontakt' limit 1]
[SQL (0,00043296813964844): select host from tpcz_txp_log as txp_log where ip='myip limit 1]
[SQL (0,00022697448730469): insert into tpcz_txp_log set `time`=now(),page='/kontakt/',ip='myip',host='myhost',refer='',status='200',method='GET']
[SQL (6,9141387939453E-5): select user_html from tpcz_txp_page as txp_page where name='kontakt']
[Stránka: kontakt]
<txp:output_form form="header" />
[SQL (6,7949295043945E-5): select Form from tpcz_txp_form as txp_form where name='header']
[Forma: header]
<txp:lang />
<txp:page_title />
[SQL (6,2227249145508E-5): select title from tpcz_txp_section as txp_section where name='kontakt']
<txp:if_search>
[<txp:if_search>: false]
<txp:if_category>
[<txp:if_category>: false]
<txp:if_author>
[<txp:if_author>: false]
</txp:if_author>
</txp:if_category>
</txp:if_search>
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:rsd />
<txp:if_section name="">
[<txp:if_section name="">: false]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
<txp:section url='1' />
</txp:if_individual_article>
</txp:if_section>
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:if_section name="">
[<txp:if_section name="">: false]
<txp:section />
</txp:if_section>
<txp:link_to_home />
<txp:site_name />
<txp:site_url />
<txp:cbs_navigation_menu sections="default,blog,reference,kdo-jsem,kontakt" titles="Úvod,blog,reference,kdo jsem,kontakt" break="li" />
<txp:output_form form="kontakt" />
[SQL (4,3153762817383E-5): select Form from tpcz_txp_form as txp_form where name='kontakt']
[Forma: kontakt]
<txp:zem_contact to="email@email.com" subject_form="subject">
[SQL (0,00010204315185547): insert into tpcz_txp_discuss_nonce set issue_time = now(), nonce = '46f38a219494a07d99f5748111cd4f17']
<txp:zem_contact_text label="Name" required="1" />
<txp:zem_contact_email label="Email" required="1" />
<txp:zem_contact_select label="Subject" list=",option 1,option 2,option 3,option 4,option 5" required="1" />
<txp:zem_contact_select label="Budget" list=",1,2,3,4" required="1" />
<txp:zem_contact_textarea label="Your message" required="1" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
<txp:site_url />
<txp:output_form form="footer" />
[SQL (7,2002410888672E-5): select Form from tpcz_txp_form as txp_form where name='footer']
[Forma: footer]
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:if_section name="default" >
[<txp:if_section name="default" >: false]
</txp:if_section>
<txp:if_section name="reference" >
[<txp:if_section name="reference" >: false]
</txp:if_section>
[ ~~~ secondpass ~~~ ]
-->
Offline
#1408 2014-02-19 16:04:10
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,311
Re: zem_contact_reborn 4.0.3.20
Hi dana, and welcome to the forum!
I can’t see anything suspicious in the tag trace.
Some steps to take when mail isn’t sent, from notes and from memory:
If you’re testing locally (most likely) try it online.
Try another email address, look in the spam folders of your mail application and your provider’s webmailer.
Is there an entry in “SMTP envelope sender address” in your TXP’s advanced preferences? If not: enter your email address. If so: remove it.
My hosting provider needed an entry for “Standard email address” in their scripts section.
And some forum links to read: here, and here (approach without shell two posts below)
Last edited by uli (2014-02-19 16:05:14)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#1409 2014-02-19 16:23:14
- dana
- New Member
- Registered: 2014-02-19
- Posts: 6
Re: zem_contact_reborn 4.0.3.20
Hi uli, thank you! :)
I had TXP locally only for template making, now I’m testing online.
Checked my spam everywhere, nothing.
SMTP envelope was empty, so I tried to put in my email. Didn’t work either.
I’ve tried this suggestion:
<pre><txp:php>var_dump($_POST);</txp:php></pre>
from one of the threads you linked (thank you!) but it comes up as an empty array, which makes me think the form doesn’t submit at all. :/
EDIT: tried this
<txp:php>mail('you@example.com', '1 2 testing', 'is this thing on?');</txp:php>
and it works, I got the mail to my inbox (not spam).
Last edited by dana (2014-02-19 16:25:59)
Offline
#1410 2014-02-19 19:41:17
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,311
Re: zem_contact_reborn 4.0.3.20
uli wrote #279097:
I can’t see anything suspicious in the tag trace.
Hm, really? I read your first posts again and found no <txp:php>
tags in your tag trace. Discovering this doesn’t make me mad for hope but might give a hint: Could this be the tag trace from a former stage or of a different page?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#1411 2014-02-19 23:23:11
Re: zem_contact_reborn 4.0.3.20
dana wrote #279099:
var_dump($_POST) comes up as an empty array, which makes me think the form doesn’t submit at all. :/
That would be my prognosis too, especially since direct sending via the mail()
function worked.
A few further things you can try:
- Look in your Textpattern Admin->Diagnostics panel for any warnings that might have an impact.
- Check your server for any error_log files that might have been generated as a by-product of the send process.
- Nose around your server configuration / php.ini. I’ve seen it before where something like
suhosin
was enabled on the host and it was trashing POST data (though that thread is specific to long post data streams and yours isn’t exactly gargantuan, it might be worth checking anyway). phpinfo() can be a potential mine of information in these situations. - Set up any bog-standard HTML form with a single
<input name="some-test" />
tag and a submit button on a Page/Form. If you set the<form>
tag withaction=""
so it submits to the same page and stuff the<txp:php>dmp($_POST);</txp:php>
at the top of the same Page/Form, that’ll tell you if your server is stripping POST data somewhere along the line. If that’s fine, it’s likely something with the plugin or its setup so you can go back to basics, with just a single input and see if that gets sent, then build up from there.
Short of that, I’m fresh out of ideas at the moment, sorry.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#1412 2014-02-20 01:33:57
Re: zem_contact_reborn 4.0.3.20
After moving sites from TextDrive to a Gandi VPS recently I found out Textpattern could not send user mails and the contact forms (ZCR) didn’t work either. Turns out I had to install/enable Postfix on the VPS. Probably not related to your problem, but might be helpful to someone else especially now that TXD is going down the drain.
Offline
#1413 2014-02-20 09:20:18
- dana
- New Member
- Registered: 2014-02-19
- Posts: 6
Re: zem_contact_reborn 4.0.3.20
I don’t use TXD nor VPS, I’m starting from scratch. Thanks for the suggestion though, maybe someone else has that problem. :)
Bloke wrote #279114:
- Look in your Textpattern Admin->Diagnostics panel for any warnings that might have an impact.
- Check your server for any error_log files that might have been generated as a by-product of the send process.
- Nose around your server configuration / php.ini. I’ve seen it before where something like
suhosin
was enabled on the host and it was trashing POST data (though that thread is specific to long post data streams and yours isn’t exactly gargantuan, it might be worth checking anyway). phpinfo() can be a potential mine of information in these situations.
I found no warnings except some notice which PHP functions have been turned off on my server. The functions are: escapeshellcmd, proc_close, proc_nice, proc_get_status, proc_terminate, readlink, pfsockopen, openlog, syslog, putenv, pcntl_exec, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, socket_accept, socket_bind, socket_create, socket_create_listen, socket_listen, socket_create_pair
I can attach the whole diagnostic log if needed.
I’ve had no problems with using forms on my website before (was using WebsiteBaker for a long time, then Wordpress). My site has been online for over 4 years.
- Set up any bog-standard HTML form with a single
<input name="some-test" />
tag and a submit button on a Page/Form. If you set the<form>
tag withaction=""
so it submits to the same page and stuff the<txp:php>dmp($_POST);</txp:php>
at the top of the same Page/Form, that’ll tell you if your server is stripping POST data somewhere along the line. If that’s fine, it’s likely something with the plugin or its setup so you can go back to basics, with just a single input and see if that gets sent, then build up from there.
I’ve tried inserting this HTML form into my form:
<pre><txp:php>var_dump($_POST); echo $_POST['text'];</txp:php></pre>
<form action="" method="post">
<input type="text" name="text" />
<input type="submit"/>
</form>
$_POST was still empty. I had a sudden brainwave and decided to scrape my htaccess. That somehow solved it. :D Thank you everyone for your help! :)
Last edited by dana (2014-02-20 12:48:57)
Offline
#1414 2014-03-23 00:25:01
Re: zem_contact_reborn 4.0.3.20
how do we prevent the insertion of html in the Contact Message form? We are starting to get spam via the form
…. texted postive
Offline
#1415 2014-03-23 00:43:43
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: zem_contact_reborn 4.0.3.20
bici wrote #279896:
how do we prevent the insertion of html in the Contact Message form? We are starting to get spam via the form
adi_contact is one option.
Offline
#1416 2014-03-24 01:08:18
Re: zem_contact_reborn 4.0.3.20
…. texted postive
Offline