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.

Stand Alone Entry Form (SAEF) Problems

August 06, 2009 7:19pm

Subscribe [5]
  • #1 / Aug 06, 2009 7:19pm

    techops

    18 posts

    Hi all, I’ve been having problems and I can’t figure out why…

    I’m using the LogMeIn plugin to allow users to submit their stories to the website and they would sit as “pending” until someone approves it.

    The problem I’m having is that when you submit the form, it takes you to the same url the form exists at and the page is completely blank. I’ve searched all around the boards for an answer but none of the tips/tricks seemed to have worked (checked htaccess, etc). I know the form at least kinda sorta works, as the preview feature works. But upon submitting, the entry never makes it in the database and you get the blank page…

    Am I missing something?

    Update: I thought I’d share that I am on a MSM install, where the control panel is installed on another domain… hopefully it doesn’t matter but I thought I’d share it anyway.

    {exp:logmein:now username="priveleged_guest" expire="5000"}
                        
                        {exp:weblog:entry_form weblog="stories" return="stories/index" preview="stories/submit" status="pending"}
    
                            {preview}
                                <h3>{title}</h3>
    <p>                            {display_custom_fields}<br />
                            {/preview}<br />
                            <br />
                            Title</p>
    
    <p>                        <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" /></p></p>
    
    <p>                        {custom_fields}<br />
                                {if required}* {/if}{field_label}</p>
    
    <p>                            {field_instructions} </p>
    
    <p>                            {if textarea}<br />
                                    <textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea><br ><br />
                                {/if}</p>
    
    <p>                            {if textinput}<br />
                                    <input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" /><br ><br />
                                {/if}<br />
                                <br />
                            {/custom_fields}</p>
    
    <p>                        <input type="submit" name="submit" value="Submit" /><br />
                            <input type="submit" name="preview" value="Preview" /></p>
    
    <p>                    {/exp:weblog:entry_form}

    The form exists at /stories/submit/ and the preview is on the same page. I want them to be taken to /stories/thanks/ when it is done.

    Any help would be greatly appreciated!

  • #2 / Aug 07, 2009 5:46am

    lazypaddy

    34 posts

    Hi
    Just wondering if you have given the privleged_guest permissions to post to the weblog???

    CP Home ›  Admin ›  Members and Groups ›  Member Groups ›  Edit Member Group > (Whatever group priveleged_guest is in) > Weblog Assignment

    I had this problem with an SAEF, I’m not sure about the logmein add on as I’ve never used it and I don’t know if this is irrelevant because of the addon but it’s worth a try????

  • #3 / Aug 07, 2009 11:11am

    techops

    18 posts

    Yeah, that was one of the first things I set up. I just went back and double checked everything to be sure but it looks right.

    Of interest, what happens when you hit preview is that it shows up in the preview area but the entry fields below are now blank, except for the title.

    Here’s a link to the form:
    http://tosavealifeleaders.com/stories/submit/

    My “thank you” page is located at:
    http://tosavealifeleaders.com/stories/thanks/

  • #4 / Aug 07, 2009 11:47am

    ender

    1644 posts

    are the entries being submitted to a weblog ‘owned’ by the site the form is presented on?

  • #5 / Aug 07, 2009 12:15pm

    techops

    18 posts

    are the entries being submitted to a weblog ‘owned’ by the site the form is presented on?

    I’m not sure if I fully understand your question. I would assume so since it’s all the same site.

  • #6 / Aug 07, 2009 12:20pm

    ender

    1644 posts

    well you mentioned MSM.  a SAEF will only submit an entry to a weblog on the site it is being served from (so a SAEF on site A can’t submit an entry to a weblog in site B).  it sounds like it’s all being done on one site though, so this probably isn’t your problem.

  • #7 / Aug 07, 2009 12:25pm

    techops

    18 posts

    well you mentioned MSM.  a SAEF will only submit an entry to a weblog on the site it is being served from (so a SAEF on site A can’t submit an entry to a weblog in site B).  it sounds like it’s all being done on one site though, so this probably isn’t your problem.

    Oh, yeah these are all staying on the same site.

  • #8 / Aug 07, 2009 12:47pm

    Mike Mella

    178 posts

    Shouldn’t your return= parameter in your exp:weblog:entry_form tag be return=“stories/thanks”?

  • #9 / Aug 07, 2009 1:01pm

    techops

    18 posts

    Shouldn’t your return= parameter in your exp:weblog:entry_form tag be return=“stories/thanks”?

    Sorry, yeah it is. I’ve updated it since then… here’s the newest code:

    {exp:logmein:now username="priveleged_guest" expire="5000"}
    {exp:weblog:entry_form weblog="{my_weblog}" return="stories/thanks" preview="stories/submit" status="pending" enctype="multi"}
    
                            {preview}
                                <h3>{title}</h3>
    <p>                            {display_custom_fields}<br />
                            {/preview}<br />
                            <br />
                            Your Name</p>
    
    <p>                        <input type="text" dir="ltr" id="field_id_64" name="field_id_64" value="" maxlength="128" size="50" /></p><br />
                            <br />
                            Email (in case we need to ask you more about your story)</p>
    
    <p>                        <input type="text" dir="ltr" id="field_id_65" name="field_id_65" value="" maxlength="128" size="50" /></p><br />
                            <br />
                            <br />
                            Title</p>
    
    <p>                        <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" /></p></p>
    
    <p>                        * Body</p>
    
    <p>                        <textarea id="field_id_58" name="field_id_58" dir="ltr" cols="50" rows="8"></textarea><br />
                            <br />
                            Photo</p>
    
    <p>                        <input type="file" name="field_id_59" /><br />
                            <input type="hidden" name="field_id_59[file_name]" /><br />
                            <input type="hidden" name="field_id_59[existing]" /></p><br />
                                </p>
    
    <p>                        Photo Caption</p>
    
    <p>                        <input type="text" dir="ltr" id="field_id_63" name="field_id_63" value="" maxlength="128" size="50" /></p></p>
    
    <p>                        <input type="submit" name="submit" value="Submit" /><br />
                            <input type="submit" name="preview" value="Preview" /></p>
    
    <p>{/exp:weblog:entry_form}

    I changed it to a manual form rather than the way it would auto lay it out. I am using the nGen file uploader and followed the thread here: http://ellislab.com/forums/viewthread/124142/ on how to set that up using the ext.simple_saef_enctype.php extension.

    Still having the same problems.

    My field names for this are:
    {title}
    {stories_name}
    {stories_email}
    {stories_body}
    {stories_photo}
    {stories_photo_caption}

    I didn’t think those mattered as much as the field ID numbers, because when I tried to put the field names in the preview function didn’t work.

    But I’m still getting the white screen on submit.

  • #10 / Aug 11, 2009 7:45am

    Mark Croxton

    319 posts

    Tried bumping up your memory limit in php.ini? You may be running out of memory…

  • #11 / Sep 02, 2009 11:52pm

    Ben Higham

    5 posts

    Has anyone found a solution for this? I am having the exact same problem, but without MSM.

  • #12 / Sep 03, 2009 10:29am

    Ryan Irelan

    444 posts

    Does it work without the LogMeIn tags wrapped around it? You’d have to be logged in as “priveleged_guest”.

  • #13 / Sep 03, 2009 8:37pm

    Ben Higham

    5 posts

    Found a solution for my variant of this problem! I’m not using LogMeIn but I was using the Structure module to manage the section I was trying to update. Apparently that’s a no no, so I freed the section from Structure and everything works as expected.

  • #14 / May 17, 2010 8:04pm

    vacquah

    355 posts

    just run into this issue too on an msm install - what is the known solution?

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

ExpressionEngine News!

#eecms, #events, #releases