Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of compatibility with Woocommerce Memberships, causes Fatal Error #32

Open
timridley opened this issue Sep 2, 2019 · 2 comments
Open

Comments

@timridley
Copy link

• Issue for users with WPJM using Woocommerce for payment plans with Memberships plugin
• Fatal error: Uncaught Error: Call to a member function get() in /wp-includes/query.php:28

@shadimanna
Copy link

I have the same issue and I believe I found the fix. Instead of calling "get_query_var( $this->slug )" directly in line 161, you need to call "$query->get_query_var( $this->slug )", since global $wp_query; is not set yet.

@ldivito
Copy link

ldivito commented May 23, 2022

Thanks @shadimanna that change fixed the problem I was currently having with WpForms!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants