• Resolved diddle

    (@diddle)


    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 149

    I’m running PHP 7.3 and also tried PHP 7.4 but same result.

    Are you able to help please? Thanks in advance.

    • This topic was modified 3 years, 6 months ago by diddle.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @diddle,

    Thanks for using the plugin,

    We have shared the link to the updated plugin. Kindly download and install the plugin on your site and let us know.

    Download: Give WP Square

    Also, please make sure to delete the previous version first.

    Once you approve this then we will release an update of the plugin with the fix.

    Thanks

    Thread Starter diddle

    (@diddle)

    Thanks heaps for the update. That’s a little better in that now it connects and links with Square.

    However when I put through a transaction (in live mode), it returns the following:
    “Error: source_id – Field must not be blank”

    It records a donation but its marked as “Pending”.

    I’ve tried clearing the cache but no luck either. Any ideas on this one?

    Hi @diddle,

    Can you please check the console of your site for any possible errors on the payment page?

    Thanks

    Thread Starter diddle

    (@diddle)

    Yep – checked, no errors.

    I can DM you url if that helps?

    • This reply was modified 3 years, 6 months ago by diddle.

    Hi @diddle,

    Kindly open a support ticket by clicking on the link as displayed in the screenshot: Screenshot

    So, our technical team will assist you accordingly.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot use object of type stdClass as array’ is closed to new replies.