Forums

RedirectURL disqualifies Saving Data

gablib 18 Jul, 2008
While experimenting and exploring "ChronoForms V2.5 J1.5 RC3.1" in "Jommla! 1.5.3", I have encountered the following issue. I have put URL as a thanks page into FormURLs/RedirectURL and simultaneously created a table for saving data, i.e., generated AutoGenerated code. In that configuration a particular form redirects to the respective URL, but does not save form's data into the table. The expected functionality should be (in my opinion): Saving form's data and then redirection to a URL in that consecutive order. However, the redirection supresses the saving data. I consider this behaviour as a bug.

In order to solve this problem (for me for the time being), I went through the core of ChronoForms component in the file "chronocontact.php" and found out, that the code block "Redirect the page if requested" (line 575) is run immediately after processing the first parameter ($paramsvalues->plugins_order) and so remaining parameters are not processed including the autogenerated code. All in all, the redirection code block should be located out of the loop "foreach($ixx)", i.e., after the closing curly bracket (line 581). Having put the block there, the form saves data and redirects as I have expected.
GreyHead 18 Jul, 2008
Hi gablib,

Thanks, this is a known bug, there are some 'fixed' copies of chronocontact.php in various posts here. Waiting for Max to release a corrected version very soon.

Bob
deafbiz 29 Jul, 2008
I just experienced the very same thing!

I successfully tested with Secured SSL but it was creating a strange index.php? after the form submisstion but the data was sucessfully saved.

When I added a link to the Thank you Page and tried again, well, the data wasn't saved at all!

So while you're on it, please see if this test also passes with SSL turned on.

Or I guess I'll be the beta tester.

BTW, I'm experiencing a very unpredictable events of SSL with lock and SSL with a slashed lock. I highly suspected that my certificate is for http://www.domain.com but by default the website is http://domain.com. Since it's Joomla 1.5 I tried making changes in config.php but no luck there (I do it all the time in J! 1.0). And nothing in the Joomla forum addresses this problem. So this is another issue when using SSL in Joomla 1.5 to be aware of.
Max_admin 29 Jul, 2008
Hi deafbiz,

you need to set your live site url in Joomla to be <!-- w --><a class="postlink" href="http://www.domain.com">www.domain.com</a><!-- w --> and not domain.com only because this is known to make errors!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deafbiz 29 Jul, 2008
I'm fully aware of it. I know how to do it in J 1.0. I'm not able to do it in J 1.5, hence my comments.

JSG
Max_admin 29 Jul, 2008
I would try to help but stressed now because I need to move the whole website to another host, maybe after this is done I will have fresh mind to look for this! 🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
deafbiz 31 Jul, 2008

I would try to help but stressed now because I need to move the whole website to another host, maybe after this is done I will have fresh mind to look for this! 🙂



Do you have an ETA?

If it's far off, I'm willing to fix the bug by hand on my website.

JSG
deafbiz 31 Jul, 2008

While experimenting and exploring "ChronoForms V2.5 J1.5 RC3.1" in "Jommla! 1.5.3", I have encountered the following issue. I have put URL as a thanks page into FormURLs/RedirectURL and simultaneously created a table for saving data, i.e., generated AutoGenerated code. In that configuration a particular form redirects to the respective URL, but does not save form's data into the table. The expected functionality should be (in my opinion): Saving form's data and then redirection to a URL in that consecutive order. However, the redirection supresses the saving data. I consider this behaviour as a bug.

In order to solve this problem (for me for the time being), I went through the core of ChronoForms component in the file "chronocontact.php" and found out, that the code block "Redirect the page if requested" (line 575) is run immediately after processing the first parameter ($paramsvalues->plugins_order) and so remaining parameters are not processed including the autogenerated code. All in all, the redirection code block should be located out of the loop "foreach($ixx)", i.e., after the closing curly bracket (line 581). Having put the block there, the form saves data and redirects as I have expected.



Could you post the code changes so that I can copy and paste?

Thank you.
GreyHead 31 Jul, 2008
Hi deafbiz,

Max has updated the search index so I found it this time. See this post.

Bob
deafbiz 31 Jul, 2008
Very much appreciated! My client is VERY happy with the form I made for her and I promised her the bug will be resolved soon!

Yours is faaaaarrrrrr better than Taylor's Forms.
This topic is locked and no more replies can be posted.