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

Undefined property: WC_Gateway_Twocheckout::$debug #7

Closed
d1ch0t0my opened this issue Apr 28, 2015 · 14 comments
Closed

Undefined property: WC_Gateway_Twocheckout::$debug #7

d1ch0t0my opened this issue Apr 28, 2015 · 14 comments

Comments

@d1ch0t0my
Copy link

Hi Craig,

I have 3 instances of the following error in admin area and one on the payment section of the front end:

WC_Gateway_Twocheckout::$debug in /home/mysite/beta2/wp-content/plugins/twocheckout/wc-twocheckout.php on line 47

Notice: Undefined property: WC_Gateway_Twocheckout::$debug in /home/mysite/beta2/wp-content/plugins/twocheckout/wc-twocheckout.php on line 47

Notice: Undefined property: WC_Gateway_Twocheckout::$debug in /home/mysite/beta2/wp-content/plugins/twocheckout/wc-twocheckout.php on line 47

Using this with WC 2.3.8 and WP 4.2.1. Have disabled all other plugins except WC and yours but no change. Any ideas on how to fix?

Thanks for any help.

@d1ch0t0my
Copy link
Author

..so as a follow up to this apparently $woocommerce->logger has been removed from WC 2.3.5 onwards and plugins need to use the new WC_Logger class. I know you must be busy but an update to your very handy plugin would be appreciated to deal with this when you have time. Thanks mate.

@craigchristenson
Copy link
Owner

Thanks dude, I'll get a fix out shortly.

@jondcampbell
Copy link

Really looking forward to this fix as well.
thanks craig.

@craigchristenson
Copy link
Owner

Sorry for the delay, I was able to replicate on the latest woocommerce version and fix the issue. Please pull down master and let me know.

@jondcampbell
Copy link

I think that fixed it! Thanks.

@jondcampbell
Copy link

Hmm, maybe it didn't, still seeing errors at the checkout page.

@craigchristenson
Copy link
Owner

Hrmm.. Not able to replicate thus far. Can you add the errors your getting on the checkout page as well as your woocommerce version?

@craigchristenson
Copy link
Owner

@d1ch0t0my @jondcampbell are you still experiencing errors? Please let me know so I can help troubleshoot if you are.

@d1ch0t0my
Copy link
Author

Hi Craig. Sorry to say I still see the following error in the backend WooCommerce > settings section:

WC_Gateway_Twocheckout::$debug in /home/mysite/public_html/wp-content/plugins/twocheckout/wc-twocheckout.php on line 51

..and the following error on all checkout pages:

Notice: Undefined property: WC_Gateway_Twocheckout::$debug in /home/mysite/public_html/wp-content/plugins/twocheckout/wc-twocheckout.php on line 51

This is on a clean install of WP 4.2.2 / WC 2.3.11 by the way.

@craigchristenson
Copy link
Owner

Thanks for the information, I was able to find and fix the cause. The notice should be resolved now in master.

@craigchristenson
Copy link
Owner

@d1ch0t0my,@jondcampbell
Were you able to test again against master? I was able to replicate the issues you reported on the latest woocommerce version and I was hoping to verify that the recent commits to master fixed your issues.

@jondcampbell
Copy link

Yes, the error is gone for me with the latest update.

@d1ch0t0my
Copy link
Author

Sorry for delay in getting back Craig. Yes I can confirm you've nailed it. Thanks for your hard work.

@craigchristenson
Copy link
Owner

Glad to hear it, thanks.

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