• Hi everyone!

    I installed woocommerce plugin, version 1.6.6, and after that, i added a new product for testing, and on the product page i get this error:

    Fatal error: Call to a member function get_related() on a non-object in C:\wamp\www\wp-content\themes\teeshirtlite\resources\theme-woocommerce.php on line 84
    Call Stack

    Time Memory Function Location
    1 0.0004 672232 {main}( ) ..\index.php:0
    2 0.0007 677016 require( ‘C:\wamp\www\wp-blog-header.php’ ) ..\index.php:17
    3 1.4066 37069920 require_once( ‘C:\wamp\www\wp-includes\template-loader.php’ ) ..\wp-blog-header.php:16
    4 1.4098 37080144 include( ‘C:\wamp\www\wp-content\plugins\woocommerce\templates\single-product.php’ ) ..\template-loader.php:43
    5 1.4980 37357768 woocommerce_get_template_part( ) ..\single-product.php:26
    6 1.4983 37357960 load_template( ) ..\woocommerce-core-functions.php:366
    7 1.4989 37378736 require( ‘C:\wamp\www\wp-content\plugins\woocommerce\templates\content-single-product.php’ ) ..\template.php:392
    8 1.5213 37366736 do_action( ) ..\content-single-product.php:59
    9 1.5412 37379152 call_user_func_array ( ) ..\plugin.php:403
    10 1.5412 37379184 wct_output_related_products( ) ..\plugin.php:403

    I’m running wordpress locally for now.

    Can anyone help?

    Thanks,
    RZarro

  • The topic ‘Fatal error: Call to a member function get_related() on a non-object’ is closed to new replies.