Title: Update crashes complete multisite install
Last modified: September 1, 2016

---

# Update crashes complete multisite install

 *  Resolved [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * (@johanneseva)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/)
 * Hi,
 * Last update crashes my WordPress sites (Multisite) with following error:
 * `Parse error: syntax error, unexpected '[' in /EXAMPLE/wp-content/plugins/polylang/
   modules/wpml/wpml-config.php on line 78`
 *     ```
       76 foreach ( $this->xmls as $context => $xml ) {
       77   foreach ( $xml->xpath( 'admin-texts/key' ) as $key ) {
       78     $name = (string) $key->attributes()['name'];
       ```
   
 * I hat to deactivate the plugin.
    I wonder what got wrong – any help welcome!
 * Cheers,
    Johannes
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626073)
 * Hi Could you please tell me what’s your PHP version?
 *  Thread Starter [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * (@johanneseva)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626083)
 * Hi, thank you for your fast answer 🙂
    PHP Version is 5.5.37
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626120)
 * I would expect this syntax working on PHP 5.4 and higher (I tested with PHP 5.4).
   Nevertheless, please update to Polylang 2.0.1. It should fix this error.
 *  Thread Starter [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * (@johanneseva)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626207)
 * Hello Chouby,
 * and thank you for the fix and for your fast answer… except it generates another
   crash:
 *     ```
       Warning: simplexml_load_file() [function.simplexml-load-file]: /EXAMPLE/wp-content/plugins/content-aware-sidebars/wpml-config.xml:4: parser error : expected '>' in /EXAMPLE/wp-content/plugins/polylang/modules/wpml/wpml-config.php on line 64
   
       Warning: simplexml_load_file() [function.simplexml-load-file]: <custom-field action="ignore">_cas_taxonomy</custom-fields> in /EXAMPLE/wp-content/plugins/polylang/modules/wpml/wpml-config.php on line 64
   
       Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /EXAMPLE/wp-content/plugins/polylang/modules/wpml/wpml-config.php on line 64
   
       Fatal error: Call to a member function xpath() on a non-object in /EXAMPLE/wp-content/plugins/polylang/modules/wpml/wpml-config.php on line 79
       ```
   
 * Would be grateful for any hint. Cheers,
    Johannes
 *  Thread Starter [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * (@johanneseva)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626208)
 * OK, I checked this support thread:
    [Another fatal error after update from 1.9.3 to 2.0.1](https://wordpress.org/support/topic/another-fatal-error-after-update-from-193-to-201?replies=7)
 * Deactivating “Content Aware Sidebars” solves the problem for me – is ok as I 
   don’t need it so much as I need polylang.
 * Keep up with the good work 🙂
 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626214)
 * Hi
    Chouby has just proposed a fix to the Content Aware Sidebars: [https://github.com/intoxstudio/content-aware-sidebars/pull/6](https://github.com/intoxstudio/content-aware-sidebars/pull/6)
 * A quick fix: go in your plugin folder, open the wpml-config.xml then at line 
   4 remove the ‘s’ at the end of `</custom-fields>`:
 *     ```
       <custom-field action="ignore">_cas_taxonomy</custom-fields>
       ```
   
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626232)
 * Polylang 2.0.2 should not break anymore on a malformed wpml-config.xml file. 
   It will just ignore it.
 * However, as the file is ignored, multilingual features of the corresponding plugin/
   theme will not work as expected.
 * People having WP_DEBUG set to true will see warnings.
 *  Thread Starter [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * (@johanneseva)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626236)
 * Problem solved in Polylang 2.0.2 – see the mentionned thread for Details.
    A 
   big thank you to the plugin author!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Update crashes complete multisite install’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Kakemphaton](https://wordpress.org/support/users/johanneseva/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/update-crashes-complete-multisite-install/#post-7626236)
 * Status: resolved