Cannot use object of type stdClass as array
-
Hi,
Whilst trying to link up to my Square account, I click the “Connect with Square” button, get taken to the Square login page, login successfully, see the message with my site URL, click “That’s my site – redirect me”.
On returning to WordPress, I get this error from WordPress:
“There has been a critical error on this website. Please check your site admin email inbox for instructions”Looking at the logs, I found this error:
[25-Aug-2021 11:09:04 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home2/site/public_html/wp-content/plugins/wpexperts-square-for-give/givewp-square.php:149
Stack trace:
#0 /home2/site/public_html/wp-includes/class-wp-hook.php(303): GAS_Give_Square_Payment->gas_square_access_token_success(”)
#1 /home2/site/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#2 /home2/site/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /home2/site/public_html/wp-admin/admin.php(175): do_action(‘admin_init’)
#4 /home2/site/public_html/wp-admin/edit.php(10): require_once(‘/home2/site/…’)
#5 {main}
thrown in /home2/site/public_html/wp-content/plugins/wpexperts-square-for-give/givewp-square.php on line 149I’m running PHP 7.3 and also tried PHP 7.4 but same result.
Are you able to help please? Thanks in advance.
- The topic ‘Cannot use object of type stdClass as array’ is closed to new replies.