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.

Search Form Results Vary When Logged In or Not

May 22, 2012 8:12pm

Subscribe [1]
  • #1 / May 22, 2012 8:12pm

    RullDawg

    1 posts

    I’m using a exp:search:simple_form to search across two different channel types.  When logged in, the search executes just as I would expect.  When I’m logged out and search, I’m being given code that says title is required.

    Here’s a snippet of the HTML returned.

    <div id="content">
    
    <h1>The form you submitted contained the following errors</h1>
    
    <ul><li>The Title field is required.</li>
    </ul>

    I’m not sure why I’m being told Title is required for a search.

    Is there any suggestions on how I can debug my problem?

    Thanks
    -Bob

     

  • #2 / May 23, 2012 5:19pm

    Dan Decker

    7338 posts

    Hi Bob,

    Thanks for your question!

    Can I see the template for your search form and results pages? In the meantime, make sure the Guest Member Group has proper Search Privileges set in Members-> Member Groups: Edit Group.

    What version of ExpressionEngine are you using?

    Cheers,

  • #3 / May 23, 2012 9:57pm

    RullDawg

    1 posts

    Hi Dan,

    I went to pull out the simple_form and the results page into templates that I could share.  When testing they worked as expected.  When looking at my implementation I see both a simple_form and a safecracker_form on the same page.  If I put the safecracker_form before the simple_form everything worked as expected.  I have no clue why without the change everything works when logged in but it does.

    Is there something I should do special when using a simple_form and safecracker_form on the same page?

    Thanks!
    -Bob

  • #4 / May 30, 2012 5:29pm

    Dan Decker

    7338 posts

    Hi Bob,

    Is there something I should do special when using a simple_form and safecracker_form on the same page?

    My guess would be restrictions on your SafeCracker form? If it is only available to logged in users, that may have an impact on your search form.

    They should be allowed to coexist as long as they are properly closed and one is not inside the other.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases