Forums

Problem with chronoform for registering new user

matejkralik 19 Jun, 2009
Hello, I want to ask, I created a from with chrono forms component for registering new user to joomla. After submitting of it I get this error:

Fatal error: Call to undefined function getVar() in W:\domains\www.matoweb.sk\public\www_root\nz\components\com_chronocontact\libraries\chronoform.php(245) : eval()'d code on line 3


How to fix this?
GreyHead 19 Jun, 2009
Hi matejkralik,

It looks like there's an error in your server-side validation code. What do you have in that box?

Bob
nml375 20 Jun, 2009
Hi,
To me, it looks like you've accidentally left out JRequest:: when calling the class method getVar(); ie
$var = getVar('somevar');
//Relly should be
$var = JRequest::getVar('somevar');


As Bob said, the error should be located in the server verification box.

/Fredrik
matejkralik 22 Jun, 2009
This is in my validation box:

<?php
global $mainframe;
if (JRequest::getVar('text_3')!=JRequest>>getVar('text_4'))
return 'Sorry, your passwords do not match, please try again!';
?>


Is here anything to change?

thanks for help anyway
Max_admin 22 Jun, 2009
This line is wrong:
if (JRequest::getVar('text_3')!=JRequest>>getVar('text_4'))


should be:

if (JRequest::getVar('text_3') != JRequest::getVar('text_4'))


Cheers
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.