I have this error in my staging site:
Notice: sku was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(’/themes/x/woocommerce.php’), x_get_view, X_View_Router::render, include(’/themes/x/framework/views/renew/woocommerce.php’), woocommerce_content, wc_get_template_part, load_template, require(’/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, shop_sku, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in / [ LOCAL DEV ENVIRONMENT FOLDERS] /wp-includes/functions.php on line 4773
The product images do not show up on the product archive pages. The above notice might not be the culprit, but it’s the only issue I’ve seen.
I tried disabling my x-child theme without any luck. The backtrace points to lots of things, but I can’t make sense of it and can’t find the issue. I did however enable the TwentyNineteen theme and that removed the issue, so I know it’s theme-based.
Using:
- WordPress 5.2.0 (latest at the time of writing)
- X Theme 6.5.5 (latest at the time of writing)
- Cornerstone 3.5.4 (latest at the time of writing)
I found this thread, but it didn’t shed any real light on the issue: