• Ma Tasse de Thé

  • Méditations, doutes et illuminations d’un amateur de thé…

Forum
Flexible Upload causes warning on WP 2.6


Current User: Guest
  • This forum allows Guest Users to post
  • Guests may not subscribe to email notifications
  • Posts by Guest Users will be moderated prior to publishing
Login
Search 
Search Forums:


 
Current Forum
All Forums
Match Any Word
Match All Words
Match Phrase

Flexible Upload causes warning on WP 2.6

Reply to Post
UserPost

4:14
juillet 22, 2008

Antoine

Admin

posts 130

Sorry, guys, but I’m really busy these days and I really can’t find the time to update FU right now.  I’ll try to but I make no promise.

Antoine


10:28
juillet 23, 2008

minorio

Guest

I found another solution in a Japanese blog, which doesn’t require any hack in WP itself, but only a change to the flexible-upload-wp25.php file. I prefer this way.

You have to change the line 65 of /wp-content/plugins/flexible-upload/flexible-upload-wp25.php:

add_action('admin_head_media_upload_nextgen_form', 'media_admin_css');

into this:

if ( !function_exists('wp_enqueue_style') ) add_action('admin_head_media_upload_nextgen_form', 'media_admin_css');

That’s it!


8:22
juillet 24, 2008

Len

Guest

But that isn’t what line 65 of my flexible-upload-wp25.php says. Here is what mine says:

add_action(’admin_head_fup_media_upload_form’, ‘media_admin_css’);

I’m still holding out hope that Antoine finds the time to update the plug-in. All these "fixes" are confusing me.


3:10
juillet 27, 2008

ade

Guest

The line 65 fix works for me, just the popup window looks screwy now, but its just about usable


11:53
juillet 30, 2008

Philipp Kolmann

Guest

From WP 2.5.1 to 2.6 the functionmedia_admin_css got removed. So if you add the same function to the FU files that fixes the CSS issue:

 Just add the following lines before function fup_set_actions(). Works fine for me now.

 if (!function_exists(’media_admin_css’)) {
        function media_admin_css() {
                wp_admin_css(’css/media’);
        }
}

function fup_set_actions() {
    remove_action(’media_upload_image’, ‘media_upload_image’);
    add_action(’media_upload_image’, ‘fup_media_upload_image’);
    add_action(’admin_head_fup_media_upload_form’, ‘media_admin_css’);
    remove_filter(’media_send_to_editor’, ‘image_media_send_to_editor’);
    add_filter(’media_send_to_editor’, ‘fup_media_send_to_editor’, 10, 3);
}

 


9:48
août 3, 2008

gigi

Guest

if ( !function_exists(’media_admin_css’) ) {
        function media_admin_css() {
                wp_admin_css(’css/media’);
        }
        }

check space

this is right code


1:45
août 6, 2008

Lucianu

Guest

bloddy division by zero

 Warning: Division by zero in /hsphere/local/home/lucianu/blog.lucianu.org/wp-content/plugins/flexible-upload/flexible-upload-wp25.php on line 64


9:11
août 6, 2008

Justin

Guest

Luciano, I had the same error when I only replaced two of the quotation marks.  You need to replace all four of the ‘ marks, as they are not valid for your php code.  Just copy the code in, and re-enter the four, single quote marks.


Reply to Post


Reply to Topic: Flexible Upload causes warning on WP 2.6

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 9        (Required)

Topic Reply:


 



About the Ma Tasse de Thé forum

Currently Online:

3 Guests

Maximum Online: 51

Forums:

Groups: 1

Forums: 3

Topics: 145

Posts: 479

Members:

There are 1 members

There are 206 guests

Antoine has made 130 posts

Top Posters:


Simple Forum - Version 2.1 (Build 236)

Simple Forum WordPress Plugin created by Andy Staines: Yellow Swordfish

Forum Skin/Icons: default / default

Default 'Silk' Icon Set created by Mark James: fam fam fam

Math Spam Protection based on code by Michael Woehrer: Software Guide

Tabbed Admin uses Tabifier by Patrick Fitzgerald: BarelyFitz Designs


My thanks to all the people who have aided, abetted, suggested and helped test this plugin


Comments are closed.