WooCommerce 2.3.1 Blanco Fatal error: Call to undefined method

Solved3 replies3 participantsUpdated by Robert Hall

  • Avatar: inkarna
    inkarna
    Participant

    Just updated to the newest WooCommerce 2.3.1 and have the following fatal error appearing.

    Fatal error: Call to undefined method WooCommerce::get_image_size() in [full path in private content] themes/blanco/woocommerce/content-product.php on line 54

    It is on the homepage of 2smock.com and rather a problem. I will try find a work around but it would appear that the Blanco theme needs to be updated again.

    Thanks for any suggestions or help, don’t want to mess up the code but can edit it a little if it solves the issue while the problem is being fixed.

    UPDATED: have temporarily edited the site to default to the blog so that I don’t loose too many customers in the mean time.

    Please, contact administrator
    for this information.

    3 Answers

    Avatar: russlib
    russlib
    Participant

    Got same problem. Just go to Appearance –> Editor –> content-product.php and replace

    
    $placeholder_width = $woocommerce->get_image_size( ‘shop_catalog_image_width’ );
    $placeholder_height = $woocommerce->get_image_size( ‘shop_catalog_image_height’ );

    with

    // $placeholder_width = $woocommerce->get_image_size( ‘shop_catalog_image_width’ );
    // $placeholder_height = $woocommerce->get_image_size( ‘shop_catalog_image_height’ );

    Works for me.

    Avatar: inkarna
    inkarna
    Participant

    Thank you russlib for that, working well now.

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    This bug will be fixed in the next theme update.
    Sorry for inconvenience.

    Regards,
    Robert Hall.

The issue related to '‘WooCommerce 2.3.1 Blanco Fatal error: Call to undefined method’' has been successfully resolved, and the topic is now closed for further responses