• Hello,

    The product slider has stop working since WooCommerce update. On single product is showing the error message:

    Warning: Illegal string offset ‘width’ in /public_html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 222

    I already disabled all plugins (except WooCommerce) and activated Twenty Nineteen theme, the error continued.

    Another problem that happened after the update, is that WooCommerce does not regenerate the thumbnails anymore. The original image is displayed instead of the thumbnail.

    Someone can help me?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same problem here

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    The product slider has stop working since WooCommerce update. On single product is showing the error message:
    Warning: Illegal string offset ‘width’ in /public_html/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 222 I already disabled all plugins (except WooCommerce) and activated Twenty Nineteen theme, the error continued.

    This is a minor PHP warning which should not hinder any code execution. You can disable this by configuring your debug mode accordingly. Add this to your wp-config.php

    // Disable display of errors and warnings 
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    For reference: https://codex.www.ads-software.com/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

    Another problem that happened after the update, is that WooCommerce does not regenerate the thumbnails anymore. The original image is displayed instead of the thumbnail.
    Someone can help me?

    If the built in image regeneration fails, I would try a plugin such as: https://www.ads-software.com/plugins/regenerate-thumbnails/

    **Before you do that, please do make a full backup!**

    I am marking this as resolved, but feel free to follow up or open a new thread anytime.

    This issue still exists and shouldn’t be solved by a “hack” or third-party plugin in my opinion.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on product slider’ is closed to new replies.