We are currently working on a very interesting project. The project consists of a migration of a Joomla website to another sever, as well as several major fixes to the website. One of these “fixes” revolve around an RSForm Form, that doesn’t work. The form seems to submit, but then redirects back to itself (instead of going to specified thank you page), without populating the database, and without sending the necessary emails.
After analyzing the problem, we have discovered that it’s related to 3 issues:
The problem was indeed very weird. We did the necessary research on it, and we discovered that the people at RSFom are aware of it, and they told their uses to fix it using a hack, which is very annoying. The hack mainly consists of using a non-SEF link to access the form itself. We thought (Ehemm…) that we can do better!
After a lot of analysis, we discovered that the problem lies in the System Cache plugin. This was already confirmed by the RSForm people but we needed to make sure. So, in order to fix the problem, we need to ensure that all the forms that we have do not use the System Cache plugin. Here’s what we did:
- We opened the file cache.php, which is located under /yourjoomlawebsite/plugins/system.
- We created an exception, in every function, that explicitly tells the function to avoid running any script if the page is one of these forms (we used the $_SERVER['REQUEST_URI'] to check for the page name).
- We saved the file and we uploaded it back.
- The RSForm still didn’t work!
We then tried creating the exact same form: We created a form and we copied all the fields to the new form. We tried the form and it worked! So, apparently what we did solved the problem, so how come the first form still doesn’t work?
After heaving investigation, we discovered that the form had another problem: The form had a catpcha, layout autgeneration was disabled, and the custom layout did not include the captcha at all. We fixed this problem and now the form works! (Hooray!)
We have to say that the RSForm is one of the better extensions that we work on, but, as with all other extensions, it has its own quirks! And, there was one wise Joomla expert that once said: “No matter what you do, there will be a day when cache and SEF are going to bite you!”
If you have an RSForm that doesn’t work, and if you need help doing the above or if doing the above doesn’t work for you, then feel free to contact us, we’re here to help! We’ll do the job in record time and our rates are very fair!