Images not displaying correctly on single product page

This topic has 11 replies, 3 voices, and was last updated 8 years, 12 months ago ago by Brian Johnson

  • Avatar: Olavhaug1
    Olavhaug1
    Participant
    April 27, 2015 at 10:15

    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
    Support staff
    April 27, 2015 at 12:28

    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
    April 27, 2015 at 12:30

    Oops..

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 27, 2015 at 13:29

    Hello

    Please provide us also with ftp credentials.

    With best regards
    Brian Johnson

    Avatar: Eva
    Eva Kemp
    Support staff
    April 27, 2015 at 14:27

    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
    April 27, 2015 at 22:02

    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
    April 29, 2015 at 12:04

    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
    April 29, 2015 at 12:26

    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
    April 29, 2015 at 12:46

    See below:

    Please, contact administrator
    for this information.
    Avatar: Olavhaug1
    Olavhaug1
    Participant
    April 29, 2015 at 13:05

    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
    April 29, 2015 at 15:59

    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

  • Viewing 11 results - 1 through 11 (of 11 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.