• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [solved] problem with form submitting, FEU + CMS1.6.5
PostPosted: Mon Sep 07, 2009 10:13 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 173
Location: Delft, Netherlands
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.

Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Mon Sep 07, 2009 10:17 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jan 21, 2008 5:51 pm
Posts: 702
Location: MI
Can you provide a link to the problem site, so we can look at the form?

_________________
Arvixe Hosting / CMSMS Community Liaison
Looking for quality CMSMS Hosting? Try Arvixe


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Tue Sep 08, 2009 7:57 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 173
Location: Delft, Netherlands
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:
{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.

Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Tue Sep 08, 2009 4:52 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jan 21, 2008 5:51 pm
Posts: 702
Location: MI
I can't take a look at the problem if you reverted back to 1.6.4.

_________________
Arvixe Hosting / CMSMS Community Liaison
Looking for quality CMSMS Hosting? Try Arvixe


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Tue Sep 08, 2009 9:42 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 173
Location: Delft, Netherlands
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.


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 12:29 am 
Offline
Power Poster
Power Poster

Joined: Mon Jan 21, 2008 5:51 pm
Posts: 702
Location: MI
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.

_________________
Arvixe Hosting / CMSMS Community Liaison
Looking for quality CMSMS Hosting? Try Arvixe


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 4:59 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Oct 25, 2006 8:29 pm
Posts: 4936
Location: Raalte, the Netherlands
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


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 5:27 am 
Offline
Forum Members
Forum Members

Joined: Mon Sep 24, 2007 6:18 pm
Posts: 166
Location: The Netherlands
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.

Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 8:22 am 
Offline
Forum Members
Forum Members

Joined: Fri May 12, 2006 7:40 am
Posts: 221
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  ???


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 9:05 am 
Offline
Forum Members
Forum Members

Joined: Mon Sep 24, 2007 6:18 pm
Posts: 166
Location: The Netherlands
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:
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


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 10:30 am 
Offline
Forum Members
Forum Members

Joined: Fri May 12, 2006 7:40 am
Posts: 221
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:
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.


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 3:38 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 173
Location: Delft, Netherlands
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.


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 3:46 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Tue Mar 31, 2009 8:45 pm
Posts: 173
Location: Delft, Netherlands
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!


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 3:50 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 5828
Location: Fernie British Columbia, Canada
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
For 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....


Top
 Profile  
 
 Post subject: Re: problem with form submitting, FEU + CMS1.6.5
PostPosted: Wed Sep 09, 2009 4:07 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 5828
Location: Fernie British Columbia, Canada
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
For 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....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: olumide


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner