Warning woocommerce.php line 376
-
Hello. The theme was successfully updated, but there was an error. help understand what the problem is?
( Warning: A non-numeric value encountered in /…/wp-content/themes/woodmart/inc/woocommerce.php on line 376 )
Hi,
Please, provide us your admin access and FTP so we can login and check this on your side.
Thank you in advance.
Hello
Tell me that it is necessary to modify the file and I modify it
I send you the requested data
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_action( 'after_setup_theme', 'woodmart_add_image_size' );
function woodmart_add_image_size() {
if( ! function_exists( 'wc_get_image_size' ) ) return;
$shop_catalog = wc_get_image_size( 'woocommerce_thumbnail' );
$width = (int) ( $shop_catalog['width'] * 2 );
$height = (int) ( $shop_catalog['height'] * 2 );
add_image_size( 'woodmart_shop_catalog_x2', $width, $height, $shop_catalog['crop'] );
}
Hi
Not work, I have sent you the access data, can you try it?
Sorry, but the FTP seems to be wrong since we can’t connect.
Tell me your country of access, to add permissions
By the way, try to update the theme to the latest version firstly.