PHP致命错误-找不到XMLReader [英] PHP Fatal Error - XMLReader not found

查看:83
本文介绍了PHP致命错误-找不到XMLReader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Linux上设置了appservice并安装了Wordpress. (开箱即用的Azure Wordpress).

I have set up an appservice on Linux and have Wordpress installed. (out of the box Wordpress from Azure).

我从Envato市场购买了一个wordpress主题(theCraft),并且正在尝试安装该主题.主题和所需的插件已正确安装.但是当我下次尝试导入演示内容时,出现服务器错误500.当我检查日志文件时 我收到此错误消息.

I purchased a wordpress theme (theCraft) from Envato market and I am trying to install the theme. The theme and the required plugins installed correctly. But when I next try to import the demo content i get a Server Error 500. When I checked the log file i got this error message. 

[2018年8月10日07:58:44 UTC] PHP致命错误:未捕获的错误:在/home/site/wwwroot/wp-content/plugins/one-click-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php:123中找不到类'XMLReader'
堆栈跟踪:
#0/home/site/wwwroot/wp-content/plugins/one-click-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php(331):ProteusThemes \ WPContentImporter2 \ WXRImporter- > get_reader('/home/site/wwwr ...')
#1/home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/Importer.php(80):ProteusThemes\WPContentImporter2\WXRImporter->import('/home/site/wwwr. ..')
#2/home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/Importer.php(137):OCDI \ Importer-> import('/home/site/wwwr ... ')
#3/home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/OneClickDemoImport.php(294):OCDI \ Importer-> import_content('/home/site/wwwr ... ')
#4/home/site/wwwroot/wp-includes/class-wp-hook.php(286):OCDI \ OneClickDemoImport-> import_demo_data_ajax_callback('')

[10-Aug-2018 07:58:44 UTC] PHP Fatal error:  Uncaught Error: Class 'XMLReader' not found in /home/site/wwwroot/wp-content/plugins/one-click-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php:123
Stack trace:
#0 /home/site/wwwroot/wp-content/plugins/one-click-demo-import/vendor/proteusthemes/wp-content-importer-v2/src/WXRImporter.php(331): ProteusThemes\WPContentImporter2\WXRImporter->get_reader('/home/site/wwwr...')
#1 /home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/Importer.php(80): ProteusThemes\WPContentImporter2\WXRImporter->import('/home/site/wwwr...')
#2 /home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/Importer.php(137): OCDI\Importer->import('/home/site/wwwr...')
#3 /home/site/wwwroot/wp-content/plugins/one-click-demo-import/inc/OneClickDemoImport.php(294): OCDI\Importer->import_content('/home/site/wwwr...')
#4 /home/site/wwwroot/wp-includes/class-wp-hook.php(286): OCDI\OneClickDemoImport->import_demo_data_ajax_callback('')


在搜索此错误时,返回的内容是" 托管在php配置中禁用了XML模块."随后,我上传了一个phpinfo.php并访问了它,但看起来好像启用了XML.见下文...  让我知道解决此问题的任何想法...谢谢

On googling this error, what came back was " hosting has XML module disabled in the php config."  I subsequently uploaded a phpinfo.php and accessed it but looks like XML is enabled. See below...   Let me know of any thoughts to resolve this issue... Thanks

xml
XML支持 活动
XML命名空间支持 活动
libxml2版本 2.9.7

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.9.7

xmlrpc
核心库版本 xmlrpc-epi v.0.51
php扩展版本 7.1.17
author 丹·利比
主页 http://xmlrpc-epi.sourceforge.net
Epinions.com

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 7.1.17
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com

谢谢

西蒙·弗朗西斯

推荐答案

可能有不同的根本原因500条错误消息.子状态代码将帮助您更好地理解问题.您可以...吗 共享完整的错误消息以及子状态代码?

There could be different root causes for 500 error messages. Sub-status codes will help you understand the issue better. Could you share the complete error message along with Sub-status code?

我了解您的XML支持处于活动状态".您可以简单地添加phpinfo();.您的PHP代码以查看您的服务器配置 并查看是否已安装XML.如果可能,请手动安装php-xml,看看它是否可以解决您的问题.

I understand that your XML support is ‘active’. You can simply add phpinfo(); to your PHP code to review your server configuration and find whether XML installed or not. If possible install php-xml manually and see if it resolves your issue.


这篇关于PHP致命错误-找不到XMLReader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆