-
Fatal error: Call to a member function get_cart_url() on a non-object in /home/rxusa/public_html/wp/wp-content/themes/luxury-wp/header/market.php on line 107
There appears to be an issue with the luxury-wp theme that is causing this error.
Also the site has this error “Your theme (Luxury WP Child) contains outdated copies of some WooCommerce template files.” they are probably related. Can you update the market.php for now, I made another post with all the outdated pages but you said you would fix them in next release.below is line 105 thru 112 from /luxury-wp/header/market.php
<?php
global $woocommerce;
if ( version_compare( WOOCOMMERCE_VERSION, “2.1.0” ) >= 0 ) {
$cart_url = apply_filters( ‘woocommerce_get_checkout_url’, WC()->cart->get_cart_url() );
}else{
$cart_url = esc_url( $woocommerce->cart->get_cart_url() );
}
?>
Fatal error: Call to a member function
This topic is: resolved