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.

SAEF - white screen when posting and entries not posting

August 20, 2010 8:12am

Subscribe [3]
  • #1 / Aug 20, 2010 8:12am

    futuristonline

    43 posts

    Hi
    Working on trying some things for upcoming recruitment website.
    Client requirements are for the recruitment clients to post job postings. I am going to do this via a SAEF. Each of the clients will have a member group assigned to them.

    I have two issues.

    I can get the SAEF to show the correct custom fields etc. but when I click the submit, it goes to a blank white screen.
    The second issue is that the entries are not getting recorded as weblog entries.

    I have 2 weblogs, the 1st is called ‘recruitment’ and the other is called ‘recruitment_clients’ so what I have done is when you go to the url of /recruitment/ it shows all the jobs that have been posted (the ones posted from the EE back end post okay!). When you go to the url /recruitment_clients/ I have a {if logged_in} statement that gets them to log in. If they are logged in, then it shows the SAEF but the issues then happen when you click submit.

    When you do click on submit, it goes back to index.php/recruitment_clients and shows a white blank page.

    Using version: 1.6.9

    Code on ‘recruitment’

    {exp:weblog:entries weblog="recruitment" dynamic="on" rdf="off" sticky="yes" limit="10" disable="trackbacks"}    
    Title: {job_title}
    
    Location: {job_location}
    
    Job Type: {job_type}
    
    Job Salary: {job_salary}
    
    Job Reference: {job_reference}
    
    {/exp:weblog:entries}

    Code on ‘recruitment_clients’

    {if logged_in}
    {exp:weblog:entry_form weblog="recruitment" return="recruitment/"}
    Title: <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>
    {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}">{field_data}</textarea><br >
    {/if}
    {if textinput}
    <input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50"><br >
    {/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"><br >
    {/if}
    {if relationship}
    <select id="{field_name}" name="{field_name}">
    {options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
    
    </select>
    {/if}
    {/custom_fields} 
    Expiration Date 
    
    <input type="text" name="expiration_date" value="{expiration_date}" maxlength="23" size="25" /></p>
    <input type="submit" name="submit" value="Submit" />
    
    {ping_servers}
    Ping Servers
    
    {ping_row}
    <input type="checkbox" name="ping[]" value="{ping_value}" {ping_checked} /> {ping_server_name}
    
    {/ping_row}
    
    {/ping_servers}
    {/exp:weblog:entry_form}
    {/if}
    
    {if logged_out}
    {exp:member:login_form return="recruitment_clients/"}
    <label>Username</label>
    
    <input type="text" name="username" value="" maxlength="32" class="input" size="25" /></p>
    <label>Password</label>
    
    <input type="password" name="password" value="" maxlength="32" class="input" size="25" /></p>
    <input type="submit" name="submit" value="Submit" /></p>
    {/exp:member:login_form}
    {/if}

    Any help would be appreciated.

    Regards

    Steve

  • #2 / Aug 20, 2010 4:15pm

    futuristonline

    43 posts

    Okay.
    Been trying this for the last 8 hours and still cannot get it to work.

    Anyone done something similar - letting members post weblog entries?

    Regards

    Steve

  • #3 / Aug 20, 2010 4:34pm

    Sue Crocker

    26054 posts

    Hi, Steve. White pages can be caused by PHP errors or not enough memory allocated to PHP.

    Have you seen: EEWiki:// HowTo Determine Memory Limits How much memory is allocated?

    http://expressionengine.com/wiki/HowTo_Turn_on_Error_Reporting/

    Does turning on error reporting show any sort of error?

  • #4 / Aug 20, 2010 6:22pm

    futuristonline

    43 posts

    Hi Sue,

    Checked the memory limit - this is set to 128M

    Have gone through the error reporting but not getting anything - still just the white screen.

    I can PM you the website and you can have a look if you like?

    Regards

    Steve

  • #5 / Aug 21, 2010 5:21pm

    Sue Crocker

    26054 posts

    Ordinarily we don’t login until we’ve done more troubleshooting.

    If you use the code from the EE docs for the SAEF, does that work?

  • #6 / Aug 24, 2010 5:55am

    futuristonline

    43 posts

    Sue,

    Have replaced the code with the example from the SAEF in the EE docs - still get a white page on submit.
    Memory looks fine.

    Any other ideas?

    Regards

    Steve

  • #7 / Aug 24, 2010 6:48pm

    Brandon Jones

    5500 posts

    Steve,

    Does that member’s group have permission to post entries to that channel? Verify this under Members > Member Groups, then click Edit Group, then ensure the channel is allowed under the Channel Assignment heading.

  • #8 / Aug 24, 2010 7:02pm

    futuristonline

    43 posts

    Brandon,
    I am actually doing this on a test site, which is my own before implementing it into the live site.

    I get this even when I post from my member group which is Super Admin - I would assume that everything should work from Super Admin as a way of testing first?

    I get the white screen even when posting from Super Admin.

    Regards

    Steve

  • #9 / Aug 25, 2010 4:27pm

    Robin Sowell

    13255 posts

    Yep- superadmin should be ok.  Keep testing using the copy/paste saef example, just to eliminate things.  Using that- ‘view source’- and paste back the form through the hidden fields so we can see if anything looks odd.  Also- are you using any extensions, and do you have any htaccess in play?

  • #10 / Aug 26, 2010 1:36pm

    futuristonline

    43 posts

    Hi
    After looking, screaming, hitting, looking some more, I have solved this problem…

    SAEF do not work if you are using the Structure module!

    All I ended up doing was switching the structure setting to unmanaged for that blog and it worked!

    Thanks for all the help.

    Steve

  • #11 / Aug 26, 2010 2:16pm

    Robin Sowell

    13255 posts

    AHA!  Thanks for getting back to us on the issue.  It will no doubt help someone else in the future.  And sorry it ended up being such a puzzler!

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

ExpressionEngine News!

#eecms, #events, #releases