Flexible Upload – fixed for WP2.6
English shortdescription below.
Update:
English Translation follows
Durch einen kleinen Fehler im Hack von Flexible Upload wurde das Plugin mit Versionen höher als 2.6 unbenutzbar. Dieser Fehler ist nun aber bereinigt, so dass Flexible Upload nun auch unter 2.6.1 und 2.6.2 zuverlässig seinen Dienst verrichtet.
Download Flexible Upload Patched für WP 2.6 Fix 1
English:
Due to a little bug in my Flexible Upload Hack there have been problems with any version later than 2.6. This is fixed now and Flexible Upload D3Z Edition works with the newer 2.6.1 and 2.6.2 releases.
Download Flexible Upload Patched für WP 2.6 Fix 1
Wer das Plugin Flexible Upload einsetzt/eingesetzt hat, wird wohl beim Update auf Wordpress 2.6 schmerzlich erfahren haben das sich das Plugin unter dieser Version von Wordpress leider nicht dazu bewegen lässt, vernünftig zu funktionieren.
Schuld daran ist eine fehlende Function, welche in der WP Version 2.6 entfernt wurde.
Es handelt sich dabei um die Function “media_admin_css”, auf die Flexible Upload zurückgreift und dadurch unter Wordpress 2.6 folgende Fehlermeldung beim Aufruf der Upload Funktion verursacht:
call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘media_admin_css’ was given in /pfad/zu/wordpress/wp-includes/plugin.php on line 311
Nun gibt es 2 Möglichkeiten:
a) Man fügt die Funktion einfach “irgendwo” zum Plugin hinzu
Nachteil: Sollte man das Plugin zwecks Test doch noch einmal auf einer älteren Wordpress Version verwenden wollen (wieso auch immer) würde die Funktion überschrieben werden – das ist nun nicht im Sinne des Erfinders
b) Man schreibt das Plugin so um, das nur im Falle einer Installation des Plugin unter WP 2.6 die Funktion wieder hinzugefügt wird.
Für den letzteren Lösungsweg habe ich mich entschieden und biete hier das editierte Plugin zum Download an.
Ich habe die Versionsnummer so gelassen wie sie war und zur Unterscheidung mit dem offizellen Release lediglich an den Pluginnamen mein Kürzel gehängt – das hat den Vorteil, das für den Fall das der ursprüngliche Entwickler, Antoine Choppin, sich doch noch mal entscheidet das Plugin upzudaten das Update automatisch eingespielt werden kann.
Installationsanleitung:
Die vorhandenen Dateien in den Plugins-Ordner entpacken/hochladen und das Plugin aktivieren.
Achtung:
Die Nutzung des Plugins geschieht auf eigene Gefahr.
Download Flexible Upload Patched für WP 2.6
English translation:
Whoever uses, or let’s rather say “used”, the plugin “Flexible Upload” and recently upgraded to Wordpress 2.6 may allready have realized that Flexible Upload Version 1.13 doesn’t work as intended anymore.
The problem is the missing function “media_admin_css”.
I fixed this problem and release it here as an unofficial patch until the developer finds the time to fix it by himself.
I therefore didn’t change the version number as this confuses the Wordpress Plugin Auto-Update function but only added my short tag to the pluging name to show that this not the official version.
Please also realize that the original developer won’t give any support for this fixed version.
To install this fix, just upload the contents of this zip file to the “flexible-upload” folder in your plugins folder.
This contains the whole Flexible Upload Version 1.13 as well as my fix for Wordpress 2.6 and should also work with older versions of Wordpress – just in case anyone installs it under an older version.
Just click here to download the file.
Feel free to comment if you have any problems with this.
Please also realize that I don’t take any responsibility for problems that may (but shouldn’t) occur due to the usage of this plugin.
Kommentare
hello there, great fix.
just a prob with WP 2.6.1 – the broken code issue is solved but you cannot view anything on the upload panel (just the navigation buttons)
I’m going to check this out as soon as I have a WP 2.6.1 up and running – I guess this has something to do with the Version check.
hello, thanks for this modification but i have the same problem than Neuville with wordpress 2.6.1, i can not view anything on the upload panel…is there a simple way to fix this ?
ok i’ve found for 2.6.1. Just replace in flexible-upload.php :
old :
if (($fup_wpver[0] == 2) && ($fup_wpver[1] = 6)) {
require_once(ABSPATH.$fup_rel_dir.’flexible-upload-wp26-fix.php’);
}
new :
if (($fup_wpver[0] == 2) && ($fup_wpver[1] = 6.1)) {
require_once(ABSPATH.$fup_rel_dir.’flexible-upload-wp26-fix.php’);
}
it work nice…
Thats kinda strange – maybe download it again?
I’m using the same files on this blog which ist WP 2.6.2 – and works like a charm.
Some Proxy or your cache intefering maybe?
I’ve added this to the file
but i still get the blank upload screen
if (($fup_wpver[0] == 2) && ($fup_wpver[1] = 6.1)) {
require_once(ABSPATH.$fup_rel_dir.’flexible-upload-wp26-fix.php’);
}
@pab: MY(!) Version of FUP fixes the compatibility with WP 2.6,2.6.1,2.6.2 and later Versions (as long as WP doesn’t change something else ;))
Deactivate the original Flexible Upload Script, delete the folder flexible-upload an then upload the folder from the archive which you downloaded from THIS site and activate the plugins. No need to edit anything.
You also should consider to install the 2.6.2 Upgrade as it’s a security upgrade.
I’m using Firefox and this was working perfectly until the other day when I mysteriously got a blank screen at the image upload screen. It works in Internet Explorer, but not FF.
There are some Problems here and there with FF – but I haven’t had any issue like this for a long time now (since I upgraded to FF 3.0).
This has nothing to do with the plugin but with the way the upload screen works.
You may also check out http://wordpress.org/support/topic/164999 for further information on how to (maybe) fix this issue.
Hello!
I just did a fresh install of the flexible upload plugin…
I don’t have an “insert into excerpt” button in my image upload window, it is missing.
I assume this is a bug? I can’t figure out why this button is not there, any help is appreciated to get it back
Well – I can’t remember to had any at all. Are you sure that this isn’t a problem with another plugin?
Gott machst du dir das mit dieser Funktion kompliziert… warum nicht einfach kopieren und umbenennen, dann würde sie auch nicht die andere überschreiben, aber sie wäre trotzdem da.
Die 3 zusätzlichen Zeilen waren nun auch kein Problem – habe ich überlebt, wie man sieht ![]()
Die restlichen Versionchecks waren net von mir
Hello. Pardon my delayed response Chris\\Das3Zehn…
In regards to there being no “Insert into Excerpt” button, I’m pretty sure there are no plugins conflicting with flexible upload.
I’m pretty lost, I’ve tried looking at the code but can’t figure out why this isn’t showing up.
By the way, I’m using wordpress 2.6.2. Any more help is greatly appreciated, thank you!
[…] angezeigt. Eine Lösung vom Autoren selber scheint nicht in Sicht zu sein. Allerdings bietet dieser engagierte Nutzer eine Version mit Bugfix zum Download an. Das Spezielle daran ist, dass laut den Ausführungen auf […]
Does anyone know if this is supposed to work on wpmu 2.6.3? I get no error messages and everything seems fine. But I can’t find the “Options” page and the upload screen looks the same as without the plugin.
[…] Flexible upload D3Z Edition – очень-очень тулза. Делает изменение размера при загрузке и создает превьюшки. Для варезника – незаменимо […]
[…] Nur ein kleiner Hinweis für all diejenigen, welche meine für Wordpress 2.6 gepatchte Version von Flexible Upload einsetzen: Auch unter der neuen Version 2.7 verrichtet diese ohne Probleme ihren Dienst – auch der vorher hin und wieder vorhandene Bug, das nach Upload von weniger als zwei Grafiken das direkt Posten nicht möglich war und der Umweg über die Mediathek nötig gemacht hat, scheint sich erledigt zu haben. Somit ist es ohne Einschränkung möglich, die neue Version von Wordpress zu installieren. Der Download findet sich, wie gewohnt, hier. […]
[…] Un errore del plugin Flexible Upload con Wordpress superiore alla versione 2.5, che può essere risolto utilizzando una versione modificata ad HOC. Tale versione la potete scaricare qui […]
hallo,
sag mal….ob du das auch hinbekommst das Plugin für WP 2.8 zu patchen ???
Hab Heute upgedated auf 2.8 und tja, das Flexible macht noch schön sein beschneiden, aber springt dann nicht mehr um in die Vorschau – also selber in die Mediathek springen – oder über den kleinen Umweg Videoinsert Rider in die Mediathek und die Vorschau springen….sic!!!
wäre ja schön wenn du da noch am Ball bist.
grüsse thomas
Ich werde es mir auf jeden Fall mal anschauen – wann genau kann ich dir aber leider nicht sagen, da ich derzeit einiges um die Ohren habe.
Ich bitte daher um ca. eine Woche Geduld.
jetzt haste aber grad schnell geantwortet – hatte das Fenster noch offen.
Danke!
Ja, ja – warten kann ich.
Die resize-function läuft ja – Ist halt nicht mehr so schön integriert wie vorher.
grüsse thomas
[…] 解決法を探しているとこちらのページにありました。原因はこのプラグインがWP2.6以降に対応していないためとのこと。で、早速このページにあるように、改善するパッチを含んだ Flexible Uploadを入手し、先の手順で再インストールしてみると、今度は問題なく使用することができました。 […]
@Chris\\Das3Zehn konntest du einen blick drauf werfen? Leider kann ich das Plugin bei meinem Blog (WP2.8.2) nicht mehr benutzen, denn die Integration überschattet das normale Menü, und ist für den Laien(User) nicht nachvollziehbar. Wäre super wenn du einen Tipp geben könntest.
Grüße
Dennis
Da ich nun auch eine Wordpress Installation unter 2.8.2 laufen habe, werde ich heute oder morgen endlich mal einen Blick drauf werfen.
So wie ich das lese scheint es lediglich ein zLayer Bug zu sein – aber mal schauen.
Ich hoffe ich kann euch da helfen – ich habe ja wie gesagt nur den Fix für 2.7 durch ein Vergleichen der Sourcen gefunden und eingebaut.
Mal sehen was sich diesmal geändert hat.
@chris…das3Zehn(?)was ein wunder….
grad mal wieda vorbeigeschaut…
zLayer in der Richtung könnte das schon sein, zumal sich beim öffne (bild hinzufügen) auch die anderen Layer (mediathek etc.) zunächst nicht zeigen.
Immerhin aber nach Bildeingabe sich das Fenster vom flexible Upload öffnet und das beschneiden zulässt und zuverlässig auch noch macht…aber erst nach erneutem Aufruf über Umweg Mediathek dann auch einfügen lässt.
WP 2.8.3
mal schauen was du schaffst…!
Grüße thomas
@Chris\\Das3Zehn und hattest du Zeit und Lust dich mal dem Thema zu widmen? Mittlerweile gibts ja schon 2.8.4. Das mit dem zLayer hört sich gut an. Bitte hilf uns.
Grüße
Dennis
[…] keine Lust habe, auf Scissors umzusteigen. Aber wenn´s nicht anders geht…3 Leider war die Version von Nerdtainment wohl auch nur eine einmalige Aktion, […]





Dude. Thank you. Nerds rule!