我面對下面的錯誤在我的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-配置> –