mcDavid
Forum Members

Karma: 0
Offline
Posts: 57
|
 |
« on: 07 Sep 2009, 18:13 » |
|
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 Edit: 23 Sep 2009, 06:55 by mcDavid »
|
Logged
|
|
|
|
ajprog
Dev Team Member
Power Poster
   
Karma: 14
Online
Posts: 632
|
 |
« Reply #1 on: 07 Sep 2009, 18:17 » |
|
Can you provide a link to the problem site, so we can look at the form?
|
|
|
|
|
Logged
|
|
|
|
mcDavid
Forum Members

Karma: 0
Offline
Posts: 57
|
 |
« Reply #2 on: 08 Sep 2009, 03:57 » |
|
login form: http://zcflevo.nl/ledenpaginaSelfregistration 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: {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.php/topic,37135.msg175891.html#msg175891
|
|
|
|
« Last Edit: 08 Sep 2009, 05:07 by mcDavid »
|
Logged
|
|
|
|
ajprog
Dev Team Member
Power Poster
   
Karma: 14
Online
Posts: 632
|
 |
« Reply #3 on: 08 Sep 2009, 12:52 » |
|
I can't take a look at the problem if you reverted back to 1.6.4.
|
|
|
|
|
Logged
|
|
|
|
mcDavid
Forum Members

Karma: 0
Offline
Posts: 57
|
 |
« Reply #4 on: 08 Sep 2009, 17:42 » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
ajprog
Dev Team Member
Power Poster
   
Karma: 14
Online
Posts: 632
|
 |
« Reply #5 on: 08 Sep 2009, 20:29 » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
RonnyK
Dev Team Member
Power Poster
   
Karma: 91
Offline
Posts: 4226
|
 |
« Reply #6 on: 09 Sep 2009, 00:59 » |
|
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
|
|
|
|
|
Logged
|
|
|
|
bob_basli
Forum Members

Karma: 0
Offline
Posts: 133
|
 |
« Reply #7 on: 09 Sep 2009, 01:27 » |
|
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 Edit: 09 Sep 2009, 01:58 by bob_basli »
|
Logged
|
|
|
|
Signex
Forum Members

Karma: 4
Offline
Posts: 222
|
 |
« Reply #8 on: 09 Sep 2009, 04:22 » |
|
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 
|
|
|
|
|
Logged
|
have you visited the cmsms blog lately?
|
|
|
bob_basli
Forum Members

Karma: 0
Offline
Posts: 133
|
 |
« Reply #9 on: 09 Sep 2009, 05:05 » |
|
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 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
|
|
|
|
|
Logged
|
|
|
|
Signex
Forum Members

Karma: 4
Offline
Posts: 222
|
 |
« Reply #10 on: 09 Sep 2009, 06:30 » |
|
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 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.
|
|
|
|
|
Logged
|
have you visited the cmsms blog lately?
|
|
|
mcDavid
Forum Members

Karma: 0
Offline
Posts: 57
|
 |
« Reply #11 on: 09 Sep 2009, 11:38 » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
mcDavid
Forum Members

Karma: 0
Offline
Posts: 57
|
 |
« Reply #12 on: 09 Sep 2009, 11:46 » |
|
And tatah, all forms are working like a charm!  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!
|
|
|
|
|
Logged
|
|
|
|
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
   
Karma: 162
Offline
Posts: 5108
Second Tier support
|
 |
« Reply #13 on: 09 Sep 2009, 11:50 » |
|
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.htmIt 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: failsThe 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...
|
|
|
|
|
Logged
|
Follow me on twitterFor quality help follow these instructions: a) Think about the problem for an hour b) research the problem for an hour c) spend 1/2 an hour explaining it and providing as much information as you can muster (too much information is okay, not enough information may get your question ignored). -- if you can't bother explaining your problem well, why should we bother helping with it. ---------------- Don't make me angry..... you won't like me when I'm angry....
|
|
|
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
   
Karma: 162
Offline
Posts: 5108
Second Tier support
|
 |
« Reply #14 on: 09 Sep 2009, 12:07 » |
|
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]
|
|
|
|
|
Logged
|
Follow me on twitterFor quality help follow these instructions: a) Think about the problem for an hour b) research the problem for an hour c) spend 1/2 an hour explaining it and providing as much information as you can muster (too much information is okay, not enough information may get your question ignored). -- if you can't bother explaining your problem well, why should we bother helping with it. ---------------- Don't make me angry..... you won't like me when I'm angry....
|
|
|
|