admzttt
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Sorry, here is better formatting:
$args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'offset' => 0, 'tax_query' => array( 'relation' => 'AND', array( 'relation' => 'OR', array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => 69 ), array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => 70 ), array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => 7 ) ), array( 'relation' => 'OR', array( 'taxonomy' => 'country', 'field' => 'id', 'terms' => 13 ) ), array( 'relation' => 'OR', array( 'taxonomy' => 'partner', 'field' => 'id', 'terms' => 219 ), array( 'taxonomy' => 'partner', 'field' => 'id', 'terms' => 251 ) ) ), 'orderby' => 'date', 'order' => 'DESC' );
Forum: Plugins
In reply to: [Woo Donations] Plugin causes “critical error” in product reportI have spotted the same thing. It’s because the plugin is changing the global $product variable from a Product object into a string, the ID of the product.
It’s causing this fatal error:
PHP Fatal error: Uncaught Error: Call to a member function get_id() on string in /wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php:81which is this:
if ( ! $product || $product->get_id() !== $item->id ) { $product = wc_get_product( $item->id ); }
changing to this worked
if ( ! $product || is_string($product) || $product->get_id() !== $item->id ) { $product = wc_get_product( $item->id ); }
- This reply was modified 4 years, 3 months ago by admzttt.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Subscriptions payment processing errorI am experiencing the exact same problem. @boneyv Did you find a solution?
I am experiencing this same issue and those Privacy and Accounts settings were already disabledNot true, was looking in the wrong place
- This reply was modified 4 years, 4 months ago by admzttt.
Viewing 4 replies - 1 through 4 (of 4 total)