Title: Error when adding a comment
Last modified: August 30, 2016

---

# Error when adding a comment

 *  Resolved [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/)
 * PHP 7.0.1 and WP 4.3.1
 * When posting a new comment it fails, with
 * SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON 
   data
 * Not sure if this is a PHP 7 problem or not. Maybe.
 * To see the error ENABLE
 *     ```
       define('WP_DEBUG_DISPLAY', true); // hides debug messages from showing in the browser
       ```
   
 * [https://wordpress.org/plugins/wpdiscuz/](https://wordpress.org/plugins/wpdiscuz/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881611)
 * This is a JS conflict with other plugins and current theme, Please make sure 
   without those it still returns this error. You should deactivate those one by
   one and check after each deactivation. Finally you should switch to default theme
   and test. I’d recommend backup the database before this manipulation.
    And yes,
   it may be, we’ve not tested wpDiscuz on PHP 7 yet.
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881614)
 * True, it seems to be a THEME conflict. With the default theme, no problem.
 * What must i do now ?
 * Thanks !
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881628)
 * Hi MassimoD,
    To fined and solve this issue, you should check all JS processes
   using browser debugger and investigate all errors. Also it needs to inspect HTML
   issues related to comment form. This theme can add some form components in wpDiscuz
   form and affect ajax submission. As you understand we can’t provide with this
   kind of individual and extended support for each WordPress theme. Those are thousands
   and unfortunately, not every theme is written with WordPress theme standards,
   this is the main reason of such an incompatibility with wpDiscuz. If you’ll need
   to fix this issue please contact to our custom support team here, they provide
   with paid plugin/theme integration services: [http://gvectors.com/contact-us/](http://gvectors.com/contact-us/)
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881629)
 * All clear.
 * Many thanks.
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881684)
 * I would like to add that i have switched back to PHP 5.6 and no problem. So it
   it a PHP 7 problem, it remains to find out if it is a theme or a plugin problem.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error when adding a comment’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [massimod](https://wordpress.org/support/users/massimod/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/error-when-adding-a-comment/#post-6881684)
 * Status: resolved