• Resolved alexviar

    (@alexviar)


    I am encountering the following exception when trying to access the shop page:

    ( ! )?Fatal error: Uncaught Error: Call to a member function is_type() on null in D:\Proyectos\Tienda virtual\wp-content\plugins\variation-swatches-woo\inc\swatches.php on line?439

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexviar

    (@alexviar)

    It seems like the check for null products is absent in the file swatches.php. Should it be there?

    public function variation_attribute_html_shop_page() {
    global $product;
    if ( ! $this->settings[ CFVSW_GLOBAL ]['enable_swatches_shop'] ) {
    return;
    }

    if ( ! $this->requires_shop_settings() ) {
    return;
    }

    // Check for null products
    if ( ! $product ) {
    return;
    }

    if ( ! $product->is_type( 'variable' ) ) {
    return;
    }

    if ( ! $product->get_available_variations() ) {
    return;
    }
    • This reply was modified 4 months ago by alexviar.
    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @alexviar,

    Please share your shop page and the steps to replicate the issue so that we can investigate further, consult our developers, and provide you with an accurate response.

    Looking forward to hearing from you.

    Plugin Support Aamir

    (@aamiribsf)

    Hello @alexviar,

    It’s been a while since we haven’t heard from you so we are marking this thread as resolved.

    If you faced any other issues while using our product, feel free to start a new thread.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.