• Skip to content
  • Skip to footer

Gizmopress

Web and Mobile App Development

Main navigation

  • Websites
  • Mobile Apps
  • Startup Apps
  • Pricing
  • Our Blog

gizmo / 03/06/2016

Woocommerce Cheatin’ uh?

I just got this beautiful message while trying to configure WooCommerce Xero integration on my local PC.

Just a blank page with “Cheatin’ uh?”
Very informative, isn’t it? Well I’m not “cheatin”, I’m legitimately using your products and selling it to my customers.

Not that easy to find in the code because searching for “Cheatin’ uh?” yields no results. The string in the code is “Cheatin’ uh?”.
The check was to see whether current_user_can( 'manage_woocommerce' )
I’m normally logged in as admin on my development environment, but I had been testing a new role so was logged in as a test user with limited rights.

I suppose it’s cool writing an abbreviated message like “Cheatin’ uh?”, but personally I think it would be far more professional to say something like “you do not have permission to perform that function”. Boring, I guess – but gets the message across without accusing someone of cheating when they’re not cheating.

Anyway, that’s just boring ol’ me. If you get that “Cheatin’ uh?” message, check that you’re logged in as the correct user and if you are and you need to search the code for other possibilities, search for “Cheatin’ uh?” or just “Cheatin”.

Filed Under: Website Development

Footer

Contact Us

Gizmopress NZ
Auckland, 2110
Phone: 09 889 8448

Take that first step to securing your online success

Fill in our Enquiry Form
or
Have a quick chat on 09 889 8448

© 2021 · Gizmopress: App Development Company