|
|
@@ -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,
|