Woocommerce problem on error log

Hello there,

I have a online store with your theme:


I see on error log file that i have some proboem:

1: For some products the image it's not corect visible:

See one example here:


The error it's nex:

[16-Oct-2022 17:59:24 UTC] PHP Warning:  Trying to access array offset on value of type bool in /home/mechanicus/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1602

2: Also, for the seccond image from product where i have 2 pictures i see one error:


When i acces the seccond image i see this error:


I confirm you that i have the last version of theme and the last version of the woocommerce plugin!


Many regards!

Comments

  • Hello,

    Please, turn off all of the plugins (except basic WooCommerce), refresh your cache, and check if the problem persists.

    Moreover, if you use a child theme, switch to parent, and recheck it.

    Please also check if the same thing happens when you activate another theme like Twenty Twenty.

    Can you also tell me what PHP version you have, please?


    Thanks

  • Hello there and many thank's for your reply!

    So, i confirm you that i have desactivate all the plugin

    I have install another theme ( Twenty Twenty ) and i have the same problem!

    I use PHP 8 version!

    So, i belive there it's a problem with Woocommerce plugin!

    I have remove the woocommerce plugin and i have reinstall it but no succes..:(

  • I have check the line 1602 from the file and the cod line it's next:

    return '<div data-thumb="' . esc_url( $thumbnail_src[0] ) . '" data-thumb-alt="' . esc_attr( $alt_text ) . '" class="woocommerce-product-gallery__image"><a href="' . esc_url( $full_src[0] ) . '">' . $image . '</a></div>';


    Maibe that can help you!

  • WooCommerce has problems with PHP version 8 (and higher).

    If you need it to be working at the moment I suggest downgrading your PHP version below 8.

    However, it would be best if you contact their support and report this issue WooCommerce is not our product.


    Best regards

  • Hello,

    I have downgrade at 7.3 and still i have the same problem..!

    I will try to contat the woocomemrce support!


    Many regards and thank's for all your help..

Sign In or Register to comment.