Forums

Strange error-block on a fresh install of RC4

leave2 20 Apr, 2009
Hey,

I have Chronoforms RC4 running and just created a simple form with 7 text-fields.

I get the form ok - but under the regular form I got a huge error block with:

.'; eval("if(field.getProperty('title')){fMessage_val_validate_email = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Email, { failureMessage: fMessage_val_validate_email } );"); } if(field.hasClass('validate-url')){ var fMessage_val_validate_validate_url = 'Please enter a valid URL.'; eval("if(field.getProperty('title')){fMessage_val_validate_validate_url = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i, failureMessage: fMessage_val_validate_validate_url } );"); } if(field.hasClass('validate-date-au')){ var fMessage_val_validate_date_au = 'Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.'; eval("if(field.getProperty('title')){fMessage_val_validate_date_au = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d/, failureMessage: fMessage_val_validate_date_au } );"); } if(field.hasClass('validate-currency-dollar')){ var fMessage_val_validate_currency_dollar = 'Please enter a valid $ amount. For example $100.00 .'; eval("if(field.getProperty('title')){fMessage_val_validate_currency_dollar = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/, failureMessage: fMessage_val_validate_currency_dollar } );"); } Validate.One_Required = function(elm, paramsObj){ var paramsObj = paramsObj || {}; var message = paramsObj.failureMessage || "Must Choose one"; var ready = false; var elm = paramsObj.elm; var p = elm.parentNode; var options = p.getElementsByTagName('INPUT'); for(i=0; i 1)field.options[0].selected = true; eval("if(field.getProperty('title')){fMessage_val_validate_one_required = field.getProperty('title');}") eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ', insertAfterWhatNode : field.parentNode });"); eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.One_Required, { elm : field, failureMessage: fMessage_val_validate_one_required } );"); } } }); $ES('select', $('ChronoContact_BauschilderAnfrage')).each(function(field){ eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ' });"); if(field.hasClass('validate-selection')){ var fMessage_val_validate_selection = 'Please make a selection'; if(field.size > 1)field.options[0].selected = true; eval("if(field.getProperty('title')){fMessage_val_validate_selection = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.Presence, { failureMessage: fMessage_val_validate_selection } );"); } }); $ES('textarea', $('ChronoContact_BauschilderAnfrage')).each(function(field){ eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ' });"); if(field.hasClass('required')){ var fMessage_val_required = 'This field is required'; eval("if(field.getProperty('title')){fMessage_val_required = field.getProperty('title');}") eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.Presence, { failureMessage: fMessage_val_required } );"); } }); });
Joomla Professional Work



I don't know why thats not working....
Jabejo22 20 Apr, 2009
Me too. I just upgrade to the latest CF too, that should be noted.

Help! Can't make forms anymore.

Zak

Addenda, this is what comes up when I make just a simple test form:

tablechronocontact::store failed - Unknown column 'theme' in 'field list' SQL=INSERT INTO `jos_chrono_contact` ( `name`,`html`,`redirecturl`,`fieldsnames`,`fieldstypes`,`onsubmitcode`,`paramsall`,`theme`,`chronocode` ) VALUES ( 'test form','\r\n
\r\n
Test form
\r\n

\r\n
\r\n\r\n
\r\n
\r\n First Name\r\n \r\n \r\n
\r\n

\r\n
\r\n\r\n
\r\n
\r\n Last name\r\n \r\n \r\n
\r\n

\r\n
\r\n','','text_1,text_2','text,text','','formmethod=post\n omittedfields=\n LoadFiles=Yes\n submissions_limit=\n tablenames=\n savedataorder=\n handlepostedarrays=\n debug=0\n mysql_type=1\n enmambots=No\n uploads=No\n uploadfields=\n uploadmax=\n uploadmin=\n uploadpath=\n dvfields=\n dvrecord=Record #n\n imagever=No\n imtype=0\n captcha_dataload=0\n imgver_error_msg=\n validate=No\n servervalidate=\n validatetype=mootools\n val_required=\n val_validate_number=\n val_validate_digits=\n val_validate_alpha=\n val_validate_alphanum=\n val_validate_date=\n val_validate_email=\n val_validate_url=\n val_validate_date_au=\n val_validate_currency_dollar=\n val_validate_selection=\n val_validate_one_required=\n val_validate_confirmation=\n plugins=\n plugins_order=1\n onsubmitcode_order=2\n autogenerated_order=3\n mplugins_order=\n dbconnection=\n datefieldformat=d/m/Y\n datefieldsnames=','default','[type=\"cf_text\"CHRONO_CONSTANT_EOL{CHRONO_CONSTANT_EOLclass = cf_textCHRONO_CONSTANT_EOLhidelabel = 0CHRONO_CONSTANT_EOLtag = spanCHRONO_CONSTANT_EOLlabelwidth = 0CHRONO_CONSTANT_EOLlabeltext = Test formCHRONO_CONSTANT_EOLtooltiptext = CHRONO_CONSTANT_EOLslabel = CHRONO_CONSTANT_EOL}]CHRONO_CONSTANT_EOL[type=\"cf_textbox\"CHRONO_CONSTANT_EOL{CHRONO_CONSTANT_EOLid = text_1CHRONO_CONSTANT_EOLname = text_1CHRONO_CONSTANT_EOLclass = cf_inputboxCHRONO_CONSTANT_EOLtype = textCHRONO_CONSTANT_EOLsize = 30CHRONO_CONSTANT_EOLmaxlength = 150CHRONO_CONSTANT_EOLtitle = CHRONO_CONSTANT_EOLhidelabel = 0CHRONO_CONSTANT_EOLlabelwidth = 150pxCHRONO_CONSTANT_EOLlabeltext = First NameCHRONO_CONSTANT_EOLtooltiptext = CHRONO_CONSTANT_EOLslabel = fnCHRONO_CONSTANT_EOL}]CHRONO_CONSTANT_EOL[type=\"cf_textbox\"CHRONO_CONSTANT_EOL{CHRONO_CONSTANT_EOLid = text_2CHRONO_CONSTANT_EOLname = text_2CHRONO_CONSTANT_EOLclass = cf_inputboxCHRONO_CONSTANT_EOLtype = textCHRONO_CONSTANT_EOLsize = 30CHRONO_CONSTANT_EOLmaxlength = 150CHRONO_CONSTANT_EOLtitle = CHRONO_CONSTANT_EOLhidelabel = 0CHRONO_CONSTANT_EOLlabelwidth = 150pxCHRONO_CONSTANT_EOLlabeltext = Last nameCHRONO_CONSTANT_EOLtooltiptext = CHRONO_CONSTANT_EOLslabel = lnCHRONO_CONSTANT_EOL}]CHRONO_CONSTANT_EOL' )
Max_admin 20 Apr, 2009
Hi,

@leave2, please turn OFF or make the "Email clocking" plugin run after the chronocontact plugin!

@jabejo22, from which version did you make the upgrade ?I think that its better to backup forms now, uninstall, reinstall RC4.11 and restore forums, this will fix it!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 20 Apr, 2009
Hi leave2,

This is a kind of half-bug - you have the Email cloaking plugin on and it's trying to cloak the sample email in the validation error message. We'll find a fix in the next release - meanwhile change the order of the Plugins, I think Email Cliaking has to run first.

Bob
Jabejo22 20 Apr, 2009
Thanks Max,

That worked.

Zak
This topic is locked and no more replies can be posted.