Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

User Forms v0.2.1 SS2.3.4: 302 Error on Save Save & Publish etc.


Reply


8 Posts   1233 Views

Avatar
pinkp

Community Member, 168 Posts

23 May 2010 at 6:30am

User Forms v0.2.1 SS 2.3.4

http://mysite.com/admin/EditForm 302 Found

When I click Save, Save & Publish, or Unpublish etc. after making changes I get "Server Error" in the little red box.

I can add a new form page and save it once after that no go. Any ideas how to fix this!?

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

23 May 2010 at 2:32pm

If you have firebug installed then view the console panel when you get the error message. It should display the actual error message in that console panel.

Avatar
pinkp

Community Member, 168 Posts

23 May 2010 at 9:18pm

Could this be the error:

"Another page is using that URL. URL must be unique for each page"

I am looking under the "Post" tab of Console is this the right place to look (sorry never used the console before, and notice you've told many people to use it)

Even if I change the URL to something else I still cant save it...

Thanks!

Avatar
Willr

Forum Moderator, 5513 Posts

23 May 2010 at 9:27pm

"Another page is using that URL. URL must be unique for each page"

No that doesn't sound like it. Is there any other red highlighted errors on the list of console events?

and notice you've told many people to use it

Yes the console functionality is vital to debugging anything on the CMS side of things. You can also use the console functionality in webkit browsers but I prefer firebug.

Avatar
pinkp

Community Member, 168 Posts

23 May 2010 at 9:36pm

Only one red line the same every time:

"POST http://mysite.com/admin/EditForm 302 Found "

"   390
   560
   
   
   
   
AddUserFormField   
CanEditType   Inherit
CanViewType   Inherit
ClassName   UserDefinedForm
Content   <h3 style="text-align: center;"><a href="mailtome@mysite.co.uk" title="email me"> </a></h3> <h3 style="text-align: center;"><a>me [at] mysite.co.uk</a></h3>
EditorGroups   
ExtraMeta   
Fields[1][CanDelete]   1
Fields[1][CustomErrorMess...   please enter you name
Fields[1][CustomRules][Co...   
Fields[1][CustomRules][Co...   
Fields[1][CustomRules][Di...   Show
Fields[1][CustomRules][Va...   
Fields[1][CustomSettings]...   32
Fields[1][CustomSettings]...   0
Fields[1][CustomSettings]...   1
Fields[1][CustomSettings]...   Show
Fields[1][CustomSettings]...   32
Fields[1][Required]   1
Fields[1][Sort]   1
Fields[1][Title]   name
Fields[1][Type]   EditableTextField
Fields[4][CanDelete]   1
Fields[4][CustomErrorMess...   please enter you email address
Fields[4][CustomRules][Co...   
Fields[4][CustomRules][Co...   
Fields[4][CustomRules][Di...   Show
Fields[4][CustomRules][Va...   
Fields[4][CustomSettings]...   Show
Fields[4][Required]   1
Fields[4][Sort]   2
Fields[4][Title]   email
Fields[4][Type]   EditableEmailField
Fields[5][CanDelete]   1
Fields[5][CustomErrorMess...   please enter you message
Fields[5][CustomRules][Co...   
Fields[5][CustomRules][Co...   
Fields[5][CustomRules][Di...   Show
Fields[5][CustomRules][Va...   
Fields[5][CustomSettings]...   250
Fields[5][CustomSettings]...   0
Fields[5][CustomSettings]...   5
Fields[5][CustomSettings]...   Show
Fields[5][CustomSettings]...   32
Fields[5][Required]   1
Fields[5][Sort]   5
Fields[5][Title]   message
Fields[5][Type]   EditableTextField
Fields[SubmitButtonText]   send
HomepageForDomain   
ID   3
LiveURLSegment   http://mysite.com/contact/
MenuTitle   Contact
MetaDescription   
MetaKeywords   
MetaTitle   Mysite :: Contact
OnCompleteMessage   <h3 style="text-align: center;">Thank You!<br /></h3>
ParentID   0
ParentType   root
SecurityID   1166437250
ShowInMenus   1
ShowInSearch   1
Sort   5
StageURLSegment   http://mysite.com/contact/
Title   Contact
ToDo   
URLSegment   contact
ViewerGroups   
action_save   1
ajax   1
restricted-chars[Form_Edi...   [^A-Za-z0-9-]+
restricted-chars[Form_Edi...   -
restricted-chars[Form_Edi...   URLs can only be made up of letters, digits and hyphens.
restricted-messages[Form_...   Another page is using that URL. URL must be unique for each page"

Is it worth removing and reinstalling the module?

Avatar
Willr

Forum Moderator, 5513 Posts

23 May 2010 at 9:49pm

Not that I can see from that error message but a common issue is people name the folder on the filesystem something other than 'userforms' like 'userforms-v3' usually if thats the case then you get a blank screen and not an error - but check it anyway.

Are you running with or without mod_rewrite? that could cause the URL to be incorrect.

Avatar
pinkp

Community Member, 168 Posts

23 May 2010 at 9:56pm

the folder is named "userforms"

and mod_rewrite is on

.htaccess

"<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /"

Avatar
pinkp

Community Member, 168 Posts

2 June 2010 at 8:52am

Edited: 02/06/2010 9:18am

Further to this I was able to remove the page using the Batch Actions. Then recreate a UserForm page and successfully save it. However when I added any fields to the form and then tried to save, it always comes up with a "Server Error" same as before...

---------
EDIT
--------

Using the latest version 0.3.0 give me this error (perhaps because im on SS 2.3.4?)

"Error: Couldn't run query: SELECT COUNT(*) AS "CountRows" FROM "SubmittedForm" WHERE "ParentID" = 12 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SubmittedForm" WHERE "ParentID" = 12' at line 1
At line 401 in /home/mine/public_html/sapphire/core/model/MySQLDatabase.php "

FIREBUG:

"500//There has been an error
[Break on this error] <div id="treepanes">\n"