Posted: February 20, 2022 at 5:52 pm
Twice in one week, we have had the “Square checkout JavaScript was not loaded properly” error message pop up on our site. Disconnecting and reconnecting the Square payment method quickly fixes the issue, but we’ve losing sales each time it happens. Any ideas on why this is happening? |
|
Hi there, That’s strange, do you mind if I take a look over the logs entires EE creates for this and see if anything stands out? If so you can send temp login details using this form: https://eventespresso.com/send-login-details/ You can check yourself in Event Espresso -> Payment methods -> logs. However, I can’t tell you what to actually look for as I don’t know what will be causing it so it’s basically reviewing the logs for anything that stands out. |
|
I have the exact same issue! Following. |
|
Sorry, I don’t own the site in question and I don’t have the authority to share login details. I looked at the logs and didn’t see anything worth noting. I don’t know what’s going on, but this is a pretty significant flaw… If anyone else has this happen, please copy the error message that appears on the square payments tab in admin. I had noticed it last time, but disconnected and reconnected before thinking about copying it. |
|
Hi Tony, Cheers, Payment Logs for https://omnilargess.com Query: array ( 0 => array ( ‘LOG_type’ => ‘gateway’, ‘LOG_time’ => array ( 0 => ‘BETWEEN’, 1 => array ( 0 => EventEspresso\core\domain\entities\DbSafeDateTime::__set_state(array( ‘_datetime_string’ => ”, ‘_error_log_dir’ => ”, ‘date’ => ‘2021-08-25 07:00:00.000000’, ‘timezone_type’ => 3, ‘timezone’ => ‘UTC’, )), 1 => EventEspresso\core\domain\entities\DbSafeDateTime::__set_state(array( ‘_datetime_string’ => ”, ‘_error_log_dir’ => ”, ‘date’ => ‘2022-02-26 07:59:59.000000’, ‘timezone_type’ => 3, ‘timezone’ => ‘UTC’, )), ), ), ), ‘order_by’ => array ( ‘LOG_time’ => ‘DESC’, ), ) array ( 0 => array ( ‘Log.LOG_ID’ => ‘636’, ‘Log.LOG_time’ => ‘2022-02-25 17:07:37’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 1 => array ( ‘Log.LOG_ID’ => ‘635’, ‘Log.LOG_time’ => ‘2022-02-25 17:06:40’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 2 => array ( ‘Log.LOG_ID’ => ‘634’, ‘Log.LOG_time’ => ‘2022-02-24 17:14:00’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 3 => array ( ‘Log.LOG_ID’ => ‘633’, ‘Log.LOG_time’ => ‘2022-02-24 17:13:58’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 4 => array ( ‘Log.LOG_ID’ => ‘632’, ‘Log.LOG_time’ => ‘2022-02-24 17:13:52’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:31:”Request access request response”;s:252:”{“webhook_action”:”eea_square_grab_access_token”,”square_slug”:”squareonsite”,”livemode”:”1″,”client_id”:”sq0idp-6fNz_8vadLmwPXVPCLzqlQ”,”expires_at”:”2022-03-26T17:13:49Z”,”merchant_id”:”MLRZ6H92ST3FF”,”application_id”:”sq0idp-6fNz_8vadLmwPXVPCLzqlQ”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 5 => array ( ‘Log.LOG_ID’ => ‘631’, ‘Log.LOG_time’ => ‘2022-02-24 17:13:37’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Request deauthorize”;s:167:”{“headers”:{},”body”:”{“success”:true}”,”response”:{“code”:200,”message”:”OK”},”cookies”:[],”filename”:null,”http_response”:{“data”:null,”headers”:null,”status”:null}}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 6 => array ( ‘Log.LOG_ID’ => ‘630’, ‘Log.LOG_time’ => ‘2022-02-24 17:13:30’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:11:”OAuth error”;s:98:”{“error”:{“code”:”NO_ACCESS_TOKEN”,”message”:”One or more authentication parameters are missing”}}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 7 => array ( ‘Log.LOG_ID’ => ‘628’, ‘Log.LOG_time’ => ‘2022-02-24 17:12:33’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:12:”Square error”;s:56:”Could not get the refresh token and/or other parameters.”;}’, ‘Log.LOG_wp_user’ => ‘0’, ), 8 => array ( ‘Log.LOG_ID’ => ‘629’, ‘Log.LOG_time’ => ‘2022-02-24 17:12:33’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:12:”Square error”;s:17:”Refresh the token”;}’, ‘Log.LOG_wp_user’ => ‘0’, ), 9 => array ( ‘Log.LOG_ID’ => ‘627’, ‘Log.LOG_time’ => ‘2022-02-24 17:12:32’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:33:”Could not find the refresh token.”;s:257:”{“expires_at”:”2022-03-19t170608z”,”merchant_id”:”MLRZ6H92ST3FF”,”livemode”:true,”using_square_oauth”:true,”throttle_time”:”2022-02-24 17:12:32″,”locations_list”:{“LDZ9BBA9WAN1P”:”Office”,”L71EB0Y2CT79A”:”Omnilargess Services”},”domain_verified”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘0’, ), 10 => array ( ‘Log.LOG_ID’ => ‘626’, ‘Log.LOG_time’ => ‘2022-02-23 17:08:49’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), 11 => array ( ‘Log.LOG_ID’ => ‘625’, ‘Log.LOG_time’ => ‘2022-02-23 16:59:11’, ‘Log.OBJ_ID’ => ’20’, ‘Log.OBJ_type’ => ‘Payment_Method’, ‘Log.LOG_type’ => ‘gateway’, ‘Log.LOG_message’ => ‘a:1:{s:19:”Domain registration”;s:21:”{“status”:”VERIFIED”}”;}’, ‘Log.LOG_wp_user’ => ‘2’, ), ) |
|
Happened again today. Error message displayed on the Square Payments admin page was: “There was an error while doing the authorization health check: “One or more authentication parameters are missing”. Please re-authenticate (Connect) for the Square payment method to function properly.” Is anyone else using the Square payment plugin WITHOUT having this recurring issue? |
|
I have had the same issue for sometime, and waiting for a fix. I check the Square plugin everyday to fix the issue. |
|
Looks like it has happened two Saturdays in a row for me. Does the “authorization health check” run every 7 days? Is there a way to disable this check? Everything works fine until the check runs. |
|
Hi there,
No, it runs every time the Square settings page is loaded. However, that function will also check if your access_token is valid and refresh it every 6 days. If an error is thrown when sending the request to Square to confirm a valid connection, it shows the above error.
It doesn’t sound like the auth check is the problem, something seems to be happening on your ‘refresh’ call, but I can’t reproduce this. @Ted, I know we’ve spoken about this before, can I take a look at the logs on the site? If possible I’d like to add a bunch of additional logging to the version of the Square add-on running on your site. Excessive logging really to try and narrow down at what point in the request this is happening. Without being able to reproduce I’m stuck on what is causing this the code already jumps through a bunch of hoops to check the values when using them. If that’s ok, send temp login details using this form: https://eventespresso.com/send-login-details/ (Note to add additional logging to your version I’ll need FTP credentials) |
|
Hi Tony, I just sent you the credentials. Thanks again |
|
Hi there, Just noting we pushed an update for the Square payment method which includes additional logging to try and identify why this is happening for some users and not others. Please update to version 1.0.2.p of the Square payment method and if the issue continues post here to let me know. Note that to troubleshoot this I will need access to the site to view the logs. |
|
The support post ‘Square payments is disconnecting.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.