Support » Plugins » Image shack error in WP2.6

  • Resolved wsokc

    (@qzplx)


    Hi All,

    I Found this issue after upgrading to wp 2.6

    Fatal error: Call to undefined function media_admin_css() in /home/myraffae/public_html/blog/wp-content/plugins/imageshack-uploader/imageshack.php on line 176

    Any comments how to fix this ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Tengo el mismo problema, alguien puede decirme cómo solucionarlo?

    I’m having the same problem to

    Urrgh, me four

    Let’s fix it!

    Ok, it looks like in WP 2.6 the function it needs (media_admin_css) has been moved from wp-admin/includes/media.php to wp-includes/general-template.php. Note the name of the function and the way it is used has changed too!

    so to fix it:

    Edit the imageshack.php file at line 177

    media_admin_css('css/media');

    Delete that and put this in the same place:

    // Hack: RedFish: START:
    			// Hack to make WP 2.6 compatible.
    			// Replaced original line.
    			// media_admin_css('css/media');
    			wp_admin_css('media');
    // Hack: RedFish: END:

    I label my edits to make it clear which part of what multi-file hack is where…

    Oldskool. Before SVN etc!

    In the imageshack-uploader 1.1 , (imageshack.php) the line to replace is the number 176.

    Replace:

    media_admin_css();

    With:

    wp_admin_css(‘media’);

    Hope to help!
    Good Pluging!

    vitomartin.com
    http://www.vitomartin.com

    What is the obfuscated code (base64?) in this file?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That’s not obfuscated code. Arne does that sort of thing a lot, he likes to make his plugins into one single file, so if he needs to have images to display on the admin screens or some such thing, he includes them in the plugin itself as base-64 encoded images, then has a little bit of code to send them back to the browser after decoding them.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Image shack error in WP2.6’ is closed to new replies.