2017-09-03 4 views
1

Ich bin vor den folgenden Fehler in meinem Wordpress-WebsiteWordpress PHP Warning: 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 

und hier ist die Datei Fehlerinhalt

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

Können Sie den Inhalt der Datei 'wpml-config.xml' posten? – Matthew

+0

hier ist es: \t \t \t Projekt \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t

Antwort

2

Es aufgrund ungültiger WPML sein könnte -config.xml Datei.

Zum Beispiel auf this Unterstützung WordPress-Forum-Seite, können Sie ein ähnliches Problem finden und die Ursache fehlte </key> Closing-Tag vor </admin-texts>.

UPDATE:

In Ihre Kommentare, Sie auch Yith-WooCommerce-af Filiates erwähnen warnen, so eine andere Möglichkeit ist, dass die Yith WooCommerce Affiliates Plugin nicht die WPML-config.xml hat oder leer.

Die polylang documentation über WPML-config.xml erwähnt folgenden:

Developpers die WPML-config.xml-Datei im Stammverzeichnis des Plug-in oder ein Thema setzen müssen.

+0

ich in sie aussehen, aber alles sieht –

+0

fein Ja, ich habe deine XML-Datei gesehen, scheint gut. Ist diese Warnung "[03-Sep-2017 10:12:36 UTC] PHP Warnung:" nur Warnung über simplexml_load_file() oder gibt es auch andere vor oder nach dieser Warnung? – user8230352

+0

tatsächlich gibt es drei hier sind sie: '[03-Sep-2017 20:19:47 UTC] PHP Warnung: simplexml_load_file(): /home/syriacar/public_html/syria-cart.com/wp-content/plugins/yith -woocommerce-affiliates/wpml-config.xml: 1: Parserfehler: Das Dokument ist leer in /home/syriacar/public_html/syria-cart.com/wp-content/plugins/polylang/modules/wpml/wpml-config.php in Zeile 53 [03-Sep-2017 20:19:48 UTC] PHP Warnung: simplexml_load_file(): in /home/syriacar/public_html/syria-cart.com/wp-content/plugins/polylang/modules/wpml/ wpml-config.php on line 53 ' –

Verwandte Themen