30 7 月

網上商店出現了Fatal Error

如果出現了 : Fatal error: Call to undefined method WooCommerce::getimagesize() in /home/info/domains/camera-world.nl/public_html/wp-content/themes/minshop/woocommerce/woocommerce-template.php on line. 衹要修改下列的代碼:

 

Solution 1 :

Replace

$woocommerce->getimagesize(‘shopthumbnailimage_width’);

with:
wcgetimagesize(‘shopthumbnailimagewidth’);

 

 

Solution 2 :

 

Replace

if ( ! $placeholder_width )

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

if ( ! $placeholder_height )

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

With
if ( ! $placeholder_width )

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

if ( ! $placeholder_height )

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

Share this

© 2014 MassMedia. All rights reserved.