I’m making a clothing shop for a client, and recently I have had problems with the featured image on a single product page not displaying correctly. I turned on debug and it returned the message “Notice: Undefined offset: 0 in /wp-includes/meta.php on line 483” which reads “return $check;” in meta.php.
I tried to remove the “” in the string, which temporarily fixed the problem, and the single product page were displayed correctly. But this isn’t really a good and permanent solution, as the problem persists everytime I update WordPress. Any reason this happens?
Also, the “continue to checkout” on the cart page gets repeated for some reason, which I really dont get..
Hope you can shed some light on this 🙂Site URL: hidden
To fix the issue with 2 “Proceed to Checkout” buttons you need comment the code
<?php do_action( 'woocommerce_cart_collaterals' ); ?> in the file wp-content/themes/blanco/woocommerce/cart/cart.php on line 144.
Please provide us with a direct link of single product page where we can see the issue.
That solved the repeated “proceed to checkout” button. Any way to implement that to my child theme’s functions.php or somehow else to make it update safe. Or will this be sorted out in the next theme update?
Here you go:
As stated in my first post, the only solution I’ve found, which solves all the “bugs”, is modifying line 483 in wp-includes/meta-php. But I think this is a faulty way of solving it, partly because it gets overwritten on every wp update and I don’t think it is advisable to tinker with wordpress core files(?). I would greatly appreciate other solutions.
Did you get access to ftp?
Could it be related to either meta.php or product-image.php in /wp-content/themes/blanco/woocommerce/single-product? An incompatibility/override issue with woocommerce, since woocommerce notifies “Your theme has bundled outdated copies of WooCommerce template files”?
The topic ‘Images not displaying correctly on single product page’ is closed to new replies.
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty