The form send only in component view and not in plugin

How to fix a CF form that submits only in component view but not when embedded via plugin.

Overview

The issue occurs when Joomla's SEF is enabled due to a server misconfiguration in nginx.
Adjust the nginx try_files directive to properly pass query string arguments by changing the configuration line.

Answered
al alcad 26 Mar, 2015
Hi,
all the forms I've created reload without errors and without send; if i click on submit the page reload and nothing happens.
The strange thing is that if i try to send the form with "Test form" all is good; it cannot happens if i load the form with the plugin in an article.
I tried it with the even with beez3 template and protostar but nothing changes.

I cannot see no JS errors and no PHP errors.

thanks for any help
Max_admin Max_admin 26 Mar, 2015
Hi alcad,

Please try to set the "relative url" to "NO" under the "HTML" action settings.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
al alcad 26 Mar, 2015
Hi Max,
I tried to set "relative url" and something happened.
Now I can see a strange behavior; the form submit and the answer is "Form name can NOT be empty!".
The form name is not empty in the backend and even in the url.
Regards

Alessio
Max_admin Max_admin 26 Mar, 2015
Hi Alessio,

Do you have SEF enabled on your website ? what's the link in the browser after you submit the form ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
al alcad 26 Mar, 2015
Hi Max,
Joomla SEF is enabled (no 3rd party component for SEF).

The url after reload is:
/component/chronoforms5/?chronoform=contatti&event=submit

If you need i can send all the url or other data by PM
Best Regards
Max_admin Max_admin 26 Mar, 2015
That link should work ok.

Please send me a link using the "Contact us" page and include a link to this topic.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
al alcad 30 Mar, 2015
Hi Max,
after a lot of tests I verified that forms submit well without SEF internal engine.

How can I solve the problem?
I need a SEF extension and I've always used chronoforms with joomla internal SEF engine without troubles.

Best regards
Alessio
Max_admin Max_admin 30 Mar, 2015
Hi Alessio,

We have SEF enabled on the site and the forms work fine, so this should not be a problem unless you have some SEF extension installed ?

What's the url in the browser when you view the form ? and what's the url after you submit it ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
al alcad 30 Mar, 2015
Hi Max,
I have no 3rd party SEF extensions on my website.

Urls with Joomla SEF disabled:
/index.php?option=com_content&view=article&id=179&Itemid=324
/index.php?option=com_chronoforms5&chronoform=contatti&event=submit (Relative URL = On) (result OK)
/index.php?option=com_content&view=article&id=179&Itemid=324&chronoform=contatti&event=submit (Relative URL = Off) (result OK)

With Joomla SEF enabled:
/contatti
/component/chronoforms5/?chronoform=contatti&event=submit (Relative URL = On) (answer is "Form name can NOT be empty!"
/contatti?chronoform=contatti&event=submit (Relative URL = Off) (returns to blank form without debug message)

Best regards
Alessio
Max_admin Max_admin 30 Mar, 2015
Hi Alessio,

the links look correct to me and should work fine, could you please send me login info using the "Contact us" page ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
al alcad 30 Mar, 2015
Ok, I send it


Thank you so much
Alessio
al alcad 30 Mar, 2015
Answer
Hi Max,
after your mail I definitely solved the problem.

It was not a Chronoforms5 and Joomla 3.4.1 related problem but a nginx server misconfiguration.

I changed this:
try_files $uri $uri/ /index.php?q=$request_uri

in:
try_files $uri $uri/ /index.php?$args


I hope that this can help someone else.

Thank you very much
Alessio
This topic is locked and no more replies can be posted.