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 Return Address Issue

February 17, 2012 7:54pm

Subscribe [3]
  • #1 / Feb 17, 2012 7:54pm

    Hue Labs

    31 posts

    An “S=xxxxxxxxxxxxxxxxxxxx” is showing up in my Safecracker return URL. It’s breaking the Safecracker functionality completely. I’m not how, why, or when this started. Any ideas?

    View the source code here (line 73)

  • #2 / Feb 18, 2012 5:01am

    Mark Bowen

    12637 posts

    Is that the correct link above?

    At line 73 of the source code there I see the opening line for your form :

    <form id="publishForm" method="post" action="http://travelnevada.com/campaigns/discover/reno-tahoe-territory"  enctype="multipart/form-data" >

    I’m afraid I don’t see anything in the return url that looks fishy. To me it looks like this :

    <input type="hidden" name="return_url" value="campaigns/discover" />

    Just wondering if I’m looking at the right thing though?

    Best wishes,

    Mark

     

  • #3 / Feb 18, 2012 12:45pm

    Hue Labs

    31 posts

    Sorry Mark, I noticed this only show up for logged in users, here’s the code below:

    <form id="publishForm" method="post" action="http://travelnevada.com/S=ba0b5dde48079e9dfc2377740cae357c5f91f0dd/campaigns/discover/reno-tahoe-territory"  enctype="multipart/form-data" >
    <div class='hiddenFields'>
    <input type="hidden" name="ACT" value="6" />
    <input type="hidden" name="RET" value="http://travelnevada.com/S=ba0b5dde48079e9dfc2377740cae357c5f91f0dd/campaigns/discover/reno-tahoe-territory" />
    <input type="hidden" name="URI" value="campaigns/discover/reno-tahoe-territory" />
    <input type="hidden" name="XID" value="7569b346a37036579d2732d363c639a2eb1d47e3" />
    <input type="hidden" name="return_url" value="campaigns/discover/reno-tahoe-territory/ENTRY_ID" />
    <input type="hidden" name="author_id" value="1" />
    <input type="hidden" name="channel_id" value="36" />
    <input type="hidden" name="entry_id" value="0" />
    <input type="hidden" name="site_id" value="4" />
    <input type="hidden" name="return" value="campaigns/discover/reno-tahoe-territory/ENTRY_ID" />
    <input type="hidden" name="error_handling" value="inline" />
    <input type="hidden" name="allow_comments" value="n" />
    </div>

    I am obviously not adding the “S=ba0b5dde48079e9dfc2377740cae357c5f91f0dd” for the return URL. Nothing is getting submitted to the form.

  • #4 / Feb 19, 2012 7:14am

    Sean C. Smith

    3818 posts

    Hi Hue Labs,

    Was this form previously working? If so did you change anything in the template or on the server just before it stopped working? Could you post up your safecracker code here as the additional context will be helpful in troubleshooting.

    Thank you
    Sean

  • #5 / Feb 19, 2012 12:38pm

    Hue Labs

    31 posts

    Sean, the form was previously working. I built this template from scratch just the other day. My other MSM sites do not include this strange ID and they work fine. Here’s the form code:

    {exp:safecracker channel="discover_your_nevada_nominations" return="campaigns/discover/reno-tahoe-territory/ENTRY_ID" site="ncot_travelnevada" error_handling="inline"
    }
      
        <label for="title">What do you consider a Nevada Treasure?</label>
    
        <input name="title" id="title" type="text" />
      
      
        <label for="location">Closest City?</label>
    
        <input name="discover_your_nevada_location" id="discover_your_nevada_location" type="text" />
      
      <input type="submit" value="Submit Nomination" /></p>
    {/exp:safecracker}
  • #6 / Feb 23, 2012 5:32pm

    Kevin Smith

    4784 posts

    Hi Hue,

    That looks to me like the session ID. If you navigate in your CP to Admin > Security and Privacy > Security and Sessions, is the User Session Type set to “Cookies only”? If not, it should be. It’s the “session ID” part of “Cookies and session ID” that add that S=xxxxxxxxxxxxxxxxxxxx to your URLs. 😊

  • #7 / Feb 23, 2012 5:40pm

    Hue Labs

    31 posts

    Kevin thanks, that was it! It was driving me crazy, but now I remember setting it to sessions because of a strange cookie issue I was having several months ago.

    Cheers,

    Steve

  • #8 / Feb 24, 2012 5:38pm

    Shane Eckert

    7174 posts

    Hello Steve,

    I am really happy to see that Kevin was able to help you figure this problem out.

    Have a great weekend!!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases