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 Failure

September 02, 2007 1:24pm

Subscribe [1]
  • #1 / Sep 02, 2007 1:24pm

    Varen

    150 posts

    Hello,

    I’m working on a page that has a stand-alone entry form on it. I’m experiencing a problem with seemingly random failure of the form to display on a page. Without any change of code or any other factor the form will either show….or not show…at random on a web page. I’m testing as Admin and have no explicit permissions to post to the weblog in question but I’ve done this before (as admin) and never had this problem. This is a really standard form and page, here’s the code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <!-- PEPNOSIS PAGE FRAMEWORK VERSION 1.0 8/28/2007 8:35pm -->
    <!-- PAGE PURPOSE: MY THOUGHTCAST -->
    <head>
        <title>Pepnosis • {slogan}</title>
        {meta_tags}
        {head_tag_additions}
        <style type="text/css">body { display: none; }</style>
        <link rel='stylesheet' type='text/css' media='screen' href='http://pepnosis.com/view?css=website/pepnosis_css' />
        <style type='text/css' media='screen'>@import "{stylesheet=website/pepnosis_css}";</style>
        
            
    </head>
    <body>
    
    <div id="container">
    <div id="header">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td><a href="http://pepnosis.com">http://pepnosis.com/images/interface/logo.png</a></td>
        <td>
        <div class="account">{embed="region/.member_panel"}</div>
        </td>
        </tr>
        </table>
    </div>
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top" width="190">
        <div id="sidebar_left">
            {embed="region/.navigation"}
            {embed="region/.promo_left"}
        </div>
    </td><td valign="top">
    
    <!-- BREADCRUMBS -->
    <h2 class="standard"><a href="http://pepnosis.com/">Home</a> → <a href="http://pepnosis.com/view/my_thoughts/">My Thoughts</a></h2>
    
    {embed="region/.search"}
    
    <!-- MAIN PAGE CONTENT -->
    <!-- MAIN PAGE CONTENT -->
    <!-- MAIN PAGE CONTENT -->
    
    {embed="region/.promo_center_top"}
    
    
    <!-- START ENTRY FORM -->
    <!-- START ENTRY FORM -->
    <!-- START ENTRY FORM -->
    
    <div class="border_pepcast">
    
    {exp:weblog:entry_form weblog="thought_casts" return="my_thoughts/index"}
    
    <table>
    <tr>
    <td valign="top">
    
    Title
    
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" />
    <input type="hidden" name="url_title" id='url_title' value="{url_title}" />
    
    {custom_fields}
    {if required}* {/if}{field_label}
    
    {field_instructions} 
    {if textarea}
    <textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
    {/if}
    
    {if textinput}
    <input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
    {/if}
    
    {if pulldown}
     <select id="{field_name}" name="{field_name}">
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
    </select>
    {/if}
    
    {if date}
    <input type="text" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
    {/if}
    
    {/custom_fields} 
    
    <input type="submit" name="submit" value="Submit" />
    </td>
    <td valign="top">
    
    {status_menu}
    Status
    
    <select name="status">
    {select_options}
    </select>
    
    {/status_menu}
    
    <input type="checkbox" name="sticky" value="y" {sticky} /> Make Entry Sticky
    <input type="checkbox" name="allow_comments" value="y" {allow_comments} /> Allow Comments
    
    {category_menu}
    Categories
    
    <select name="category[]" size="4" multiple="multiple">
    {select_options}
    </select>
    
    {/category_menu}
    
    </td>
    </tr>
    </table>
    
    {/exp:weblog:entry_form}
    
    
    </div><!-- THOUGHTCAST BORDER BOX -->
    
    <!-- MAIN CONTENT BOX -->
    <div class="border_pepcast">
    
    {exp:favorites:entries weblog="thoughts" limit="100" sort="asc" orderby="title"}
    
        <div class="entry"><a href="http://{permalink=finder/thought_info}">{title}</a></div>
        <div class="posted">
            
        {exp:favorites:saved entry_id="{entry_id}"}
        
        {if saved}
        <div class="left" id="{count}">
        <a href="#" onclick="new Ajax.Updater( '{count}', '{path=finder/thought_add}{entry_id}/delete' ); return false;">http://pepnosis.com/images/interface/icons/delete.png Forget Thought</a>
        </div>
        {/if}
        
        {if not_saved}
        <div class="left" id="{count}">
        <a href="#" onclick="new Ajax.Updater( '{count}', '{path=finder/thought_add}{entry_id}' ); return false;">http://pepnosis.com/images/interface/icons/add.png Remember Thought</a>
        </div>
        {/if}
        
        {/exp:favorites:saved}
            
            <div class="right">ID:{entry_id} | <a href="http://{path=finder/index}">Find Similar</a> | {categories show="not 1|2|3"}<a href="http://{path=finder/index}">{category_name}</a>{/categories} | <a href="http://{permalink=finder/thought_info}">More Info</a></div>
    </div>
    
    {/exp:favorites:entries}
    </div>

    I ran out of space for code in this entry but the gist is there. Any help would be appreciated. Thanks 😉

  • #2 / Sep 02, 2007 2:59pm

    Varen

    150 posts

    I’ve nailed down the problem a little better but I’m no closer to a solution. The FIRST time I load a page with the SAEF on it the form loads (and works) just fine. If I reload that same page the form goes away and I can reload the page a dozen times and the form will never appear again. Hope that helps.

    Any suggestions to fix this are welcome. Thanks.

    Var

  • #3 / Sep 04, 2007 10:07am

    Robin Sowell

    13255 posts

    What build and version are you running?  And if I had to bet, it’s an issue with seeing you as ‘logged in’- to test that possibility, add a:

    {if logged_in}
    Yay- logged in
    {/if}
    {if logged_out}
    Boo- logged out
    {/if}

    Put this at the top- outside of the SAEF tag.  Let’s see it your logged in status is a factor here.

  • #4 / Sep 05, 2007 1:33am

    Varen

    150 posts

    Robin,

    Thanks for the tip. I tried it and deduced it MAY be a cookie bug in Safari 3.03. I’m still testing, thanks.

    Varen

  • #5 / Sep 05, 2007 1:35am

    Varen

    150 posts

    BTW, I’m using 1.6 build 20070622

  • #6 / Sep 05, 2007 10:54am

    Robin Sowell

    13255 posts

    I do recall at least one Safari bug cropping up and causing issues- so that could well be it.  Want to test in FF or something, see if it’s still a problem?  That would be the next step- plus checking that you have a cookie domain specified in ‘Admin- System Prefs- Cookie Settings’.  If you don’t, and flip between www and no www, you’ll be logged in one way and not the other.

    But- I do recall a safari bug, so…

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

ExpressionEngine News!

#eecms, #events, #releases