Hi,
Have got a slight issue when using the Chronoforms Plugin on an article, with the email verification plugin enabled - gives the following output in the middle of the content (although is only notices, I can't find a way of disabling them at the moment, so if there's a way of stopping them from happening altogether it would be useful). As far as I can tell, there's no damage to the functionality (I receive the verification email and the sent contact form), it's just a visual issue.
Error:
Any help gratefully received
Will
Have got a slight issue when using the Chronoforms Plugin on an article, with the email verification plugin enabled - gives the following output in the middle of the content (although is only notices, I can't find a way of disabling them at the moment, so if there's a way of stopping them from happening altogether it would be useful). As far as I can tell, there's no damage to the functionality (I receive the verification email and the sent contact form), it's just a visual issue.
Error:
Notice: Undefined offset: 0 in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\libraries\chronoform.php on line 51
Notice: Trying to get property of non-object in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\libraries\chronoform.php on line 52
Notice: Undefined offset: 0 in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\libraries\chronoform.php on line 55
Notice: Trying to get property of non-object in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\libraries\chronoform.php on line 55
Notice: Trying to get property of non-object in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\libraries\chronoform.php on line 61
Notice: Trying to get property of non-object in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\plugins\cf_email_verification.php on line 199
Notice: Trying to get property of non-object in F:\inetpub\vhosts\site\httpdocs\components\com_chronocontact\plugins\cf_email_verification.php on line 200
Any help gratefully received
Will
Just had a thought - when accessing the page through the component alone, it works fine, no notices, it's just when using the plugin that the issue appears.
Thanks
Will
Thanks
Will
I think I have found the source of the error. It would appear to be in "plugins/cf_email_verification.php" in the onload function around the line:
I would assume that this is because the variable "chronoformname" is not passed as a http request variable. I've currently hard coded my form name to this, as it'll do for my situation currently, however, I'll hopefully have chance to look into this a little deeper and work out how the variable is passed from the plugin, and then will pass the code back via here if that's OK?
Cheers
Will
$formname = JRequest::getVar( 'chronoformname');
I would assume that this is because the variable "chronoformname" is not passed as a http request variable. I've currently hard coded my form name to this, as it'll do for my situation currently, however, I'll hopefully have chance to look into this a little deeper and work out how the variable is passed from the plugin, and then will pass the code back via here if that's OK?
Cheers
Will
Hi Will,
Normally the formname would be in the URL so available as a GET varaiable - but if you are using SEF URLs this won't be true. I'm not sure what teh fix for this is but for the moment you could just add &chronoformname=xxx to the SEF URL.
You can try turning the Notices off in site Global Configuration | Server and set Error Reporting to 'System Default', 'Simple' or 'None' - which setting to use seems to vary from server to server (and occasionally none of them do).
Bob
Normally the formname would be in the URL so available as a GET varaiable - but if you are using SEF URLs this won't be true. I'm not sure what teh fix for this is but for the moment you could just add &chronoformname=xxx to the SEF URL.
You can try turning the Notices off in site Global Configuration | Server and set Error Reporting to 'System Default', 'Simple' or 'None' - which setting to use seems to vary from server to server (and occasionally none of them do).
Bob
Not using SEF URLs, it seems to be something within the Email Verification plugin when used along with the Chronoforms Joomla Plugin. I would therefore assume that the main chronoforms bit must cope with the chronoformname with the Joomla plugin, and I should be able to take some input from here. I'll let you know what I come up with.
Cheers
Will
Cheers
Will
Hi Will,
Did you use the {vlink} parameter in the confirmation email body ? this parameter should show a link which has the chronoformname parameter and so the error should not exist!
let us know!
Regards
Max
Did you use the {vlink} parameter in the confirmation email body ? this parameter should show a link which has the chronoformname parameter and so the error should not exist!
let us know!
Regards
Max
This topic is locked and no more replies can be posted.