• Resolved Kakemphaton

    (@johanneseva)


    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://www.ads-software.com/plugins/polylang/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Chouby

    (@chouby)

    Hi Could you please tell me what’s your PHP version?

    Thread Starter Kakemphaton

    (@johanneseva)

    Hi, thank you for your fast answer ??
    PHP Version is 5.5.37

    Plugin Author Chouby

    (@chouby)

    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

    (@johanneseva)

    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

    (@johanneseva)

    OK, I checked this support thread:
    Another fatal error after update from 1.9.3 to 2.0.1

    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

    (@chrystl)

    Hi
    Chouby has just proposed a fix to the Content Aware Sidebars: 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

    (@chouby)

    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

    (@johanneseva)

    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.