Question

authentication failed: Cannot read property 'consumer_key' of undefined (Woocommerce set up issue)


Userlevel 1

When I try to connect my Woocommerce account to Zapier I get this message:

authentication failed: Cannot read property 'consumer_key' of undefined

  1. Make sure you click "Allow" or "Accept" on the permission popup
  2. Double check your Account has the correct permissions
  3. Check out our help docs for more information

    I have input the website: https://eatlocalpizzapos.com
    The admin login for the website
    The admin pass for the website

    I has previously been running the legacy version of the plugin and now cannot seem to get the new one to work. If anyone has any ideas I would appreciate it so much.

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

16 replies

Userlevel 7
Badge +9

This forum should be sponsored by Woocommerce.

 

I wish I could help, but I would recommend reaching out to Woocommerce and flagging the issue with them

Userlevel 1

It’s not something people here have bumped into then I guess?
Thank you very much for thinking about it!

Userlevel 7
Badge +12

Hi @Jim the pizza man!

 

Some folks have trouble authenticating their WooCommerce account if they have certain plugins installed. This guide from WooCommerce has more information on that: If Your Username and Password are Correct but you Still Can’t Authenticate

 

Also, if you’re using WooCommerce version 2.0.2 or higher you can follow this guide from Woo Commerce to get authentication logs: Using Detailed Logging to Determine the Reason for an Authentication Failure 

 

I hope that helps!

Userlevel 1

Same issue here. Any luck?

Yes same issue here. Any updates?

Userlevel 1

Seems like it could be a problem with SiteLock. Still trying ...

Userlevel 2
Badge

My accounts (multiple stores were all connected just fine) and all of them just DIED in the last hour saying disconnected.  now when I try to connect I get this same error..  This is a mess I have live ZAPs that all just broke when they were just working fine on multiple stores...

Userlevel 2
Badge

There is nothing the detailed logging shows either it’s dying before it’s even getting to the site b/c there is no log data on the WooCommerce side.

Same issue here. It says:

We hit an error adding your new account

authentication failed: Cannot read property 'consumer_key' of undefined

 

Couldn’t find anything in the logs either to troubleshoot.

Userlevel 2
Badge

Mine turned out to actually be a plugin conflict with redis plugin that was updated 


https://wordpress.org/support/topic/1-6-1-breaks-woocommerce-zapier-plugin/

 

one thing you can try is hitting the api url directly and look for any additional HTML that’s not supposed to be there 

https://YOUR-SITE/wc-zapier-auth/v1/authenticate


you should only see something like this

 

{"code":"wc_zapier_method_not_allowed","message":"405 Method not Allowed","data":{"status":405}}

 

if you see anything else it’s something being inserted by another plugin as a conflict most likely.  Hope this helps. 

Thanks for the recommendation. When I try to access the URL you mentioned I get a 404 error though!?

https://YOUR-SITE/wc-zapier-auth/v1/authenticate

Userlevel 2
Badge

I assume you replaced “YOUR-SITE” with your own URL?  what’s your store’s domain?

this is mine for example:  https://myshop.stkpromotions.com/wc-zapier-auth/v1/authenticate

404 error would be a good indication that something else is blocking access to the WC-zapier plugin API.  start disabling other plugins until you fine one that resolves the 404 and gets you a response page and go from there.  And I assume your on the latest version of the WC-Zapier plugin...

Userlevel 7
Badge +11

Thanks for sharing that extra information @CColotti! And yes, @vdm in order to test out the suggestion made by @CColotti you would replace YOUR-SITE with the URL of your WooCommerce store. And can you confirm whether you’re using the most recent version of the WooCommerce-Zapier plugin?

You may want to reach out to OM4 (the team behind that plugin) to see if they can help out.

Same issue. 

https://evolve-dev.flywheelsites.com/

We hit an error adding your new account

authentication failed: Cannot read property 'consumer_key' of undefined

  1. Make sure you click "Allow" or "Accept" on the permission popup
  2. Double check your Account has the correct permissions
  3. Check out our help docs for more information

I tried to deactivate some plugins, but no luck. 

 

I went to the URL suggested above, but the site still loads fine. 

https://evolve-dev.flywheelsites.com/wc-zapier-auth/v1/authenticate
If it is not a plugin issue what can it be? 

Userlevel 7
Badge +10

@evolve - Sorry we missed your message! Did you manage to get this sorted?

Userlevel 7
Badge +9

@CColotti, @vdm, and @evolve we just wanted to check in once more to see if y’all were able to get things sorted here or if you’re still having trouble. Let us know - we want to do what we can to help get you pointed in the right direction here!