Title: syntax error invalid character when comment posted
Last modified: November 23, 2016

---

# syntax error invalid character when comment posted

 *  [Eric Malalel](https://wordpress.org/support/users/teachlynx/)
 * (@teachlynx)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/syntax-error-invalid-character-when-comment-posted/)
 * I use latest version of WP and of your plugin and my site is hosted on https.
   
   Each time I post a comment, I get this message: syntax error invalid character
   Hower, if I refresh the page, the comment is posted. I have a plugin which does
   some action (send an XPerience API statement to a LRS) on “comment_post” hook.
   The statements are also sent fine. When I deactivate my plugin, the error disappears.
   What should I do?

Viewing 1 replies (of 1 total)

 *  [KylinCheng](https://wordpress.org/support/users/kylincheng/)
 * (@kylincheng)
 * [9 years ago](https://wordpress.org/support/topic/syntax-error-invalid-character-when-comment-posted/#post-9169580)
 * I got this problem as well. The plugin stops working.

Viewing 1 replies (of 1 total)

The topic ‘syntax error invalid character when comment posted’ is closed to new 
replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [KylinCheng](https://wordpress.org/support/users/kylincheng/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/syntax-error-invalid-character-when-comment-posted/#post-9169580)
 * Status: not resolved