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

PHP Notice: Trying to get property of non-object #2

Closed
gedex opened this issue May 19, 2016 · 2 comments
Closed

PHP Notice: Trying to get property of non-object #2

gedex opened this issue May 19, 2016 · 2 comments
Assignees
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.

Comments

@gedex
Copy link
Member

gedex commented May 19, 2016

Here's the notice:

PHP Notice:  Trying to get property of non-object in /srv/www/wordpress-default/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php on line 488

I believe $source->source is a string, containing token, instead of an object.

@gedex gedex added priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug. labels May 19, 2016
@gedex
Copy link
Member Author

gedex commented May 19, 2016

/cc @mikejolley

@gedex gedex self-assigned this May 23, 2016
@gedex
Copy link
Member Author

gedex commented May 23, 2016

This is happens when "Enable Payment via Saved Cards" is disabled.

gedex added a commit that referenced this issue May 23, 2016
The value of `$souce->source` is a string not an object.

Fixes #2.
@gedex gedex closed this as completed in #7 May 23, 2016
gedex referenced this issue May 23, 2016
Fixed notice trying to get property of non-object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant