ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker wont submit entry

March 03, 2011 6:56pm

Subscribe [4]
  • #1 / Mar 03, 2011 6:56pm

    GreenTent

    55 posts

    I am using EE 2.1.3 and Safecracker 2.0.  I am new to the whole SAEF idea all together so I feel like I am just overlooking something very simple.  I have an simple form I am trying to get working but not having any success.  Here is the code:

    {exp:safecracker channel="testimonies" return="/user/success/" } 
    <input name="title" type="text" /> 
    <input name="testimony-body" type="text" /> 
    <input type="submit" value="Submit" /> 
    {/exp:safecracker}

    When I fill the form out and submit it, nothing seems to happen.  No errors, no entry submission and it doesn’t take me to the specified success page. When I view the source code of the form I see what seems to be all the proper syntax that EE/Safecracker has rendered, but I am missing something.  Thoughts?

    [Mod Edit: Moved to the CodeShare Corner forum]

  • #2 / Mar 03, 2011 7:35pm

    Shawn Dai

    76 posts

    The tags look right.

    Did you assign the member group permissions to post to that channel?

  • #3 / Mar 03, 2011 8:27pm

    Rob Sanchez

    335 posts

    Take a look at this note and see if it applies to you: http://ellislab.com/forums/viewreply/861573/

  • #4 / Mar 04, 2011 9:49am

    Ingmar

    29245 posts

    Thanks. Does that make sense, GreenTent?

  • #5 / Mar 04, 2011 4:19pm

    GreenTent

    55 posts

    Rob, this is the issue. The only way I could test it was to remove the rewrite for the trailing slash and the form did submit.  However, now I have to have the proper rewrite code written for the post because I am on IIS and it uses slightly different syntax I believe.  (http://www.isapirewrite.com). Any thoughts on making this code work in ISAPI rewrite 2.0?

    # Add a trailing slash to paths without an extension
    # Does not redirect for POST items like SafeCracker
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
    RewriteRule ^(.*)$ $1/ [L,R=301]

    If not I can go to their site and track it down. Otherwise you have seemed to locate the issue. Thanks so much!

  • #6 / Mar 04, 2011 4:27pm

    GreenTent

    55 posts

    Also thanks Shawn for the idea 😉

  • #7 / Mar 04, 2011 4:41pm

    Rob Sanchez

    335 posts

    Not too sure on the isapi rewrite, I never use windows servers, maybe this?

    RewriteCond %{REQUEST_METHOD} (?!=POST)
  • #8 / Mar 05, 2011 2:27pm

    Greg Salt

    3988 posts

    Hi GreenTent,

    Now that you’ve tracked down the cause of the issue this is now more appropriate in the CodeShare Corner so I’ll move this thread there for you.

    Cheers

    Greg

    @Rob and Shawn, thanks for helping out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases