Chrystl on "[Plugin: Polylang] Update crashes complete multisite install"

ساخت وبلاگ

johanneseva
Member
Posted 23 hours ago #

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/

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

johanneseva
Member
Posted 22 hours ago #

Hi, thank you for your fast answer :-)
PHP Version is 5.5.37

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.

johanneseva
Member
Posted 1 hour ago #

Hello Chouby,

and thank you for the fix and for your fast answer... except it generates another crash:

Waing: 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
Waing: 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
Waing: 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

johanneseva
Member
Posted 1 hour ago #

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 :-)

Chrystl
Member
Posted 15 minutes ago #

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>

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 302 تاريخ : چهارشنبه 13 مرداد 1395 ساعت: 16:01