Hallo an alle,
ich setze gerade einen Shop mit WP und WooCommerce auf. Alles lief gut. Nachdem ich Germanized installiert habe, bekomme ich beim “Erstellen” sowie beim “Speichern” bzw. “Aktualisieren” von Produkten die Kritischer-Fehler-Seite angezeigt.
Der debug-log von WordPress sieht so aus:
[23-May-2023 10:09:21 UTC] PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, WP_Error given in /websitepath/wp-includes/taxonomy.php:1916
Stack trace:
0 /websitepath/wp-includes/taxonomy.php(1916): array_map('intval', Object(WP_Error))
1 /websitepath/wp-content/plugins/woocommerce-germanized/includes/abstracts/abstract-wc-gzd-product.php(2150): wp_delete_object_term_relationships(875, Array)
2 /websitepath/wp-content/plugins/woocommerce-germanized/includes/admin/meta-boxes/class-wc-germanized-meta-box-product-data.php(308): WC_GZD_Product->save()
3 /websitepath/wp-includes/class-wp-hook.php(310): WC_Germanized_Meta_Box_Product_Data::update_terms(Object(WC_Product_Simple))
4 /websitepath/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
5 /websitepath/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
6 /websitepath/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(682): do_action('woocommerce_pro…', Object(WC_Product_Simple), Array)
7 /websitepath/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(266): WC_Product_Data_Store_CPT->handle_updated_props(Object(WC_Product_Simple))
8 /websitepath/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Product_Data_Store_CPT->update(Object(WC_Product_Simple))
9 /websitepath/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1428): WC_Data_Store->update(Object(WC_Product_Simple))
10 /websitepath/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php(469): WC_Product->save()
11 /websitepath/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php(348): WC_Admin_Post_Types->quick_edit_save(875, Object(WC_Product_Simple))
12 /websitepath/wp-includes/class-wp-hook.php(308): WC_Admin_Post_Types->bulk_and_quick_edit_save_post(875, Object(WP_Post))
13 /websitepath/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
14 /websitepath/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
15 /websitepath/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php(314): do_action('woocommerce_pro…', 875, Object(WP_Post))
16 /websitepath/wp-includes/class-wp-hook.php(310): WC_Admin_Post_Types->bulk_and_quick_edit_hook(875, Object(WP_Post))
17 /websitepath/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
18 /websitepath/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
19 /websitepath/wp-includes/post.php(4715): do_action('save_post', 875, Object(WP_Post), true)
20 /websitepath/wp-includes/post.php(4817): wp_insert_post(Array, false, true)
21 /websitepath/wp-admin/includes/post.php(439): wp_update_post(Array)
22 /websitepath/wp-admin/includes/ajax-actions.php(2117): edit_post()
23 /websitepath/wp-includes/class-wp-hook.php(308): wp_ajax_inline_save('')
24 /websitepath/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
25 /websitepath/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
26 /websitepath/wp-admin/admin-ajax.php(188): do_action('wp_ajax_inline-…')
27 {main}
thrown in /websitepath/wp-includes/taxonomy.php on line 1916
Ob das Problem direkt mit der Installation von Germanized aufgetreten ist oder erst nachdem ich dort diverse Einstellungen vorgenommen habe, weiß ich nicht sicher.
Im Problembehandlungsmodus (Health Plugin) – alles deaktiviert außer WooCommerce – funktioniert alles. Wenn ich dann Germanized aktiviere tritt das beschriebene Problem direkt wieder auf.
Ich hoffe, dass jemand hierzu eine Lösung hat!
Beste Grüße