• Resolved mhogas

    (@mhogas)


    Hey guys,

    I’m getting an error “Fatal error: Call to a member function get_attributes() on bool in …/class-size-cart-for-woocommerce-public.php:452” .

    I advise validating the product object first eg: https://d.pr/i/Fjg08O .

    Marius

Viewing 1 replies (of 1 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Mhogas,

    Thanks for reaching out to us and for sharing the code snippet.

    Sure, we will check that type of case and add the condition so for the custom types of products never raise this type of Fatal error.

    Best Regards,
    Hitendra & Dotstore Team

Viewing 1 replies (of 1 total)

The topic ‘Validate $product before get_attributes’ is closed to new replies.