Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not php 8.3 compatible? #176

Open
BackuPs opened this issue Oct 25, 2024 · 4 comments
Open

Not php 8.3 compatible? #176

BackuPs opened this issue Oct 25, 2024 · 4 comments

Comments

@BackuPs
Copy link

BackuPs commented Oct 25, 2024

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

@BackuPs
Copy link
Author

BackuPs commented Oct 25, 2024

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.

@dd32
Copy link
Member

dd32 commented Oct 25, 2024

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?

@BackuPs
Copy link
Author

BackuPs commented Oct 25, 2024

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?

Image

Image

[PHP Modules]
.....
xml
xmlreader
xmlwriter
xsl
zip
zlib

@BackuPs
Copy link
Author

BackuPs commented Oct 25, 2024

Just tried it again with a clean install same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants