svalavuo 4 днів тому
батько
коміт
9401cac941
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      includes/wordpress_import.php

+ 5 - 0
includes/wordpress_import.php

@@ -411,6 +411,11 @@ class WordPressImport {
                 $this->connectWordPress();
             }
             
+            // Test basic WordPress comments query first
+            $testStmt = $this->wpDb->query("SELECT COUNT(*) FROM wp_comments");
+            $commentCount = $testStmt->fetchColumn();
+            $this->log("WordPress comments table has {$commentCount} total comments");
+            
             // Get WordPress comments with post info in one query
             $stmt = $this->wpDb->query("
                 SELECT c.comment_ID, c.comment_post_ID, c.comment_author, c.comment_author_email,