Images not displaying correctly on single product page

Solved10 replies3 participantsUpdated by Brian Johnson

  • Avatar: Olavhaug1
    Olavhaug1
    Participant

    Hi,
    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[0];” in meta.php.
    How it looks like

    I tried to remove the “[0]” 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?
    How it should look like. I can achieve this by modify said string in meta.php.

    Also, the “continue to checkout” on the cart page gets repeated for some reason, which I really dont get..
    repeated checkout button

    Hope you can shed some light on this 🙂

    Please, contact administrator
    for this information.

    10 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Your is asking for authorization before loading the content.
    Please provide us with the access.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Olavhaug1
    Olavhaug1
    Participant

    Oops..

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member

    Hello

    Please provide us also with ftp credentials.

    With best regards
    Brian Johnson

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    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.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Olavhaug1
    Olavhaug1
    Participant

    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:

    Please, contact administrator
    for this information.
    Avatar: Olavhaug1
    Olavhaug1
    Participant

    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?

    Avatar: Brian Johnson
    Brian Johnson
    Member

    Hello

    1. This wiil be fixed in next theme update.
    2. Please describe more widely the issue with single-product page.

    With best regards
    Brian Johnson

    Avatar: Olavhaug1
    Olavhaug1
    Participant

    See below:

    Please, contact administrator
    for this information.
    Avatar: Olavhaug1
    Olavhaug1
    Participant

    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”?

    Avatar: Brian Johnson
    Brian Johnson
    Member

    Hello

    Please try to disable 3-d party plugins one by one and check the issue. Maybe one of them is causing this.

    With best regards
    Brian Johnson

The issue related to '‘Images not displaying correctly on single product page’' has been successfully resolved, and the topic is now closed for further responses