2017-09-03 11 views
1

여기 내 워드 프레스 사이트워드 프레스 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; 
    } 
    } 
+1

'wpml-config.xml' 파일의 내용을 게시 할 수 있습니까? – Matthew

+0

는 여기있다 : \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

답변

2

그것은 인해 잘못된 wpml에 할 수있는 파일 에러 내용입니다 -config.xml 파일.

예를 들어, this 지원 WordPress 포럼 페이지에서 유사한 문제를 찾을 수 있으며 원인은 </admin-texts> 앞에 </key> 닫는 태그가 없습니다.

업데이트 : 귀하의 의견에

, 당신도 그렇게 또 다른 가능성은 YITH WooCommerce 제휴 플러그인은 wpml-config.xml 파일이 있거나하지 않는다는 것입니다, yith - woocommerce-AF filiates 경고 언급 빈.

개발자와 루트 디렉토리 플러그인이나 테마의 에 wpml-config.xml 파일을 배치해야합니다 :

wpml-config.xml에 대한 polylang documentation는 다음과 같은 언급하고있다.

+0

나는 그것으로 보였지만, 모든 것이 잘 –

+0

보이는 예, 귀하의 XML 파일을 보았다, 괜찮아 보인다. 경고입니다. "[03-Sep-2017 10:12:36 UTC] PHP 경고 :"simplexml_load_file()에 대한 경고 또는 그 경고 전후에 다른 경고가 있습니까? – user8230352

+0

실제로 세 가지가 있습니다 :'[03-Sep-2017 20:19:47 UTC] PHP 경고 : simplexml_load_file() : /home/syriacar/public_html/syria-cart.com/wp-content/plugins/yith -woocommerce-affiliates/wpml-config.xml : 1 : 파서 ​​오류 : /home/syriacar/public_html/syria-cart.com/wp-content/plugins/polylang/modules/wpml/wpml-config.php의 문서가 비어 있습니다. on line 53 PHP 경고 : simplexml_load_file() : /home/syriacar/public_html/syria-cart.com/wp-content/plugins/polylang/modules/wpml/ [03-Sep-2017 20:19:48 UTC] wpml-config.php on line 53 –