<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Comments after the migration - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 07 Nov 2026 20:09:13 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Comments after the migration</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11891</link>
                        <pubDate>Wed, 27 Oct 2021 12:31:47 +0000</pubDate>
                        <description><![CDATA[So we may consider this topic as resolved, right?]]></description>
                        <content:encoded><![CDATA[So we may consider this topic as resolved, right?]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11891</guid>
                    </item>
				                    <item>
                        <title>RE: Comments after the migration</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11884</link>
                        <pubDate>Wed, 27 Oct 2021 10:53:15 +0000</pubDate>
                        <description><![CDATA[Hello, I can&#039;t do that, It&#039;s huge the website. The code that I found that fixing that problem is below but is for php 5 version and I have php 7.
&lt;?php
include(&quot;wp-config.php&quot;);
if (!m...]]></description>
                        <content:encoded><![CDATA[<p>Hello, I can't do that, It's huge the website. The code that I found that fixing that problem is below but is for php 5 version and I have php 7.</p>
<div class="line number1 index0 alt2"><code class="php plain">&lt;?php</code></div>
<div class="line number2 index1 alt1"><code class="php keyword">include</code><code class="php plain">(</code><code class="php string">"wp-config.php"</code><code class="php plain">);</code></div>
<div class="line number3 index2 alt2"><code class="php keyword">if</code> <code class="php plain">(!mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)) {  </code><code class="php keyword">die</code><code class="php plain">(</code><code class="php string">'Could not connect: '</code> <code class="php plain">. mysql_error());  }</code></div>
<div class="line number4 index3 alt1"><code class="php keyword">if</code> <code class="php plain">(!mysql_select_db(DB_NAME)) {  </code><code class="php keyword">die</code><code class="php plain">(</code><code class="php string">'Could not connect: '</code> <code class="php plain">. mysql_error());  }</code></div>
<div class="line number5 index4 alt2"> </div>
<div class="line number6 index5 alt1"><code class="php variable">$result</code> <code class="php plain">= mysql_query(</code><code class="php string">"SELECT term_taxonomy_id FROM "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"term_taxonomy"</code><code class="php plain">);</code></div>
<div class="line number7 index6 alt2"><code class="php keyword">while</code> <code class="php plain">(</code><code class="php variable">$row</code> <code class="php plain">= mysql_fetch_array(</code><code class="php variable">$result</code><code class="php plain">)) {</code></div>
<div class="line number8 index7 alt1"><code class="php spaces">  </code><code class="php variable">$term_taxonomy_id</code> <code class="php plain">= </code><code class="php variable">$row</code><code class="php plain">;</code></div>
<div class="line number9 index8 alt2"><code class="php spaces">  </code><code class="php functions">echo</code> <code class="php string">"term_taxonomy_id: "</code><code class="php plain">.</code><code class="php variable">$term_taxonomy_id</code><code class="php plain">.</code><code class="php string">" count = "</code><code class="php plain">;</code></div>
<div class="line number10 index9 alt1"><code class="php spaces">  </code><code class="php variable">$countresult</code> <code class="php plain">= mysql_query(</code><code class="php string">"SELECT count(*) FROM "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"term_relationships WHERE term_taxonomy_id = '$term_taxonomy_id'"</code><code class="php plain">);</code></div>
<div class="line number11 index10 alt2"><code class="php spaces">  </code><code class="php variable">$countarray</code> <code class="php plain">= mysql_fetch_array(</code><code class="php variable">$countresult</code><code class="php plain">);</code></div>
<div class="line number12 index11 alt1"><code class="php spaces">  </code><code class="php variable">$count</code> <code class="php plain">= </code><code class="php variable">$countarray</code><code class="php plain">;</code></div>
<div class="line number13 index12 alt2"><code class="php spaces">  </code><code class="php functions">echo</code> <code class="php variable">$count</code><code class="php plain">.</code><code class="php string">"&lt;br /&gt;"</code><code class="php plain">;</code></div>
<div class="line number14 index13 alt1"><code class="php spaces"> </code><code class="php plain">mysql_query(</code><code class="php string">"UPDATE "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"term_taxonomy SET count = '$count' WHERE term_taxonomy_id = '$term_taxonomy_id'"</code><code class="php plain">);</code></div>
<div class="line number15 index14 alt2"><code class="php spaces">        </code><code class="php plain">}</code></div>
<div class="line number16 index15 alt1"> </div>
<div class="line number17 index16 alt2"><code class="php variable">$result</code> <code class="php plain">= mysql_query(</code><code class="php string">"SELECT ID FROM "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"posts"</code><code class="php plain">);</code></div>
<div class="line number18 index17 alt1"><code class="php keyword">while</code> <code class="php plain">(</code><code class="php variable">$row</code> <code class="php plain">= mysql_fetch_array(</code><code class="php variable">$result</code><code class="php plain">)) {</code></div>
<div class="line number19 index18 alt2"><code class="php spaces">  </code><code class="php variable">$post_id</code> <code class="php plain">= </code><code class="php variable">$row</code><code class="php plain">;</code></div>
<div class="line number20 index19 alt1"><code class="php spaces">  </code><code class="php functions">echo</code> <code class="php string">"post_id: "</code><code class="php plain">.</code><code class="php variable">$post_id</code><code class="php plain">.</code><code class="php string">" count = "</code><code class="php plain">;</code></div>
<div class="line number21 index20 alt2"><code class="php spaces">  </code><code class="php variable">$countresult</code> <code class="php plain">= mysql_query(</code><code class="php string">"SELECT count(*) FROM "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"comments WHERE comment_post_ID = '$post_id' AND comment_approved = 1"</code><code class="php plain">);</code></div>
<div class="line number22 index21 alt1"><code class="php spaces">  </code><code class="php variable">$countarray</code> <code class="php plain">= mysql_fetch_array(</code><code class="php variable">$countresult</code><code class="php plain">);</code></div>
<div class="line number23 index22 alt2"><code class="php spaces">  </code><code class="php variable">$count</code> <code class="php plain">= </code><code class="php variable">$countarray</code><code class="php plain">;</code></div>
<div class="line number24 index23 alt1"><code class="php spaces">  </code><code class="php functions">echo</code> <code class="php variable">$count</code><code class="php plain">.</code><code class="php string">"&lt;br /&gt;"</code><code class="php plain">;</code></div>
<div class="line number25 index24 alt2"><code class="php spaces">  </code><code class="php plain">mysql_query(</code><code class="php string">"UPDATE "</code><code class="php plain">.</code><code class="php variable">$table_prefix</code><code class="php plain">.</code><code class="php string">"posts SET comment_count = '$count' WHERE ID = '$post_id'"</code><code class="php plain">);</code></div>
<div class="line number26 index25 alt1"><code class="php spaces">        </code><code class="php plain">}</code></div>
<div class="line number27 index26 alt2"><code class="php plain">?&gt;</code></div>
<div> </div>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>dimitra</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11884</guid>
                    </item>
				                    <item>
                        <title>RE: Comments after the migration</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11676</link>
                        <pubDate>Wed, 20 Oct 2021 09:07:31 +0000</pubDate>
                        <description><![CDATA[Hi dimitra,
We&#039;re really sorry, but we don&#039;t have any clue what was going wrong during the migration process. We highly recommend you to make the migration over again. Use for example Dupli...]]></description>
                        <content:encoded><![CDATA[<p>Hi dimitra,</p>
<p>We're really sorry, but we don't have any clue what was going wrong during the migration process. We highly recommend you to make the migration over again. Use for example Duplicator plugin. </p>
<p>If you don't remake the migration you may also have some other kinds of issues later. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11676</guid>
                    </item>
				                    <item>
                        <title>Comments after the migration</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11664</link>
                        <pubDate>Tue, 19 Oct 2021 12:44:53 +0000</pubDate>
                        <description><![CDATA[After the migration of my website to a new domain, some articles have a false number of comments,  some of them look that have the same amount of comments. But if you visit one of this artic...]]></description>
                        <content:encoded><![CDATA[<p>After the migration of my website to a new domain, some articles have a false number of comments,  some of them look that have the same amount of comments. But if you visit one of this article, you will not see that number of comments. I have cleared the cache and I have found one script that you can run to fix this but is for PHP 5 and I have PHP 7. I change the script so be able to run in newer version of PHP, but it doesn't work.</p>
<p>Any help?</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>dimitra</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/comments-after-the-migration/#post-11664</guid>
                    </item>
							        </channel>
        </rss>
		