WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since updating my WP Multisite to 3.4, my subdomain admins get the 'Cheatin’ uh?' error whenever trying to insert images into posts / custom posts. It seems to be a theme issue.

share|improve this question
does your server run a lower version than PHP 5.3? If so, it doesn't support anonymous functions, which is why you are probably seeing that error. Read: wordpress.org/support/topic/… – its_me Jun 28 '12 at 3:53

So after trying pretty much all the solutions I found on google, I found the solution to my problem:

Its possible that your theme uses some other theme options framework. If this is the case, you need to find the call to media uploader window and remove the post_id from it to fix the issue. The code will look something like this:

tb_show('', 'media-upload.php?post_id='+jQuery('#post_ID').attr('name')+'&type=image&TB_iframe=1');

Replace it with this code:

tb_show('', 'media-upload.php?post_id=0&type=image&TB_iframe=1');

More fixes here: http://www.agentwp.com/fix-cheatin-uh-error-in-wordpress

share|improve this answer
This is an under-documented issue on the Web. Please accept this answer so the question is obviously solved. (It's cool to accept your own answers, in case that was what was preventing you.) Thanks for solving this.~ – Andrew Kozak Sep 13 '12 at 16:14

I was trying to upload a logo on a new theme-Kept getting the cheatin uh? But after sometime i did solve this problem by http://gauravseo.blog.com/2012/08/06/how-to-solve-cheatin-uh/

share|improve this answer
Changing core files (creating an WordPress fork) for such a trivial problem is the wrong solution in my opinion. Not recommended. – toscho Aug 6 '12 at 15:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.