[solved] problem with form submitting, FEU + CMS1.6.5

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

[solved] problem with form submitting, FEU + CMS1.6.5

Post by mcDavid »

I recently updated my site from cmsms 1.6.4 to 1.6.5 using the diff-packages.

This resulted in a breakdown of all forms used by the FEU (and dependent) module. The POST-submit does take place, but there is no reaction at all, I just got returned back to the (empty) form I came from.

The bug appeard in the following forms (and maybe more):
- FEU Login form
- FEU Change Settings form
- SelfRegistration regristration form

I tried to reproduce this with a fresh cmsms 1.6.5 installation, with no success (the login form worked perfectly).

For now I went back to 1.6.4 and everything works perfectly again. I'll try to update again tomorow to see if it  appears again. Anyone else having the same problem here?

some more version information:
CMSMS: (1.5.4 -> ) 1.6.4 -> 1.6.5
FEU: 1.6.9
SelfRegistration: 1.2.5
CustomContent: 1.5.3
Last edited by mcDavid on Wed Sep 23, 2009 10:55 am, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by Jeff »

Can you provide a link to the problem site, so we can look at the form?
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by mcDavid »

login form: http://zcflevo.nl/ledenpagina
Selfregistration form: http://zcflevo.nl/aanmelden
(note: the forms are working now, because I downgraded to 1.6.4)

The edit settings form is only reachable for logged-in users.
It might have something to do with CustomContent as well, as I have this code in the template:

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('Leden')}
  {content}                                          <<<< Here the "edit settings" form will appear
{elseif $ccuser->loggedin() && $ccuser->memberof('Nog_te_bevestigen')}
  <h2>Beste {$customcontent_loginname}, </h2>
  <p>Je verzoek om toegang tot de ledensite moet nog door een administrator bevestigd worden. De administrators zijn hier via email van op de hoogte gesteld. Nog even geduld dus!</p>
{else}
  {cms_module module=FrontEndUsers form='login'}       <<<< login form
{/if}

BTW, I saw a forum post (Forum 0.9.3) made yesterday, so the forum module wás working while the other forms did not. The forum is in the same template shown above.

The upload-form of the uploads-module wasn't working either, but this form doesn't work in 1.6.4 as well. I'm still working on that one...


-edit-
I just found a user on the Dutch board having similar problems:
http://forum.cmsmadesimple.org/index.ph ... #msg175891
Last edited by mcDavid on Tue Sep 08, 2009 9:07 am, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by Jeff »

I can't take a look at the problem if you reverted back to 1.6.4.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by mcDavid »

The only difference is that in 1.6.5 there is no reaction on the form-submit. The scripts just ignore the POST-request (form action is still the same, e.g. the adress of the current page), and send you back to the form you just submitted. Not logged in, no error-message if you use a wrong password. No registration-email is send by the selfregistration form. Nothing happens.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by Jeff »

Since I can't reproduce it and you can't provide a site to look at, there is nothing that I can do to help.

Form variables controls what the CMSms does with the form, since there is no example with them not working it is impossible to fix.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by RonnyK »

Do more people have links to forms that stopped working.... I'd like to see if there are similarities....

F.e. mod_rewrite/internal URLs., Captcha, JS-errors on page etc.....

Ronny
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by bob_basli »

Hi all,

I updated tom 1.6.5 yesterday the same way McDavid did with the base-diff package.
I'm having the same problems using FrontEndUsers and Formbuilder forms.

CMS Version 1.6.5
FEU 1.6.9
Formbuilder 0.5.12
Last edited by bob_basli on Wed Sep 09, 2009 5:58 am, edited 1 time in total.
Signex

Re: problem with form submitting, FEU + CMS1.6.5

Post by Signex »

I have the same problem, and found this;

With mod-rewrite I force a "/" behind the url. So if you visit www.domain.com/form you will get www.domain.com/form/

But the form action still says "www.domain.com/form

When I remove the forced "/" from my htaccess, and visit domain.com/form, the form action is identical.

Submit does work now, but I end up with an smtp error, i've never had before in 1.6.4  ???
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by bob_basli »

Signex wrote: I have the same problem, and found this;

With mod-rewrite I force a "/" behind the url. So if you visit www.domain.com/form you will get www.domain.com/form/

But the form action still says "www.domain.com/form

When I remove the forced "/" from my htaccess, and visit domain.com/form, the form action is identical.

Submit does work now, but I end up with an smtp error, i've never had before in 1.6.4  ???
By removing the

Code: Select all

Rewiritebase /
from the .htaccess file the FEUsers and Formbuilder forms are working again.
@ Signex: I don't get the smtp error

I would say, problem solved but that's up to McDavid
Signex

Re: problem with form submitting, FEU + CMS1.6.5

Post by Signex »

bob_basli wrote:
Signex wrote: I have the same problem, and found this;

With mod-rewrite I force a "/" behind the url. So if you visit www.domain.com/form you will get www.domain.com/form/

But the form action still says "www.domain.com/form"  

When I remove the forced "/" from my htaccess, and visit domain.com/form, the form action is identical.

Submit does work now, but I end up with an smtp error, i've never had before in 1.6.4  ???
By removing the

Code: Select all

Rewiritebase /
from the .htaccess file the FEUsers and Formbuilder forms are working again.
@ Signex: I don't get the smtp error

I would say, problem solved but that's up to McDavid
That smtp problem was a dumb serverside error on my part, i've fixed it now, and everything works.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by mcDavid »

I have a rewrite-rule that's adding a trailing slash indeed. This 301-redirect could be a good explaination indeed, but then I still wonder why it did work before...
Anyway I've commented it out and am updating to 1.6.5 again at the moment. Lets see what happens.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by mcDavid »

And tatah, all forms are working like a charm!  :D

For me, that's enough. I even think the url's look better without the trailing slash so I'll leave it like this.

Thanks everybody for helping!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by calguy1000 »

I have yet to find a definitive answer to this, but I did find a hint of an explanation here:

http://www.webmasterworld.com/forum92/4118.htm

It means that form data submitted via post, to a URL that has to be rewritten (like to add or subtract a trailing slash) will lose the POST data, and the redirect will be done via GET.  It's a 'browser security thing' I guess.

I've tested with the following configurations:

Stock .htaccess file
  url_rewriting = mod_rewrite
  page_extension = ''
  result:  works

Stock .htaccess file
  url_rewriting = mod_rewrite
  page_extension = '.html'
  result:  works

Stock .htaccess file + the trailing / stuff
  url_rewriting = mod_rewrite
  page_extension = ''
  result: fails

The next question is:  Why did this work in 1.6.4 and not in 1.6.5?
Because in 1.6.5 the CreateFormStart method was changed so that the URL of the destination page was used for the action attribute in the form.  This was actually started in the 1.6 release, but there were other problems with it, so I changed it again in 1.6.5 to rectify that problem. It's actually the proper solution, rather than redirecting to index.php?page=23  when you have mod_rewrite and pretty urls properly setup.

Work continues...
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problem with form submitting, FEU + CMS1.6.5

Post by calguy1000 »

This solves the issue (using the sample case where you are rewriting URLS to have a trailing slash)

#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”