1352 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
+6 more
fuelthemes says

I am getting an error on my theme options page while trying to use the built-in media upload.

The error is “Cheatin ‘uh”

Any idea how to fix this?

119 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Had an item featured in an Envato Bundle
+8 more
valendesigns Envato team says

Are you using your own custom script or a plugin/framework to create your theme options?

34 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $40,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Located in Europe
+2 more
synesthete says

I bet You are using SMOF ;}

open medialibrary-uploader.php, delete everything and paste:

http://pastebin.com/raw.php?i=8WYprprH


If You were curious this line was added to the beginning of file:

add_action( 'init', 'optionsframework_mlu_init');
also line 113 was changed to:
'post_type' => 'options'
93 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Located in Europe
+3 more
aligatorstudio says

Thank you, thank you, thank you !! :D:kiss: . I was just starting to grow new grey ones (hair, i mean ;) )...
Just, out of curiosity (in short), how did you come to this … ?

34 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $40,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Located in Europe
+2 more
synesthete says

SMOF author posted solution ;}

https://github.com/sy4mil/Options-Framework/issues/95

But he didn’t precise his last answer (and I also thought it would be a hard day ;) ):

93 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Located in Europe
+3 more
aligatorstudio says

;) ... yeah … now, the theme upgrade job is on the way … Sometimes i really hate WP update, and sometimes I love them …

422 posts Code Is Poetry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Made it to the Authors' Hall of Fame
+8 more
gljivec says

I bet You are using SMOF ;}

open medialibrary-uploader.php, delete everything and paste:

http://pastebin.com/raw.php?i=8WYprprH


If You were curious this line was added to the beginning of file:

add_action( 'init', 'optionsframework_mlu_init');
also line 113 was changed to:
'post_type' => 'options'

Thanks for this :)

3567 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

And what if i’m not using SMOF ? :)

This is how i call the editor:
tb_show('', 'media-upload.php?post_id='+jQuery('#post_ID').attr('name')+'&type=image&TB_iframe=1');
153 posts I think about colours
  • Located in Greece
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
SkatDesign says

And what if i’m not using SMOF ? :) This is how i call the editor:
tb_show('', 'media-upload.php?post_id='+jQuery('#post_ID').attr('name')+'&type=image&TB_iframe=1');

You can try changing


post_id='+jQuery('#post_ID').attr('name')+'

with:

post_id=0


It worked for me.

426 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
SimpleSites4U says

Had fun last night updating my plugins to work with 3.4

Thankfully I worked it out after some brief head scratching and some trial and error and the updates where approved within a few hours so hopefully should not have too much of a knock on effect.

by
by
by
by
by
by