We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Comment form returning "Sorry but you have used characters that aren’t allowed" message

Development and Programming

Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

I have a comment form as below.

But when I try to post comments, even just the word “testing”, I get a message back telling me I’ve used characters that aren’t allowed. It will preview OK, but not submit.

What might be causing this?

It doesn’t matter what I select for “comment text formatting” and “comment html formatting” in the weblog comment posting preferences.

An example page is at http://www.savethepines.net/index.php/pages/news_item/70/

<div id="comment_on_this_article">
    <h2>Comment on this news article</h2>    
    <div id="comment_form">
         {exp:comment:form weblog="news" preview="pages/news_comment_preview"}    
             <label id="name_label" for="name">Name</label>
             <input id="name_input" type="text" name="name" value="{name}" id="name" size="37" /></p>
             <label id="email_label" for="email">Email Address</label>
             <input id="email_input" type="text" name="email" value="{email}" id="email" size="37" /></p>
             <label for="comment">Comment</label>
             <textarea name="comment" rows="8" cols="100" id="comment">{comment}</textarea></p>
             <input type="checkbox" name="notify_me" value="no" {notify_me} />Notify me of follow-up comments?
             <input type="submit" name="preview" value="Preview" /> <input type="submit" name="submit" value="Submit" /></p>
         {/exp:comment:form}       
    </div>  <!-- END #comment_form --> 
</div>
       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hmm now let me see!! 😊

Looks vaguely familiar that error message 😉

That would be my Unregistered Comment extension coming in to play I think.

Try turning that off for now and see if that does it for you. If so I will look into why it is doing that.

Best wishes,

Mark

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

Craig, can you confirm it’s an issue with the extension?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Craig, can you confirm it’s an issue with the extension?

I can pretty safely say that it will be 😉 That’s the default error message from my extension

Also just updated the extension to allow for space characters which I’m pretty sure is what will have been causing this. New version is attached to the first post in this thread here.

Sorry about that. I’ve not really used the extension all that much myself just someone asked about it and I thought I would have a go at making it, all for free of course 😉 so I never really came across any problems with it as I never really used it that much.

Hope that fixes it up for you, do let me know.

Best wishes,

Mark

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

Wow you blokes are really on the ball. Yes that’s it. I hereby vow to no longer bung in new extensions etc. until I am actually ready to use them.

Interestingly though someone else, probably one of you, managed to make a post in the meantime.

Thanks. Good luck with sorting out that extension Mark.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

Thanks for letting us know. I’ll move this to “Extensions”, then. Please don’t hesitate to post again as needed.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

Nope, I installed your update Mark and the problem persists. I’ve turned it off again.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
Nope, I installed your update Mark and the problem persists. I’ve turned it off again.

Craig just so that I can test this some more (it’s currently working on my system) could you let me know what name you are attempting to put into the Name field in the comments form for testing?

I’m just wondering where it’s bulking as on my system everything I test with is working fine so would like to see what is stopping it if possible.

Thanks.

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.