WordPress.org

Support

Support » Plugins and Hacks » Sponsors Carousel » image uploader is broken

image uploader is broken

Viewing 15 replies - 1 through 15 (of 43 total)
  • I am using wordpress version 3.5. It won’t let me change this after I created the post.

    Got it. Apparently the function _media_button has been depreciated in 3.5, so we need to update this function to media_buttons. Enjoy 🙂

    Changed line 369
    from
    echo _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);
    to
    echo media_buttons(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);

    awesome dave, problem sorted 🙂

    Hi All – this worked for me too – thanks!!!!

    I am having the same problem… where was this code added? which file? where can i find media_buttons??

    It is found in the sponsors-carousel.php.

    Just add an “s” to make “button” plural.

    Change line 369
    from
    echo _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);
    to
    echo media_buttons(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);

    Here is what it looks like in the sponsors-carousel.php before you change it – http://i.imgur.com/TLUjD.png

    Dave, thanks for sharing!

    You are welcome. Glad to help.

    Made the change to line 369 of sponsors-carousel.php as Dave recommended.

    It didn’t work as intended. Instead, I was provided with an error message:

    Fatal error: Call to undefined function _media_buttons() in [..]/sponsors-carousel/sponsors-carousel.php on line 369

    Could use some guidance. Has anyone else encountered this?

    which version of wp are you running? can you drop your entire php file over on http://pastebin.com/ so we can take a look?

    I’m so glad to find this thread. I too am having the same problem. I have WordPress 3.5.1 installed and I don’t see the image uploader. I’ve edited sponsors-carousel.php as suggested and still don’t see it. I don’t get an error message either.

    Anyone else having this issues where the “fix” doesn’t fix it?

    just like the other post, can you drop your entire php file over on http://pastebin.com/ so we can take a look? I’ll drop your file into my install and see what I can figure out.

    Thanks. I’ve not used pastebin before so not sure if I did it right.
    http://pastebin.com/C5sinU89

    perfect. this allows us to see exactly what you are working with.

    I guess my starting explaination of ‘Just add an “s” to make “button” plural’ wasn’t clear after looking at the example.
    You need to get rid of the preceding underscore on line 369 as well and change yours from “_media_buttons” to “media_buttons”

    Also, looking at the error that Adam’s problem is showing, it seems to be the same fix.

    Change line 369
    from
    echo _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);
    to
    echo media_buttons(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name);

    Works Thanks. Now to style it….
    My images are being cut off. Is there documentation for fine-tuning?

Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘image uploader is broken’ is closed to new replies.
Skip to toolbar