Forums

Chronoform in basic Joomla wrapper

jbumwad 25 Aug, 2009
I created client information forms for my Joomla 1.5 installation! Thanks for the excellent plugin. I created them in an html application and copied the code into Chronoforms without a hitch.

The forms work perfectly when placed inside an article using {chronocontact}form_name{/chronocontact}.

Alternatively, when attempting to use a basic Joomla wrapper with the URL of the form itself, errors are generated after trying to submit. My forms are being used in two scenarios and here are the respective error messages:

(From the main domain) "You are not allowed to access this URL "

(From the site's parked domain) "There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management"

The Joomla extensions are set up as follows:

Components
Chrono Contact (enabled)
3.1 RC5.1

Modules
mod_chronocontact (disabled)
Site
1.3/ V3.1 RC5

Plugins
chronocontact
content
V3.1 RC5

I've been trying to troubleshoot the problem for a while. I'm wondering, is the correct plugin/module in use for a Joomla wrapper? I've been searching the forum for relevant scenarios, but have not yet observed a thread with the same situation.

Thank you in advance, believe me, any direction at all will be appreciated.
jbumwad 28 Aug, 2009
I'm still searching the forums🙂

Anyone run across a similar situation in a basic Joomla wrapper?
GreyHead 28 Aug, 2009
Hi jbumwad,

I'm not sure that form security will let you use the form in a Joomla wrapper - presumably on another site? But I don't understand what you want to acheive here. Can you explain a bit more?

Bob
jenstechs 04 Sep, 2009
I am running into a similar problem.

A visitor just notified me he received the error message, though he's the first one to have such problems, and it works for me just fine. I searched the code base and it seems like this has something to do with the checkToken() function. Found this code in components/com_chronocontact/chronocontact.php line 110.


	// Block SPAM through the submit URL
	if((!JRequest::checkToken()) && $MyForm->formparams('checkToken', 1)){
		echo "You are not allowed to access this URL";
		return;
	}
	if ( empty($posted) ) {
		echo "You are not allowed to access this URL directly, POST array is empty";
		return;
	}	


You may have a problem because you have a parked domain or are including it in a wrapper, and the checkToken function is designed to protect against spoofing. (http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms) You can turn it off in the form's main settings panel.

But for my problem - why does it occur for some users and not others?? Is it a cookie setting?
jbumwad 05 Sep, 2009
Thanks to both of you GreyHead and jenstech.

I am in fact attempting to place the form in a Joomla Wrapper (iframe).

My site is built at a domain that describes its market niche. However the company name is different, and a second domain name that spells the company name is also in use for print collateral and networking. I want to allow visitors to the company domain access to mychronoform as transparently as possible, hence the Joomla wrappper.

My problem is that the form will not process inside the wrapper in either circumstance. I get the error messages above.

Jenstech, I appreciate your specific input and will attempt it. Also, thanks for the link. I'll report the results.
GreyHead 05 Sep, 2009
Hi jbumward,

I've no idea beyond Jenny's suggestion of turning the security token setting off. Please try that next. There are various security checks inside Joomla to protect against cross-site scripting and you may be setting one or more of them off.

The security token is stored in the user session so there is no obvious reason why some users should trigger it randomly - though tey may if their session is expired. The Joomla default is 15 minutes.

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