WordPress: Errori di WPML

Per risolvere i seguenti errori del plugin “WPML” di WordPress:

Warning: explode() expects parameter 2 to be string, array given in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6270

Warning: Invalid argument supplied for foreach() in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6272

Warning: explode() expects parameter 2 to be string, array given in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6275

Sostituite nel  file wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:

la linea  6270:

$include_arr = explode(‘,’, $q->query_vars[ ‘include’ ]);

con:

$include_arr = explode(‘,’, (string) $q->query_vars[ ‘include’ ]);

la linea  6272:

foreach($include_arr as $include_arr_id)

con:

foreach((array)$include_arr as $include_arr_id)

Lascia un commento