Fatal error: Call to undefined method WooCommerce::get_image_size()

This topic has 3 replies, 2 voices, and was last updated 9 years, 9 months ago ago by Robert Hall

  • Avatar: russlib
    russlib
    Participant
    February 12, 2015 at 03:33

    Hello!

    I just updated Woocommerce as requested in the dashboard. I’m not able to view anything on my website now.

    Fatal error: Call to undefined method WooCommerce::get_image_size() in /home/russlib/public_html/wp-content/themes/blanco/woocommerce/content-product.php on line 54

    Thank you!

    Alex

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: russlib
    russlib
    Participant
    February 12, 2015 at 06:27

    Is anyone have same problem? I fixed already. 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: Robert Hall
    Robert Hall
    Support staff
    February 12, 2015 at 08:48

    Hello,

    Thank you for your feedback.
    We appreciate very much.

    Regards,
    Robert Hall.

  • Viewing 3 results - 1 through 3 (of 3 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.