Plugin Author
Chouby
(@chouby)
Hi Could you please tell me what’s your PHP version?
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.
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
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 🙂
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.
Problem solved in Polylang 2.0.2 – see the mentionned thread for Details.
A big thank you to the plugin author!