Title: Comments with wrong comment_post_id
Last modified: August 31, 2016

---

# Comments with wrong comment_post_id

 *  [thethunderbird99](https://wordpress.org/support/users/thethunderbird99/)
 * (@thethunderbird99)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/)
 * Some comments are being saved into the database with the wrong post_id and displaying
   on the wrong posts. Sometimes they are even replies with the correct comment_parent.
   Each one I have found has comment_agent as “Mozilla/5.0 (iPhone; CPU iPhone OS
   7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/
   11B554a Safari/9537.53”
 * Any idea what could be causing this?
 * [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, 5 months ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160056)
 * It seems some plugin or theme function overwrite global Post object and Post 
   ID in single content type template files, thus comment box gets wrong post data.
   You should test it deactivated plugin and default theme.
 * Also please deactivate and try with default comment system. We need make sure
   it comes from wpDiscuz. Leave URL to allow us test it as well. Show an example
   of wrong comment.
 *  Thread Starter [thethunderbird99](https://wordpress.org/support/users/thethunderbird99/)
 * (@thethunderbird99)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160214)
 * The comment_post_id works with the theme disabled (stock theme) or with wpDiscuz
   disabled (stock comment form).
 * Here’s how to reproduce the issue:
 * 1. Using a mobile user agent, go to [https://swimswam.staging.wpengine.com/](https://swimswam.staging.wpengine.com/)
   
   2. View one article 3. Post a comment on a second article
 * The comment will be attributed to the first article, even if you were replying
   to a comment on the first article. I am echoing post->ID directly above the comment
   form and it is correct.
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160248)
 * Could you clone your website in localhost or in other hosting server and do the
   same test? This may be wpengine hosting issue. Also, do the same test with WordPress
   default theme and without other active plugins. After these tests we’ll be able
   to detect problem reason. Using just a URL and posting a test comment doesn’t
   give any helpful information to support this issue. wpDiscuz works fine on all
   our test websites, it doesn’t have such problem. This issues definitely comes
   from outside wpDiscuz.
 *  Thread Starter [thethunderbird99](https://wordpress.org/support/users/thethunderbird99/)
 * (@thethunderbird99)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160280)
 * Is the post ID passed through Javascript at all? It may not be modified properly
   when switching between pages. Is anyone else using the plugin with a jQuery Mobile
   theme? This seems to be some kind of conflict with jQuery Mobile not with WP 
   Engine.
 *  [nsoutter](https://wordpress.org/support/users/nsoutter/)
 * (@nsoutter)
 * [10 years ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160415)
 * I’ve had the same problem.
 * I found part of the problem, and why my buttons were missing….
 * This plugin conflicts (naturaly) with the “comments” plugin from Jetpack. “Comments”
   MUST BE OFF in Jetpack for this to work.

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

The topic ‘Comments with wrong comment_post_id’ 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
 * 3 participants
 * Last reply from: [nsoutter](https://wordpress.org/support/users/nsoutter/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/comments-with-wrong-post_id/#post-7160415)
 * Status: not resolved