This problem is frustrating and it seems to appear and go away at will. To start with, my site is a NFL Confidence Pool site. After your game and point choices are made, an email is sent with the choices to the registered user who made them. The form and email were working and then I noticed the email wasn't being sent. Also when I turned on the DEBUG function to further analyze the issue, the DEBUG info also didn't show. On the General tab, I noticed the CheckToken option was set to ON. When I set this option to OFF the emails and DEBUG worked fine and I thought the problem was solved. But the next day the same problem re-occurred (after at least 1 earlier successful email creation). This time the checkToken was not changed (i.e. it remained OFF from the earlier setting). Any ideas why my emails are not working and the DEBUG information doesn't appear?
Hi jlslaughter ,
If you are getting the Security Token error then you should see an error message when the form is submitted. If you aren't seeing this then there may be some other problem here.
There is a code hack posted here by Fredrik (nml375) that removes a further possible problem with the security check code.
Bob
If you are getting the Security Token error then you should see an error message when the form is submitted. If you aren't seeing this then there may be some other problem here.
There is a code hack posted here by Fredrik (nml375) that removes a further possible problem with the security check code.
Bob
Thanks for your reply but I don't see the security code you referenced. Can you paste it in this post? Also for more clarification, my main issues are twofold: 1. My emails are not being sent 2. When I turn on the DEBUG option to see what values the form is generating/sending, I only see the dummy e-mail with the from field correctly pulled from the email setup and an empty to field (it should be filled in with the id of the registered user who filled out the form). The DEBUG option doesn't show the email body (as specified from the email template. Nor do I see the form field values and $_POST array values I would expect to see from a DEBUG session. Now, I don't know if the checkToken option has any relevance in this scenario or not. I just mentioned it because I toggled it on and my problem arose and when I toggled it off my problem still occurs. Any further help you can provide would be appreciated...
Hi jslaughter,
It sounds like the Check Option may be a red herring - most likely your Email setup and or template are broken somehow.
The blank Email template may be the result of a PHP error breaking the page before ChronoForms gets that far. If you temporarily set Error REporting to Maximum in the Site Global Configuration you may see a more useful error message.
Bob
It sounds like the Check Option may be a red herring - most likely your Email setup and or template are broken somehow.
(it should be filled in with the id of the registered user who filled out the form)
How are you doing this?The blank Email template may be the result of a PHP error breaking the page before ChronoForms gets that far. If you temporarily set Error REporting to Maximum in the Site Global Configuration you may see a more useful error message.
Bob
To answer your question, concerning how I accomplish the following:
"it should be filled in with the id of the registered user who filled out the form"
I used one of the example scripts from the book: ChronoForms 1.3 for Joomla! Site Cookbook (which is really quite good by the way). I obtained the user's name via an instance of the user object:
And Lastly, I updated my Global Configuration to show Max Error Reporting and no additional error messages appeared. I'm open to any further suggestions...thanks.
"it should be filled in with the id of the registered user who filled out the form"
I used one of the example scripts from the book: ChronoForms 1.3 for Joomla! Site Cookbook (which is really quite good by the way). I obtained the user's name via an instance of the user object:
<?php
if ( !$mainframe->isSite() ) { return; }
// get the Joomla User object
$user =& JFactory::getUser();
// if there isn't a user_id found end the form display
if ( $user->id == 0) {
echo "<div style='border:2px solid red; padding:6px;' >
<strong>Before making your picks, you must first login using the Login Form on the left.</strong></div>";
return;
}
?>
<h2>Make Your Week 6 Picks</h2>
<p> </p>
<table width="90%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="38%"> </td>
<td width="11%"> </td>
<td width="29%"><input type='hidden' name='nameTxt'
value='<?php echo $user->name; ?>' /></td>
<td width="22%"><input type='hidden' name='emailTxt'
value='<?php echo $user->email; ?>' /></td>
</tr>
...
And Lastly, I updated my Global Configuration to show Max Error Reporting and no additional error messages appeared. I'm open to any further suggestions...thanks.
Hi jlsalughter,
The code snippet seems fine - I pasted it into a new form and everything works OK.
Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
The code snippet seems fine - I pasted it into a new form and everything works OK.
Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
Thank you again for taking a closer look at the form. I've attached the backup here as a zipped file.[attachment=0]nfl_pool_picks6.zip[/attachment]
Hi jlslaughter,
Sad to say but it appears to work pefectly here - you should receive my test email.
Not sure what else to suggest . . .
By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.
Bob
Sad to say but it appears to work pefectly here - you should receive my test email.
Not sure what else to suggest . . .
By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.
Bob
Hmmm. That's interesting because my error still seems to be occurring. I did notice one thing, in the General tab when I set Email the Results option to No, low and behold my DEBUG messages appeared??? Could it be something in my Joomla Global Configuration, like Mail Server, (that I have set to PHP Mail Function)? I've emailed you my Super Admin id/pass you requested. Thank You for your continued research into this...
Hi jlslaughter,
I can't find any email in my inbox, please will you re-send or put it in a PM here.
Bob
I can't find any email in my inbox, please will you re-send or put it in a PM here.
Bob
Re-sent info as an email and pm...
Hi jlslaughter,
I logged into your test site and again all appears to be OK. The Debug info shows up and shows an email as having been sent.
There may be a problem when you are testing logged in as admin as the To & From Email addresses are the same and this can cause emails to be dropped.
Bob
I logged into your test site and again all appears to be OK. The Debug info shows up and shows an email as having been sent.
There may be a problem when you are testing logged in as admin as the To & From Email addresses are the same and this can cause emails to be dropped.
Bob
This topic is locked and no more replies can be posted.
