Thanks for reporting this. I just released version 1.6 which should fix those notices.
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.
Very sorry. Version 1.6.1 fixes the activation error.
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
What PHP version are you each using? You can see you PHP version in your WP dashboard –> WooCommerce –> System status.
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
Thank you for the information. Version 1.6.2 (just released) should fix these errors. Thanks for your patience.
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.
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.
I’m using Storefront. Atts showing everywhere but not on basket and cart.
HTH
Steve