WordPress.org

Support

Support » How-To and Troubleshooting » Cheatin uh? error on anyone who is not an Editor or Administrator

Cheatin uh? error on anyone who is not an Editor or Administrator

  • I have a problem using the wordpress register and login pages anyone who registers on my site http://www.virtue.host2trust.co.uk cant login and gets a cheating uh? error and anyone who wasnt an editor before this started happening cant login unless i upgrade there role to editor. I tried using the AJAX login widget to see if that could be used as a workaround but it isnt, does anyone have any idea how i can fix this please!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    @esmi

    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems?

    resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    This “Cheatin uh!” is really a sad joke. In some places of core there is this code:


    if ( !current_user_can('edit_posts') )
    wp_die(__('Cheatin’ uh?'))

    It means that user can’t edit posts and is trying to access a page that only users with this permission have access. I suppose users without this permission aren’t fed with links to these pages, or can’t even enter admin page, so developers presume they just typed the URL on browser addressbar and tried to enter.

    Well, when users do that, it’s understandable to laugh at them. But what happens when this is a buggy error and we SHOULD have access to it? Welcome to OpenSource!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cheatin uh? error on anyone who is not an Editor or Administrator’ is closed to new replies.
Skip to toolbar