Forums

Error in redirecting & sending email

joelseneque 27 Oct, 2009
Hi there,

i have been using Chronoforms on my website for the last 6 months and it hasn't been working for the last month. I thought it could of been conflicting with some plugin that i may of added but there is nothing. I have deleted all the plugins i added, but still the form does not work.

go to http://www.redmeetsblue.com.au/contact-us.html.

This is the error message that gets displayed

"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 form is clearly published and showing the correct name. I am not sure why this is happening??

Also the Validation is not working with the form. I have required validation on both the name and email fields. But not working??

I have used Chronoforms on many of the websites I have developed and havent found any issue like this before. Can anyone help with this?
nml375 27 Oct, 2009
Hi,
There seems to be some redirect in action when submitting, which will cause this kind of error. Could be some SEF extension or .htaccess rewrite rules in play?

Regarding Validation, it seems you are using the Modalizer system plugin, which according to its author may cause conflicts with other scripts using MooTools (such as ChronoForms). There is indeed a few JS-errors related to nn_mootools.js. Loading the form without the site template (see here: http://www.redmeetsblue.com.au/index.php?option=com_chronocontact&chronoformname=contact&Itemid=4&tmpl=component) has validation working just fine. Try disabling mootools in the modalizer plugin and see if that helps.

/Fredrik
joelseneque 28 Oct, 2009
I did understand the problem with validation (conflicting javascripts). But thank you for the clarification and help on that one.

As far as the redirect goes, i havent got any components or extra plugins on SEF, it is just using the standard Joomla SEF. I havent edited the .htaccess either, so im not sure why this would be happening. I have tried turning off SEF, still didnt work. I tried redirecting the link to a URL not on my website. Still didnt work.

I am not sure why this would be happening?
nml375 28 Oct, 2009
Hi,
Did some further tests with packet sniffers activated, and it would seem there's some odd session issue. In fact, loading the form with a fresh cache does not set any cookies whatsoever, making it rather difficult to resume the session when I submit the content. That, in it's turn, causes the "tokencheck" to see a new session, and redirect to "index.php" (ends up with /component/chronocontact/) - and chronoforms complains that there is no such form.

I am not quite sure what is the issue with the cookies, however, I am confident they're the key issue here. As a workaround, you could try to remove the above mentioned tokencheck from the source (unfortunately, simply selecting "checktoken: no" in the form setup will not do). Look for a line containing JRequest::checkToken() around line 100 in chronocontact.php, and remove the entire conditional block.

/Fredrik
joelseneque 23 Nov, 2009
Thank you so much.

That is fixed now. It is great! I love Chronoforms, I was devistated when something was playing.

Also is there another Javascript libraby we can use for validation? I know there is an option saying "Validation Library". Can this be changed to possibly fix the error I am having with clashing Java?
GreyHead 23 Nov, 2009
Hi joelseneque,

Glad to see that you got your emails working.

You can use LiveValidation without MooTools but you'll need to set up your own validations. The LiveValidation library doesn't need MooTools but the code that ChronoForms uses to attach them to the form inputs does.

But as Fredrik said better to disable MooTools in Modaliser.

Bob
joelseneque 23 Nov, 2009
ok ok.

Thanks heaps for the quick replies.

Modalizer did have Mootools turned off, but i had another script which i have edited that conflicted. It all works fine now. thank you.

Is there a way to make the validation error appear on the next line. Rather than sitting next to the input field?
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger