• Resolved pts2018

    (@pts2018)


    [Tue Mar 01 07:06:35.599147 2022] [cgi:error] [pid 85274:tid 140559132358400] [client 89.237.79.235:19460] AH01215: wc_get_product was called incorrectly. \xd7\x90\xd7\x99\xd7\x9f \xd7\xa6\xd7\x95\xd7\xa8\xd7\x9a \xd7\x9c\xd7\xa7\xd7\xa8\xd7\x95\xd7\x90 \xd7\x9c\xd7\xa4\xd7\xa2\xd7\x95\xd7\x9c\xd7\x94 wc_get_product, \xd7\x9c\xd7\xa4\xd7\xa0\xd7\x99 \xd7\xa9\xd7\x91\xd7\x95\xd7\xa6\xd7\xa2\xd7\x95 \xd7\x94\xd7\xa4\xd7\xa2\xd7\x95\xd7\x9c\xd7\x95\xd7\xaa woocommerce_init, woocommerce_after_register_taxonomy \xd7\x95-woocommerce_after_register_post_type. Backtrace: require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘after_setup_theme’), WP_Hook->do_action, WP_Hook->apply_filters, fusion_builder_activate, FusionBuilder::get_instance, FusionBuilder->__construct, FusionBuilder->init, do_action(‘fusion_builder_before_init’), WP_Hook->do_action, WP_Hook->apply_filters, fusion_element_form, Fusion_Builder_Form_Helper::fusion_form_creator_form_list, get_the_title, apply_filters(‘the_title’), WP_Hook->apply_filters, SFN_Cart_Addons->the_title, wc_get_product, wc_doing_it_wrong. This message was added in version 3.9.: /dh/cgi-system/php81.cgi, referer: https://www.light1.co.il/wp-admin/edit.php?post_type=product

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @pts2018

    This kind of problem is usually caused by a Theme, Plugin, or custom code that is incorrectly trying to use the function wc_get_product.

    I’d recommend doing a conflict test, you can:

    • Temporarily switch your theme to Storefront;
    • Remove/comment any custom code that you’ve added that may be calling the mentioned function;
    • Disable all plugins except for WooCommerce;
    • Repeat the action that is causing the problem;

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here.

    Let us know how it goes! My very best!

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘error 520/521/525’ is closed to new replies.