Cheatin uh? error on anyone who is not an Editor or Administrator (3 posts)

  1. Kai_B
    Posted 6 years ago #

    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!!!!!

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    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.

  3. shidouhikari
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.