RedirectURL disqualifies Saving Data

Please post any ChronoForms bugs you found here

RedirectURL disqualifies Saving Data

Postby gablib on Fri Jul 18, 2008 9:01 am

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.
gablib
Fresh Boarder
 
Posts: 1
Joined: Mon Mar 17, 2008 9:12 pm

Re:RedirectURL disqualifies Saving Data

Postby GreyHead on Fri Jul 18, 2008 8:59 pm

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3963
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: RedirectURL disqualifies Saving Data

Postby deafbiz on Tue Jul 29, 2008 7:12 pm

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.
deafbiz
Senior Boarder
 
Posts: 45
Joined: Mon Jun 18, 2007 4:10 pm

Re: RedirectURL disqualifies Saving Data

Postby admin on Tue Jul 29, 2008 7:26 pm

Hi deafbiz,

you need to set your live site url in Joomla to be www.domain.com and not domain.com only because this is known to make errors!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re: RedirectURL disqualifies Saving Data

Postby deafbiz on Tue Jul 29, 2008 7:43 pm

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
deafbiz
Senior Boarder
 
Posts: 45
Joined: Mon Jun 18, 2007 4:10 pm

Re: RedirectURL disqualifies Saving Data

Postby admin on Tue Jul 29, 2008 8:14 pm

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! :)
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re: RedirectURL disqualifies Saving Data

Postby deafbiz on Thu Jul 31, 2008 1:59 pm

admin wrote: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
Senior Boarder
 
Posts: 45
Joined: Mon Jun 18, 2007 4:10 pm

Re: RedirectURL disqualifies Saving Data

Postby deafbiz on Thu Jul 31, 2008 2:00 pm

gablib wrote: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.
deafbiz
Senior Boarder
 
Posts: 45
Joined: Mon Jun 18, 2007 4:10 pm

Re: RedirectURL disqualifies Saving Data

Postby GreyHead on Thu Jul 31, 2008 2:24 pm

Hi deafbiz,

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

Bob
User avatar
GreyHead
Platinum Boarder
 
Posts: 3963
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: RedirectURL disqualifies Saving Data

Postby deafbiz on Thu Jul 31, 2008 5:40 pm

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.
deafbiz
Senior Boarder
 
Posts: 45
Joined: Mon Jun 18, 2007 4:10 pm


Return to ChronoForms Bugs

Who is online

Users browsing this forum: Ask Jeeves [Bot] and 1 guest