Forums

[resolved] Image shack error in WP2.6 (9 posts)

  1. qzplx
    Member
    Posted 4 years ago #

    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 ?

  2. Anonymous
    Unregistered
    Posted 4 years ago #

    Tengo el mismo problema, alguien puede decirme cómo solucionarlo?

  3. onlyliesbeth
    Member
    Posted 4 years ago #

    I'm having the same problem to

  4. WebDev WaxLotus LLC
    Member
    Posted 4 years ago #

    Urrgh, me four

  5. WebDev WaxLotus LLC
    Member
    Posted 4 years ago #

    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!

  6. yasopa
    Member
    Posted 4 years ago #

    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

  7. WebDev WaxLotus LLC
    Member
    Posted 4 years ago #

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

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    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.

  9. WebDev WaxLotus LLC
    Member
    Posted 4 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags