Support » Plugin: WooCommerce Show Attributes » Woo 3.0.1

  • Hi, My attributes are correctly displaying on the product and shop loop pages (and email). All is well there, but within the order and cart pages, I’m seeing the below errors (with a var dump).

    array(1) { ["pa_edition-number"]=> string(3) "001" } 
    Warning: Illegal string offset 'is_variation' in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 113
    
    Warning: Illegal string offset 'is_visible' in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 118
    

    Hope this helps,
    Steve

    • This topic was modified 5 years, 1 month ago by stevehoo.
Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author isabel104

    (@isabel104)

    Thanks for reporting this. I just released version 1.6 which should fix those notices.

    Thread Starter stevehoo

    (@stevehoo)

    Hi, I’ve updated, but, “Plugin could not be activated because it triggered a fatal error.”
    Fatal error: Using $this when not in object context in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 807

    HTH
    Steve

    I too am receiving the same error as Steve. When trying to activate after updating the error is received.

    Plugin Author isabel104

    (@isabel104)

    Very sorry. Version 1.6.1 fixes the activation error.

    Thread Starter stevehoo

    (@stevehoo)

    Have updated. No longer seeing the activation error. However, on the basket page:
    Fatal error: Call to a member function get_variation() on string in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 111
    Shop loop and product pages are still working well.
    HTH
    Steve

    I updated the latest version and get this message:
    Fatal error: Call to a member function get_visible() on array in /home/mysite/public_html/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 111

    Plugin Author isabel104

    (@isabel104)

    What PHP version are you each using? You can see you PHP version in your WP dashboard –> WooCommerce –> System status.

    PHP

    v5.6.27

    Thread Starter stevehoo

    (@stevehoo)

    I was on 5.6 but have just upgraded to 7.0. And now I’m getting some other fatal error:

    Fatal error: Uncaught Error: Call to a member function get_variation() on string in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php:111 Stack trace: #0 /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php(367): WooCommerce_Show_Attributes->the_attributes(Object(WC_Product_Variation), 'span', NULL, NULL, NULL) #1 /home/xxx/mysite.com/wp-includes/class-wp-hook.php(300): WooCommerce_Show_Attributes->show_atts_on_cart('<a href="https:...', Array) #2 /home/xxx/mysite.com/wp-includes/plugin.php(203): WP_Hook->apply_filters('<a href="https:...', Array) #3 /home/xxx/mysite.com/wp-content/plugins/woocommerce/templates/cart/cart.php(83): apply_filters('woocommerce_car...', '<a href="https:...', Array, '4b76fe67a0547e0...') #4 /home/xxx/mysite.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php(203): include('/home/xxx...') #5 /home/wp_23j in /home/xxx/mysite.com/wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php on line 111

    Still all good on loop and product pages, just the basket and checkout giving the above error and I assume still emails.

    HTH and doesn’t confuse more 😉
    Steve

    Plugin Author isabel104

    (@isabel104)

    Thank you for the information. Version 1.6.2 (just released) should fix these errors. Thanks for your patience.

    Thread Starter stevehoo

    (@stevehoo)

    Hi Isabel104,
    I’ve updated. No errors on basket and cart page, but no attributes! They’re showing on loop, product and email, but nothing to be seen in basket and cart.

    HTH
    Steve

    I am having the same issue. I am using the latest version of woo commerce (3.03) and show attributes. Also using the default cart template, no override.

    No attributes are being displayed in the cart. They -are- being shown on the single-product page.

    Plugin Author isabel104

    (@isabel104)

    What themes are you using? Do you experience the same issue with Twenty Seventeen theme? If your themes are from the WordPress Theme directory, I can try to reproduce this issue which each of your themes. Right now, I can’t produce this issue.

    I can reproduce the issue in the Twenty Seventeen theme. I see attributes under cross-sells, i.e. “you might be interested in”, but not in the cart itself.

    Thread Starter stevehoo

    (@stevehoo)

    I’m using Storefront. Atts showing everywhere but not on basket and cart.

    HTH
    Steve

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Woo 3.0.1’ is closed to new replies.