Forums

Server error for empty fields

mojohand 13 May, 2009
Hi there,
I have created a form see here please http://www.ravaluk.com/index.php?option=com_content&view=article&id=14&Itemid=16
If i fill all the form fields it works fine, "thank you" page comes up notification emails are sent to the main person and to the guests as well. Date recorded in the database.

However if I invite only 1 guest and leave the other field empty I get a server misconfiguration error BUT all the emails are sent correctly, database still works perfect.

The server people say that "As per the error logs, you need to provide the email address in the Guest fields too."
I didn't set the guest emails to be mandatory that is for sure.

I have set 4 emails to send 1 for the main registering person 3 notification email to the guest that they have been invited. The email in Dynamic FromEmail and it pulls the email form the guest filed.


Any hint how to solve this please...
GreyHead 13 May, 2009
Hi mojohand,

ChronoForms assumes tha tif you set up an email you will provide the correct data to send it. If the To or From Email fields are empty you aren't providing the correct data.

I've never seen this use before, I guess that you'll need two write some custom code to either send the emails or to suppress the unwanted ones.

One workaround might be to set default values for the email fields of say [email]user@example.com[/email] that way the emails will be sent but won't go anywhere.

Bob
mojohand 13 May, 2009
Hi Bob,

Thanks for the quick reply. I probably will go with the default data. The only funny thing is that I used the same form a month ago and it was working perfectly fine. Nothing has been changed on the server and nothing to the form. Have no clue:):)
mojohand 13 May, 2009
trouble continues:)
if i set an [email]example@domain.com[/email] as default value. In the text box i receive the following stuff
<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy79813 = 'sample' + '@'; addy79813 = addy79813 + 'sample' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + ':' + addy79813 + '\'>' ); document.write( addy79813 ); document.write( '<\/a>' ); //-->\n </script> <script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>

I think I have to go with the custom coding. And set the system to NOT to ask for valid data.

Any ideas where that could be?
GreyHead 13 May, 2009
Hi mojohand,

Hard to tell, it could be that your isp has changed some setting on the mail service, or your site is reporting errors differently :-(

Bob
GreyHead 13 May, 2009
Hi mojohand,

That 'junk' is the Joomla email cloaking plugin, turn it off or switch the order round with the ChronoForms plugin.

Bob
mojohand 13 May, 2009
Hi Bob,

What can I say? Genius. I turned off the Joomla email clocking plugin and the form work perfectly.
Thanks mate indeed, you just saved my life:):):)
Max_admin 14 May, 2009
Hi mojohand,

an upgrade to the latest version fixes this!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mojohand 18 May, 2009
Thanks Max, just replied for the other topic as well that it works now perfectly with the upgrade...
Max_admin 18 May, 2009
Thanks for reporting back!🙂

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.