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.

getting error when submitting comment form

November 19, 2011 11:21am

Subscribe [2]
  • #1 / Nov 19, 2011 11:21am

    marshallgmoore

    1 posts

    Hi everyone, I’m having trouble getting comment form to submit on my local installation. I’m pretty new to EE, so be patient.

    This is the error I get:

    The following errors were encountered

    You are not authorized to perform this action


    Here is the code for the form:

    {exp:comment:form form_class="comment-form"}
         <ul>
          <li class="comment-name">
           <div class="label">
            <label for="form-name">Your Name*</label>
           </div><!-- /end .label -->
           <div class="input">
            <input id="form-name" name="name" type="text" size="35" value="{name}" />
           </div><!-- /end .input -->
          </li><!-- /end .comment-name -->
     
          <li class="comment-email">
           <div class="label">
            <label for="form-email">Email*</label>
           </div><!-- /end .label -->
           <div class="input">
            <input id="form-email" name="email" type="text" size="35" value="{email}" />
           </div><!-- /end .input -->
          </li><!-- /end .comment-email -->
     
          <li class="comment-website">
           <div class="label">
            <label for="form-website">Website</label>
           </div><!-- /end .label -->
           <div class="input">
            <input id="form-website" name="url" type="text" size="35" value="{url}" />
           </div><!-- /end .input -->
          </li><!-- /end .comment-website -->
          
          <li class="comment-content">
           <div class="label">
            <label for="form-content">Comment</label>
           </div>
           <div class="input">
            <textarea id="form-content" name="comment" cols="40" rows="10" />{comment}</textarea>
           </div>
          </li>
    
         </ul>
         <input id="comment-submit" type="submit" value="Submit Comment" />
        {/exp:comment:form}

    Is there anything in the above code that raises red flags for anyone?

    What I’ve tried:

    -quadruple checked my code against the tutorial I was using
    -visited the “Security and Session Preferences” page and set “Process form data in Secure Mode?” and “Deny Duplicate Data?” to “No”


    Any help would be greatly appreciated. Loving EE so far and I badly want to move on and learn more.

  • #2 / Nov 19, 2011 1:45pm

    marshallgmoore

    1 posts

    Blarg, never mind. Fixed it.

    http://ellislab.com/expressionengine/user-guide/troubleshooting/error_messages/you_are_not_authorized_to_perform_this_action.html

    I set: “Require IP Address and User Agent for posting?” to “No”

  • #3 / Jan 29, 2012 1:07am

    kimnana

    2 posts

    It’s hard to find knowledgeable people on this topic

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

ExpressionEngine News!

#eecms, #events, #releases