Open BackuPs opened 1 month ago
besides the warnings on php i get these after importing
Failed to import post tag : Invalid term name. Failed to import Post “WP 6.1 Media category blocks”: Could not insert post into the database. Failed to import Post “Keyboard navigation”: Could not insert post into the database. Failed to import Page “Lorem Ipsum”: Could not insert post into the database. Failed to import Post “Post Format: Aside”: Could not insert post into the database. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import Page “Page Markup And Formatting”: Could not insert post into the database. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import Post “Markup: HTML Tags and Formatting”: Could not insert post into the database. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import Post “Block category: Common”: Could not insert post into the database. Failed to import Post “Block category: Formatting”: Could not insert post into the database. Failed to import Post “Block category: Layout Elements”: Could not insert post into the database. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import Post “Block: Columns”: Could not insert post into the database. Failed to import post_tag : Invalid term name. Failed to import post_tag : Invalid term name. Failed to import Post “Block: Gallery”: Could not insert post into the database. Failed to import Post “Block: Image”: Could not insert post into the database. Failed to import Page “????????-Greek”: Could not insert post into the database.
class-wxr-parser-regex.php
That file is intended only on being used when the PHP install doesn't have any XML parser installed, and does look like it might be slightly not ideal.
Can you verify if your PHP installation has the XML and/or SimpleXML extensions enabled?
i just installed the wordpress-importer and imported. Anyways they are both enabled. But even if they where not enabled the deprecated message should not appear right?
[PHP Modules] ..... xml xmlreader xmlwriter xsl zip zlib
Just tried it again with a clean install same issue.
When i import the wordpress demo data i get these numerous warnings on the same line.
Warning: Undefined array key 1 in /var/docs/public/wp-content/plugins/wordpress-importer/parsers/class-wxr-parser-regex.php on line 65
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/docs/public/wp-content/plugins/wordpress-importer/parsers/class-wxr-parser-regex.php on line 118
Please resolve
I have debug mode enabled. A clean wordpress install with a default wp theme.
I am importing https://github.com/WordPress/theme-test-data file themeunittestdata.wordpress.xml