-
Notifications
You must be signed in to change notification settings - Fork 41
Cannot use object of type stdClass as array in /wp-content/plugins/btcpay-for-woocommerce/class-wc-gateway-bitpay.php:1235 #6
Comments
no, I think some version are not properly setting $transient->response :/ |
No more info about this error? because I can't know the line failing here |
What version of woocommerce/wordpress are you using? |
Thanks for your answer Nicolas :)
Oh, that's good to know.
I'm running WordPress 4.9.5, and WooCommerce 3.3.5 (through wordpress.com managed hosting service).
I started noticing the problem when the Wordpress admin panel suddenly started returning 500 Internal Server Error. After asking wordpress.com support they came up with the stack trace that I posted above. The exact location of the error is (this line appears to be here in the most recent commit:
|
I just fixed with https://github.com/btcpayserver/woocommerce-plugin/releases/tag/v2.2.24 (748fd3f) can you give a try? |
I installed the new release. The dashboard is working fine now, of course we'll see more when a new version is published to trigger the new version code path :) I'll keep you in touch in any case. |
thanks, I am closing this now. Reopen if it happens again. I think this should be fine now. At worse you won't see the new update, but it will not crash! |
Version: 2.2.22 (02bbdb5)
Error log:
I don't know much about how the update detection works, but at first glance it seems that this block of code in function
display_transient_update_plugins()
:could simply be rewritten by:
$transient->response['btcpay-for-woocommerce/class-wc-gateway-bitpay.php'] = $obj;
The text was updated successfully, but these errors were encountered: