WordPress.org

Ready to get started?Download WordPress

Forums

Getting "Cheating Huh?" error since 3.4 upgrade (30 posts)

  1. Dardango
    Member
    Posted 2 years ago #

    I'm getting this error on Headway when I try to add an image from WP. What's the deal?

  2. That would be something to ask on the headway forums, I'm afraid.

  3. Dardango
    Member
    Posted 2 years ago #

    I did that, but this happened after the 3.4 WP upgrade, and I see other folks are having problems here, too.

  4. 7milesdown
    Member
    Posted 2 years ago #

    yes! I'm experiencing it since the upgrade too!

  5. 7milesdown
    Member
    Posted 2 years ago #

    Its a wordpress upgrade issue. Definitely not a theme issue. I see alot of people having the same problem. Everything was working great before.

    Top administrator has no issue but all my authors are experiencing problems when trying to add a "feature image" to their posts

  6. Nikkeya
    Member
    Posted 2 years ago #

    I'm getting the same thing. Its not even a shared blog. Installed a new theme and get the error. I even tried erasing wordpress and the database and starting over, I still have the same error. Happening when I try to upload an image in the themes custom panel.

    Just keeps saying "Cheating Huh?"

    No WordPress I'm not cheating. I don't even look when another more attractive content management systems walk by....

  7. Dardango
    Member
    Posted 2 years ago #

    LOL. Nikkeya, that last part is cute. Heehee!

  8. 7milesdown
    Member
    Posted 2 years ago #

    @Nikkeya lmfao! I dont either!! haha!!! Oh, thanks for the good laugh!

  9. Nikkeya
    Member
    Posted 2 years ago #

    LOL, Glad to give everyone a smile today!

    I downgraded back to 3.3.2 and problem solved, but I know it can't stay that way because of the security updates. This is super weird. I see a lot of people searching for it but the only thing I'm seeing is something about capital letter in codes, but it doesn't seem to apply here.

  10. intigo
    Member
    Posted 1 year ago #

    Hello,
    Did anyone solve this issue in an other way then downgrading?
    If so please do share!!

  11. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    I downgraded back to 3.3.2 and problem solved, but I know it can't stay that way because of the security updates.

    Great! Now there is one more step. Reinstall 3.4.1. Sure, no damsel will tell you, "Cheatin Uh?"

    Not a joke! Try it!

  12. hatex
    Member
    Posted 1 year ago #

    I did your recommendation and re-installed my new wordpress again dear Krishna but it doesn't work!! still receive this damn massage during uploading the images!!

    and let me notice that I am trying to customize my ELEGANT THEME inside its Epanel!!

  13. ajillofalltrades
    Member
    Posted 1 year ago #

    I am having a similar issue since upgrading to 3.4.1....When I go to my themes page in the admin panel, none of the images will show...just the blue box with the X in it.

    Checked all of the permissions and they are good.

  14. cravecreative
    Member
    Posted 1 year ago #

    Same issue here. Can't seem to upload any images to my gallery. HAS to be 3.4.1. Everything was just fine before the upgrade.

  15. jparkton
    Member
    Posted 1 year ago #

    Same issue here as well. Would be nice if there was a fix for this.

  16. cravecreative
    Member
    Posted 1 year ago #

    Found a fix via a post by a member named wasjunior who referenced Thaideas's original post method.

    1. Login to your plesk/cpanel, whatever you use. Locate
    wp-admin/media-upload.php

    Open the media-upload.php with the code editor scroll down to line #125 and change the code

    if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )

    to

    if ( ! empty( $_REQUEST['post_id'] ) && current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )

    Make sure you don't touch line 126 with a code that looks like this wp_die( __( 'Cheatin’ uh?' ) );----- DON'T TOUCH THIS
    Save and get back to your wordpress admin panel, make sure you have cleared your cache and this should do it.

    By removing the "!" you should be able to upload your images.
    Keeping the "!" allowed for me to upload a "feature images" on my theme. It's a pain to switch back and forth but it's the only fix I've found so far.

    Now I'm having problems uploading my title images... will these issues ever cease? UGH...

    PLEASE let me know if you have any other fixes.

  17. ashiksonic
    Member
    Posted 1 year ago #

    hey cravecreative thank you sooo much dude. works like a charm :) muah <3

  18. Yogesh Thakkar
    Member
    Posted 1 year ago #

    thanks @cravecreative it works for me

  19. cravecreative
    Member
    Posted 1 year ago #

    Glad I could help you guys out. Cheers!

    Still on the lookout for a fix on my other image upload issues(title image and page background image uploads). Very frustrating to say the least.

  20. jennifercote
    Member
    Posted 1 year ago #

    I didn't seem to have a php file like "cravecreator" referred to. And while I still can't seem to upload a new slider from the "add new slider" page, I was able to go to the media library to upload. Then I copied the url of whatever I uploaded, pasting that into the slider box (for the url). It worked!

    Jen[ Signature moderated. ]

  21. erkasoft
    Member
    Posted 1 year ago #

    elegant theme users should update epanel uploader js file for fix the problem permanently.

    /themenname/epanel/js/custom_uploader.js :

    // line 14
    post_id = jQuery('#post_ID').val();
    // add this code after line 14
    		if (post_id == null) {
    			post_id = 1;
    		}
  22. carynscan
    Member
    Posted 1 year ago #

    Thank you!

  23. ShaunMichaelJ
    Member
    Posted 1 year ago #

    Please note

    IF you have used the first fix by CraveCreated (which meant you changed/edited the script on the wp admin media uploader file, then you need to restore it to it's default version before using the erkasoft fix.

    Both work great, however erkasoft's fix is a permanent fix.. but won't work if you have used CraveCreated's fix..

    Thanks guys, you both helped us tremendously.

    SM

  24. debendra
    Member
    Posted 1 year ago #

    where is this file "/themenname/epanel/js/custom_uploader.js" can you give me the detail url ?? i dont have epanel inside my theme..

  25. debendra
    Member
    Posted 1 year ago #

    i gotta a solution:)
    1. Login to your plesk/cpanel, whatever you use. Locate
    wp-admin/media-upload.php

    Open the media-upload.php with the code editor scroll down to line #125 and change the code

    if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )

    to

    if ( ! empty( $_REQUEST['post_id'] ) && current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )

    Make sure you don't touch line 126 with a code that looks like this wp_die( __( 'Cheatin’ uh?' ) );----- DON'T TOUCH THIS
    Save and get back to your wordpress admin panel, make sure you have cleared your cache and this should do it.

    JUST CHANGE THIS TO LINE NUMBER 126 : do_action("media_upload_$type");

  26. esmi
    Forum Moderator
    Posted 1 year ago #

    Open the media-upload.php

    No! Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.

  27. ElginC
    Member
    Posted 1 year ago #

    @cravecreative Thanx a milion times man that solved my problem.

  28. dipeshsakpal77
    Member
    Posted 1 year ago #

    copy media-upload.php file of wordpress version 3.2.1 and replace it with media-upload.php file of updated wordpress version.

  29. dipeshsakpal77
    Member
    Posted 1 year ago #

    your problem solved

  30. rfuncia
    Member
    Posted 1 year ago #

    thanks cravecreative...it worked for me!

Topic Closed

This topic has been closed to new replies.

About this Topic