Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
1  
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
add comment

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
3  
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
add comment

Your Answer

 
discard

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.