Hi there,
There's a conflict occurring between the MB Custom Post Types & Custom Taxonomies and Woocommerce on my website. Errors are appearing when I try to edit or view Woocommerce products. Please see below the error messages displayed in WordPress.
I conducted a test by deactivating the plugin, and the errors no longer occurred.
Please, tell me asap how to fix that.
I'm using version 2.6.2 of MB Custom Post Types & Custom Taxonomies.
I´m usingo also:
Meta Box 5.9.1
Meta Box Text Limiter 1.1.3
MB Frontend Submission 4.4.2
MB Custom Table 2.1.8
Here are the Notice/Error messages:
Notice: A função wc_get_product foi chamada incorretamente. wc_get_product não deve ser chamado antes que as ações woocommerce_init, woocommerce_after_register_taxonomy e woocommerce_after_register_post_type sejam concluídas. Backtrace: require('wp-admin/edit-form-advanced.php'), do_meta_boxes, post_submit_meta_box, do_action('post_submitbox_misc_actions'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Admin_Post_Types->product_data_visibility, wc_get_product, wc_doing_it_wrong Leia como Depurar o WordPress para mais informações. (Esta mensagem foi adicionada na versão 3.9.) in /home/storage/e/f1/a8/zydigital/public_html/wp-includes/functions.php on line 6031
Fatal error: Uncaught Error: Call to a member function get_catalog_visibility() on bool in /home/storage/e/f1/a8/zydigital/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:703 Stack trace: #0 /home/storage/e/f1/a8/zydigital/public_html/wp-includes/class-wp-hook.php(324): WC_Admin_Post_Types->product_data_visibility(Object(WP_Post)) #1 /home/storage/e/f1/a8/zydigital/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/storage/e/f1/a8/zydigital/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/storage/e/f1/a8/zydigital/public_html/wp-admin/includes/meta-boxes.php(342): do_action('post_submitbox_...', Object(WP_Post)) #4 /home/storage/e/f1/a8/zydigital/public_html/wp-admin/includes/template.php(1456): post_submit_meta_box(Object(WP_Post), Array) #5 /home/storage/e/f1/a8/zydigital/public_html/wp-admin/edit-form-advanced.php(707): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post)) #6 /home/storage/e/f1/a8/zydigital/ in /home/storage/e/f1/a8/zydigital/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php on line 703
Há um erro crítico no seu site. Verifique seu e-mail para instruções.
Thank you.