Archived topic
Site library import does not work
21 replies · Started by Michael on August 20, 2020
My hoster told me that this php-xml extension is already active by default.
So this is the issue why I am getting errors while doing the import with WP 5.5?
You may want to relay this part of your error_log to them:
[Thu Aug 20 18:36:51.460986 2020] [-:error] stderr: PHP Warning: DOM support is not enabled in ./wp-content/plugins/gp-premium/sites/libs/wxr-importer/WXRImporter.php on line 392, referer ./wp-admin/themes.php?page=generatepress-site-library
I believe that warning happens when php-xml is not enabled. However, it could be that an option within that extension that needs to be enabled: https://stackoverflow.com/questions/44045478/how-do-i-enable-the-dom-extension-in-the-php-ini
I have this exact issue, did you get a solution in the end?
I have DOM, xml, xmlreader, xmlwriter, xmlrpc, simplexml all installed but it doesnt seem to work?
Running freebsd 12.1.
Hi Sam
I changed the hoster - that was the solution ;)
The server configuration on my previous hoster was just slightly weird I guess...
Cheers
Michael
Hi Sam - can you raise a new topic and share any errors or screenshots you're receiving on import and we can advise.
Hi David,
No need! It turns out to be an issue in the PHP 7.4 package on freebsd, for a which a fix has just been committed.
For anyone who has ended up here like i did, chasing leads around the internet on google to troubleshoot this, i would direct you to this bug report https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249886
and this thread https://forums.freebsd.org/threads/php-7-4-dom-support-not-enabled.77228
Thanks!
Glad to hear that !