• Resolved jayhan

    (@jayhan)


    Hello WooCommerce Support,

    I hope this message finds you well. I’ve recently encountered a couple of PHP notices on my website and wanted to seek your guidance regarding these. The notices are as follows and they keep continuing in the debug.log file:

    [20-Sep-2023 00:56:02 UTC] PHP Notice: Undefined index: width in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 276 [20-Sep-2023 00:56:02 UTC] PHP Notice: Undefined index: height in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277

    I’ve attached the system status report from WooCommerce for your reference. Could you please assist me in understanding and resolving these notices?

    Thank you in advance for your time and assistance.

    Best regards,
    Jay

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @jayhan

    I’ve recently encountered a couple of PHP notices on my website and wanted to seek your guidance regarding these.

    I understand you’ve recently run into some PHP notices on your website and are looking for guidance. Let’s dive into this.

    It appears you’re experiencing PHP notices related to image regeneration in WooCommerce. Specifically, you’ve been noticing undefined index notices for ‘width’ and ‘height’ in the class-wc-regenerate-images.php file. Thanks for providing a detailed system status report – it’s a great help in troubleshooting this issue.

    I want to reassure you that PHP notices aren’t errors, but rather informational messages highlighting potential issues. They won’t disrupt your site’s functionality, but they could fill up your debug.log file if left unattended.

    The notices you’re seeing likely stem from the ‘width’ and ‘height’ indices not being defined in the array used by the image regeneration process. This could be due to a range of reasons, such as a conflict with another plugin or a theme, or an issue with the image files themselves.

    Here are some steps you can take to troubleshoot this issue:

    1. Disable all plugins except WooCommerce: This will help identify if there’s a conflict with another plugin. If the notices stop after disabling other plugins, reactivate them one by one until the notices return. This will pinpoint the conflicting plugin.
    2. Switch to a default WordPress theme: If the issue isn’t plugin-related, it might be your theme. Try temporarily switching to a default WordPress theme like Storefront to see if the notices stop. Here’s a helpful guide on how to test for conflicts: ?? How to Test for Plugin and Theme Conflicts.
    3. Regenerate Thumbnails: Navigate to WooCommerce > Status > Tools > Regenerate shop thumbnails, and click the Regenerate button next to it. This can sometimes fix issues with image dimensions.

    If these steps don’t resolve the PHP notices, we’ll need more information to continue our troubleshooting. Specifically, knowing when you first noticed these notices and if they coincided with a specific event, such as a plugin update or a theme change, would be helpful.

    Could you also share any fatal error logs (if any) under WooCommerce > Status > Logs with us?

    Once you have that, please paste it inside a Code block in your reply, or use https://pastebin.com/ to paste it and share the link with us.

    Thanks for your patience and cooperation. We’re here to help you get this sorted.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notices Related to Image Regeneration in WooCommerce’ is closed to new replies.