我面对下面的错误在我的WordPress网站WordPress的PHP的警告:使用simplexml_load_file()
[03-Sep-2017 10:12:36 UTC] PHP Warning: simplexml_load_file(): in /home/syriacar/public_html/syria-cart.com/wp-content/plugins/polylang/modules/wpml/wpml-config.php on line 53
这里是文件出错的内容
foreach ($plugins as $plugin) {
if (file_exists($file = WP_PLUGIN_DIR . '/' . dirname($plugin) . '/wpml-config.xml') && false !== $xml = simplexml_load_file($file)) {
$this->xmls[ dirname($plugin) ] = $xml;
}
}
你可以发布'wpml-config.xml'文件的内容吗? – Matthew
这里是: \t <定制的类型> \t \t <定制型翻译= “1”>项目定制型> \t定制的类型> \t \t \t <键名= “mh_mharty”> \t \t \t <键名= “mharty_date_format”/> \t \t \t <键名= “mharty_seo_home_titletext”/> \t \t \t <键名=“MH arty_seo_home_descriptiontext” /> \t \t \t <键名= “mharty_seo_home_keywordstext”/> \t \t \t管理员的正文> WPML-配置> –