Pārlūkot izejas kodu

Fixing WP import

svalavuo 4 dienas atpakaļ
vecāks
revīzija
3595af4c18
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      includes/wordpress_import.php

+ 3 - 0
includes/wordpress_import.php

@@ -448,6 +448,9 @@ class WordPressImport {
                 }
                 
                 $placeholders = str_repeat('?,', count($postIds) - 1) . '?';
+                $this->log("Post IDs to map: " . implode(', ', $postIds));
+                $this->log("Placeholders: " . $placeholders);
+                $this->log("Parameter count: " . count($postIds));
                 $this->log("Executing publication mapping query with " . count($postIds) . " post IDs");
                 $pubStmt = $this->targetDb->query("
                     SELECT id, wp_post_id FROM publications