You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice: Trying to get property 'nonce' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 557
Notice: Trying to get property 'application_id' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 580
Notice: Trying to get property 'access_token' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584
Fatal error: Uncaught TypeError: Argument 1 passed to EED_SquareOnsiteOAuth::encryptString() must be of the type string, null given, called in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584 and defined in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php:793 Stack trace: #0 /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(584): EED_SquareOnsiteOAuth::encryptString(NULL, false) #1 /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(743): EED_SquareOnsiteOAuth::refreshToken(Object(EE_Payment_Method)) #2 /dom16100/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(113): EED_SquareOnsiteOAuth::checkAndRefreshToken(Object(EE_Payment_Method)) #3 /dom16100/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(64): EventEspresso\Square\payment_methods\SquareOnsite\forms\SettingsForm->valid in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 793
Steps to reproduce
Not sure. However, I do remember what I did on the site.
An error of type E_ERROR was caused in line 793 of the file /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php. Error message: Uncaught TypeError: Argument 1 passed to EED_SquareOnsiteOAuth::encryptString() must be of the type string, null given, called in /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584 and defined in /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php:793
Stack trace:
#0 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(584): EED_SquareOnsiteOAuth::encryptString(NULL, false) #1 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(743): EED_SquareOnsiteOAuth::refreshToken(Object(EE_Payment_Method)) #2 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(113): EED_SquareOnsiteOAuth::checkAndRefreshToken(Object(EE_Payment_Method)) #3 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/
Tony shared this feedback in Slack support-desk:
It means the keys have been set nothing and the pm is trying to use them. So the problem is not the fatal itself.... its that the keys are being blanked
The text was updated successfully, but these errors were encountered:
Hey there @knazart I saw Square had a fatal on a testing site on a subsite on MakeEventsNotWar. Tony mentioned it is from the keys for Square being blanked as he has seen this with some Event Espresso customers.
In another conversation, you mentioned issues like this can be tough to debug. I wrote out the steps that I followed to get set up with Square here:
I don't understand how the keys are stored but a couple of ideas popped into my head:
Does Square interact with a transient (temporary storage)?
Does Square use a cron to check the keys are valid on a schedule? Or when someone browses to the Square payment method screen?
Does Square use one set of API credentials when connecting? (I'm wondering if connecting one site and then connecting to a different site would cause a conflict.)
Is there any additional information that you need that would be help to debug this issue?
This happens on refreshToken which should occur every 2 days, triggered by a cron.
I did patch up the fatal and notices just now. This is not null being saved, this is null being returned from the API as a response on the refresh request. And that's because somehow we are ending up without a refresh_token while being connected (authenticated). And refreshToken shouldn't run if the client is not connected...
I did check the logs on lorenzochrome21 and yes, I do see a "Could not find the refresh token.", and the refresh_token is really missing.
Notice: Trying to get property 'nonce' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 557
Notice: Trying to get property 'application_id' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 580
Notice: Trying to get property 'access_token' of non-object in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584
Fatal error: Uncaught TypeError: Argument 1 passed to EED_SquareOnsiteOAuth::encryptString() must be of the type string, null given, called in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584 and defined in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php:793 Stack trace: #0 /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(584): EED_SquareOnsiteOAuth::encryptString(NULL, false) #1 /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(743): EED_SquareOnsiteOAuth::refreshToken(Object(EE_Payment_Method)) #2 /dom16100/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(113): EED_SquareOnsiteOAuth::checkAndRefreshToken(Object(EE_Payment_Method)) #3 /dom16100/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(64): EventEspresso\Square\payment_methods\SquareOnsite\forms\SettingsForm->valid in /dom16100/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 793
Steps to reproduce
Not sure. However, I do remember what I did on the site.
In this issue (https://github.com/eventespresso/eventsmart.com-website/issues/886#issuecomment-1018780369), I noticed that two sites deactivated the Square payment method. On this new site where I reported this issue, I followed these steps:
Reported or seen on
https://lorenzochrome21.makeeventsnotwar.com/wp-admin/admin.php?page=espresso_payment_settings#espresso_squareonsite_payment_settings
Other notes
I saw the same error on one of my testing sites (https://enzo12staging.wpengine.com/wp-admin/admin.php?page=espresso_payment_settings#espresso_squareonsite_payment_settings):
An error of type E_ERROR was caused in line 793 of the file /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php. Error message: Uncaught TypeError: Argument 1 passed to EED_SquareOnsiteOAuth::encryptString() must be of the type string, null given, called in /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 584 and defined in /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php:793
Stack trace:
#0 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(584): EED_SquareOnsiteOAuth::encryptString(NULL, false)
#1 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php(743): EED_SquareOnsiteOAuth::refreshToken(Object(EE_Payment_Method))
#2 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/payment_methods/SquareOnsite/forms/SettingsForm.php(113): EED_SquareOnsiteOAuth::checkAndRefreshToken(Object(EE_Payment_Method))
#3 /nas/content/live/enzo12staging/wp-content/plugins/eea-square-gateway/
Tony shared this feedback in Slack support-desk:
The text was updated successfully, but these errors were encountered: