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.

EE2 Stand Alone Entry Form returns blank page after submission

March 22, 2010 11:44pm

Subscribe [3]
  • #1 / Mar 22, 2010 11:44pm

    Roger Glenn

    54 posts

    EE Version: v2.0.1pb01
    Server: Rackspace Cloud

    After submitting this Stand Alone Entry Form I get a blank browser screen. The entry is created successfully with all the expected attributes and values, but it seems to be choking after the process.

    <!-- /system/expressionengine/tmpl/default_site/calendar.group/submit.html -->
    {embed="embeds/.meta"}
    {embed="embeds/.hdr"}
      <div id="inner">
      <h1>Submit an Event</h1>
    
    <div class="form">
    {exp:channel:entry_form channel="events" status="pending" allow_comments="no" return="calendar/success" preview="calendar/submit" show="event_body"}
        <input type="hidden" name="url_title" id="url_title" value="" />
        
        {preview}
        <h3>{title}</h3>
    <p>    <br />
        {display_custom_fields}<br />
        <br />
        {/preview}<br />
        <br />
        <strong>Title</strong></p>
    
    <p>    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p><br />
        <br />
        <strong>Date</strong>    <span class="field_instructions">yyyy-mm-dd hh:mm AM/PM</span></p>
    
    <p>    <span class="date-field"><input type="text" id="field_entry_date" name="entry_date" value="{entry_date}" maxlength="23" size="25" /></span><br />
        <br />
        {custom_fields}<br />
            <strong>{if required}* {/if}{field_label}</strong></p>
    
    <p>        {field_instructions}<br />
            {if textarea}<br />
            <textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea><br ><br />
            {/if}<br />
            <br />
            {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 />
            {if date}<br />
            <input type="text" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50"><br ><br />
            {/if}        <br />
        {/custom_fields} <br />
        <br />
        <input type="submit" name="submit" value="Submit" /></p>
    
    <p>{/exp:channel:entry_form}<br />
    </div><br />
       <br />
      </div><br />
      <!-- //#inner --><br />
    {embed="embeds/.ftr"}

    This set of EE tags renders this markup.

    <!-- SNIP page header stuff -->
    <div class="form">
    <form id='publishForm' method="post" action="http://trifectainteractive.com/calendar/submit"  enctype="multipart/form-data" >
    <div class='hiddenFields'>
    <input type="hidden" name="ACT" value="5" />
    <input type="hidden" name="RET" value="http://trifectainteractive.com/calendar/submit" />
    <input type="hidden" name="PRV" value="calendar/submit" />
    <input type="hidden" name="URI" value="calendar/submit" />
    <input type="hidden" name="XID" value="f39a5cd2c6c246a26e72eb99c21f9f57a18acecd" />
    <input type="hidden" name="return_url" value="calendar/success" />
    <input type="hidden" name="author_id" value="1" />
    <input type="hidden" name="channel_id" value="4" />
    <input type="hidden" name="status" value="pending" />
    <input type="hidden" name="field_ft_24" value="xhtml" />
    <input type="hidden" name="site_id" value="1" />
    </div>
    
    <!-- JS stuff inserted by EE -->
        
        <input type="hidden" name="url_title" id="url_title" value="" />
    
        <strong>Title</strong>
    
        <input type="text" name="title" id="title" value="" size="50" maxlength="100"></p>
        
        <strong>Date</strong>    <span class="field_instructions">yyyy-mm-dd hh:mm AM/PM</span>
    
        <span class="date-field"><input type="text" id="field_entry_date" name="entry_date" value="2010-03-22 08:36 PM" maxlength="23" size="25" /></span>
        
        <strong>* Body</strong>
            
            
            <textarea id="field_id_24" name="field_id_24" dir="ltr" cols="50" rows="6"></textarea>
    
                     
        
        <input type="submit" name="submit" value="Submit" />
    </form>
    <!-- SNIP page footer stuff -->

    I’m using .htaccess to remove index.php

    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

    The URL in the browser address bar on the blank screen reads http://[domain.com]/calendar/submit, which is consistent with the markup EE produces for the form.

    I’ve already tried:

    1. Removing .htaccess file and using index.php. Same result.

    2. Setting $debug = 1; in index.php. No errors shown.

    3. Setting $config[‘log_threshold’] = 1; in system/expressionengine/config/config.php. No errors logged (and yes, the dir is writeable).

    I’m thinking this may be a Rackspace server environment issue, but not sure. Any ideas?

  • #2 / Mar 23, 2010 3:36am

    John Henry Donovan

    12339 posts

    mach1,

    Nothing jumps out here. You seem to have done the initial troubleshooting yourself

    I’m thinking this may be a Rackspace server environment issue, but not sure.

    If you are worried about the environment can you run our Server Wizard to make please

    Can you also try this on a blank template with just the tag code and nothing else

    Do you have any add-ons installed?

    Have you tried different browsers?

  • #3 / Mar 23, 2010 11:09am

    Roger Glenn

    54 posts

    Hi John, thanks for taking a look at this.

    I’ve also tried this with an empty template as you suggested (with only the SAEF code), but same result. Doesn’t matter which browser I use, I always get a blank screen after submission.

    Modules Installed: Channel, Comment, Email, Emoticon, jQuery, Member, Pages, RSS, Search, Stats

    Extensions: SC Publish Redirect (Set to redirect back to entry screen)

    Plugins: ClassEE Body 2.0, Low Title 2.0, Magpie RSS Parser 1.3.5, Word Limiter 1.1, XML Encode

    After compiling this list I realized that other members of my team have installed things I wasn’t aware of. In this case the SC Publish Redirect extension appears to be interfering with SAEF redirection. I disabled it and viola! the redirection works perfectly. I’ll let the guys at Sassafras Consulting know about this EE2 conflict.

    Thanks again for your help. The EE/CI community is great!

  • #4 / Mar 23, 2010 11:15am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases