Hallo zusammen,
ich habe heute versucht mir das SEO Plugin von YOAST in mein Wordpress zu installieren.
Leider wollte es nicht ganz so, wie ich es mir vorgestellt hatte.
Fehlermeldung:
Fatal error: Cannot unset string offsets in ... plugins/wordpress-seo/admin/class-admin.php on line 622
Die PHP an der stelle sie so aus:
// Per taxonomy settings
foreach ( get_taxonomies() as $taxonomy ) {
if ( in_array( $taxonomy, array( 'nav_menu', 'link_category', 'post_format' ) ) )
continue;
if ( isset( $options['taxonomies-' . $taxonomy . '-not_in_sitemap'] ) ) {
$xml_opt['taxonomies-' . $taxonomy . '-not_in_sitemap'] = $options['taxonomies-' . $taxonomy . '-not_in_sitemap'];
unset( $options['taxonomies-' . $taxonomy . '-not_in_sitemap'] );
}
}
if ( get_option( 'wpseo_xml' ) === false )
update_option( 'wpseo_xml', $xml_opt );
unset( $xml_opt );
// Clean up other no longer used settings
unset( $options['wpseodir'], $options['wpseourl'] ); <!-- LINE 622 -->
Ich leider kein Plan was da der fehler sein könnte und würde mich über FEEDBACK sehr freuen.
MFG Sylvester