Home Forums WoodMart support forum Warning woocommerce.php line 376

Warning woocommerce.php line 376

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #37963

    TW4
    Participant

    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 )

    #37964

    Artem Temos
    Keymaster

    Hi,

    Please, provide us your admin access and FTP so we can login and check this on your side.

    Thank you in advance.

    #37971

    TW4
    Participant

    Hello
    Tell me that it is necessary to modify the file and I modify it

    #37975

    TW4
    Participant

    I send you the requested data

    #37977

    Artem Temos
    Keymaster

    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'] );
    	}
    #37978

    TW4
    Participant

    Hi

    Not work, I have sent you the access data, can you try it?

    #37980

    Artem Temos
    Keymaster

    Sorry, but the FTP seems to be wrong since we can’t connect.

    #37984

    TW4
    Participant

    Tell me your country of access, to add permissions

    #37986

    Artem Temos
    Keymaster

    We are from

    #37988

    TW4
    Participant

    Can you try?

    #38014

    Artem Temos
    Keymaster

    By the way, try to update the theme to the latest version firstly.

Viewing 11 posts - 1 through 11 (of 11 total)