Generic-user-small David Jacobs 2 posts

In Episode 2 my name and email show up in the comment form automatically and when I type in a comment I get the following message:
The following errors were encountered
You are not authorized to perform this action
Return to Previous Page

Below is my markup for the form:



{exp:comment:form}

<p><label for="name">Name</label><br />

<input type="text" name="name" value="{name}" id="name" size="37" /></p>

<p><label for="email">Email Address</label><br />

<input type="text" name="email" value="{email}" id="email" size="37" /></p>

<p><label for="comment">Comment</label><br />
<textarea name="comment" rows="8" cols="35" id="comment">{comment}</textarea></p>

<p><input type="submit" name="submit" value="Submit" /></p>

{/exp:comment:form}

Please advise. Thank you.

 
Ryanirelan_headshot_48x48_small Ryan Irelan 73 posts

Hi David,

Yes, the form is pre-filled with your name and email address. As far as the error, do you have comments enabled on that weblog/section?

 
Generic-user-small David Jacobs 2 posts

Once I log out of EE I get a blank form and yes I have comments enabled. It’s very strange, it only happens in Safari (Version 3.1.2 (5525.20.1)). The page functions properly and comments work in Camino and Firefox for Mac.

 
Generic-user-small John 1 post

I just found this post after experiencing the exact same issue, however I also get the error in Firefox 3 Mac as well as Safari 3.1.2 Mac, while Camino submits it fine ( edit: also I’m on EE Core )

 
356417931_14b8ccecbe_small Cecily Walker 5 posts

Ryan, I’m also seeing the same error while using Safari 3.1.2, but the comments work as expected on Firefox 3.

 
Ryanirelan_headshot_48x48_small Ryan Irelan 73 posts

Hi Cecily,

This sounds like Safari is handling the form submission differently. Can you check what this preference (under Admin > System Preferences > Security and Session Preferences) is set to:

Require IP Address and User Agent when receiving comments?

If it’s set to “Yes” can you set it to “No” and see if that resolves the issue?

 
356417931_14b8ccecbe_small Cecily Walker 5 posts

Hi Ryan,

I tried your suggestion and it’s still keeping my name and e-mail address in the form.

 
Ryanirelan_headshot_48x48_small Ryan Irelan 73 posts

Cecily, if you are logged in, I believe it will always populate your name and email in the form. If you log out does it still do that?

 
Avatar1_small Rick Lecoat 1 post

To add my 2ยข to the configurations:
I’m working through the tutorial using Coda, with files/database on a local MAMP server.
If I’m logged into the control panel and try entering a comment via Coda’s preview mode (which uses WebKit) the comment is received but with my default name and email address (presumably gathered from my EE installation) in place regardless of how I change them in the comment form. If I log out of the CP and try to enter a comment through Coda’s preview mode I get an error.

If I preview externally in a browser (so far I’ve just tried Safari and FF3) the comment is accepted with the name and email address that I put in the form, ie. correctly, regardless of whether I am logged into the CP or not.

So I guess the weird comment behaviour (using the default name/email) is a glitch in the editing environment only and nothing I’m going to worry about.

9 posts, 5 voices