Plugin and module forms not working properly

vrf9ykrn 22 Sep, 2024

Premise: I have joomla 4 at the latest version and I am preparing to upgrade to Joomla 5 - PHP 8.2

I just upgraded from chronoForms7 to version 8.

With version 7 everything worked correctly, even the forms inserted into articles via plugins.

With version 8 the form works correctly if only if I create a dedicated menu item.

If I use the plugin to insert my form into an article (or if I use a module funcion for this), the form no longer works:

  • The form appears correctly and also correctly handles checking the formal validity of the e-mail;
  • When the submit button is pressed, the page is simply reloaded without any submission;
  • The data log is not updated;
  • The email is not sent;
  • The response message does not appear.

Even examining the debug, it appears that the submit button (in the plugin or module activated form) only performs the page refresh.

I also tried using the basic template “Cassiopeia”, but the problem persists, so it is not due to my template.

What could be the problem? What could I analyze to understand the reason?

Tanks, Marco

vrf9ykrn 25 Sep, 2024

I tried to create an article with just the plugin callback string. (The only element of the article is the form callback string)

To be safe, I used the default template (Cassiopeia) and a default form already in the application.

The problem persists.

Max_admin 27 Sep, 2024
Answer

mots probably this is a cache issue, do you have cache enabled on your website ? please disable it and try again, or disable it for this page only

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vrf9ykrn 27 Sep, 2024

I confirm it's a problem with Joomla's base cache.

I have to put global cache off, but this is a problem because I use Redis cache.

The System Page Cache plugin that allow to exclude certain menu items (pages) doesn't help to solve the problem.

Max_admin 05 Oct, 2024

why the system page cache does not work for this case ? you have the form under its own page, right ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger