Submit doesn't function and cache behaviour

PhilT 14 Mar, 2012
I have just started with Joomla and even newer to Chronoforms - I am currently testing components before I decide to register.

I added my first form last week and it was all working. But now I noticed it is not working at all.
During that time I have added many things to my site so I cant pin-point which item may be causing the problem.

The form is loaded inside an article - using ... {chronoforms}EnquiryForm{/chronoforms}

The form has a number of fields that are 'required' and some have other mandatory options - i.e. phone number, email.

The Submit button simply reloads the form - regardless of what I enter.

This is with the cache for the site set to On

However, with the cache set to Off, the validation works but the thankyou message is not displayed and the email is not sent.

Any ideas what I can look for ?
PhilT 14 Mar, 2012
edit: my site cache settings quoted in my original post are the wrong way around
GreyHead 14 Mar, 2012
Hi PhilT,

Does the form work OK from the Frontend View link in the Forms Manager? If so, please try setting Relative URL to NO in the form General tab (access it by clicking the Form Name link in the Forms Manager)

Bob
PhilT 14 Mar, 2012
More info ...
I have tried the form as a component and get the same results as inline in an article.

If I try the 'Frontend View' from the 'Form Manager' page, then everything works - the email is sent and the thankyou message appears.


I tried with Error Reporting set to 'Development' but not sure if any of the messages indicate faults or just warnings. (I have edited the account name in the url's)

When loaded inline, I only get ...
Strict Standards: Declaration of JCacheControllerView::get() should be compatible with that of JCacheController::get() in /home/<my-account>/public_html/libraries/joomla/cache/controller/view.php on line 137


when loaded as a module I get all of these ...
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/chronoforms.html.php on line 13
Strict Standards: Declaration of CFChronoForm::get() should be compatible with that of JObject::get() in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 382
Strict Standards: Declaration of CFChronoForm::set() should be compatible with that of JObject::set() in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 382
Strict Standards: Non-static method modChronoFormsHelper::_displayForm() should not be called statically in /home/<my-account>/public_html/modules/mod_chronoforms/mod_chronoforms.php on line 8
Strict Standards: Non-static method CFChronoForm::getInstance() should not be called statically in /home/<my-account>/public_html/modules/mod_chronoforms/helper.php on line 12
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 52
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 65
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 66
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 295
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/components/com_chronoforms/libraries/chronoform.php on line 296
Strict Standards: Non-static method HTML_ChronoForms::processView() should not be called statically in /home/<my-account>/public_html/modules/mod_chronoforms/helper.php on line 27
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/load_captcha/load_captcha.php on line 15
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/load_captcha/load_captcha.php on line 16
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/load_captcha/load_captcha.php on line 19
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/load_js/cfaction_load_js.php on line 21
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/load_css/cfaction_load_css.php on line 12
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 13
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 14
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 15
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 202
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 204
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 205
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 361
Strict Standards: Only variables should be assigned by reference in /home/<my-account>/public_html/administrator/components/com_chronoforms/form_actions/show_html/cfaction_show_html.php on line 361
then the form is displayes, followed by ...
Strict Standards: Declaration of JCacheControllerView::get() should be compatible with that of JCacheController::get() in /home/<my-account>/public_html/libraries/joomla/cache/controller/view.php on line 137
PhilT 14 Mar, 2012
Bob,

BINGO - Thanks thats fixed it. I dont know if this was set previous when I had the form working ... I guess it must have been.

I missed your reply as I was posting my previous message.

Time to pay up now🙂

Thanks
PhilT 15 Mar, 2012
Sorry – I’m back.

I’m now testing on a different PC – and now the checks are not being done.
I can click on submit without filling in any fields and the email is sent.
The thankyou message is displayed but just before it, is one of the validation messages and the data entered ...
i.e. invalid address: qwuertuqy Thank you for submitting your request

This is on IE8/XP (previously at home it was IE8/Win7)
I tested on FireFox/XP and it works ok.


Any ideas?
GreyHead 15 Mar, 2012
HI PhilT,

Use the IE Web Developer tools (F12 I think) to see if there are any JavaScript errors on the page. As far as I know the OS (Win7 vs WinXP) shouldn't make any difference here.

Bob
PhilT 15 Mar, 2012
I see no errors in the developer tools window.

I tried IE in compatibility mode and the form works.
Maybe my home PC had this set but I doubt it.
PhilT 15 Mar, 2012
I just checked the PC I was using yesterday.
It's Win 7, IE9 (I thought it was 8 ) and it is NOT in compatibility mode.

As a test - I tried the form on the IE9 PC again .... and now it's failing as described above.

What is going on? Surely if it worked yesterday and I changed nothing, why doesnt it work today?


Is there any way to remove a component fully?
I would like to go back a few stages and try creating the form from scratch.
GreyHead 15 Mar, 2012
Hi PhilT,

There is some kind of subtle bug between IE9 and MooTools 1.3/4 that is easiest to fix by forcing the form page into IE8 compatibility mode. Please see this post

Bob
PhilT 15 Mar, 2012
that will deal with the one PC running IE9 but what about IE8 - I added the code but it still fails.

I have tried the following setups:
Office PC & Home PC1 - XP/IE8
Office Laptop & Home PC2 - Win7/IE9
and the form fails.
I can set any of them to compatibility mode and the form is ok.

FF on all 4 machines works. I havent bothered with Chrome - I presume it will work.

But yesterday it was working perfectly on the laptop and the Home PC2 .... i have not modified anything on either machine or the website. It may be a cache issue.
GreyHead 17 Mar, 2012
Hi PhilT,

I'd be surprised if it worked with IE9 in IE8 browser mode but not with IE8 itself?? I've not seen that combo before.

Bob
PhilT 17 Mar, 2012
Bob,

I have tested again and it is repeatable.

Unfortunately, I havent had much time to look at any other combinations.
Later today I will uninstall Chronoforms (along with a lot of modules I have tested and rejected) and then re-install and start again.
PhilT 17 Mar, 2012
Bob,

I have now purged a lot of unused stuff from my site.
Uninstalled ChronoForms. Downloaded chronoforms again (component, module + plugin).
I have now created a simple form to be used in a Module and it works in all browser permutations.
(being careful of field names to avoid key words)

when used inline (plugin) it still wasn't 100% working.
The email worked, the Thankyou worked.
But the field validation did not - I was able to enter anything, or leave fields empty, and the submit button ignored any checks.

So, for me, I will keep to a module and be careful of field names.

But it would be nice if the validation worked in the plugin.

So far I have only used the Easy Form Wizard.
This topic is locked and no more replies can be posted.