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.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.