WP-FileManager
WP-FileManager on wordpress.org
![]()
WP-FileManager für WordPress ermöglicht es leicht Dateien zu ändern, löschen, organisieren und hochzuladen.
WP-FileManager for WordPress allows you to easily change, delete, organize and upload files.
Informationen auf Deutsch
Download
Installation
- die aktuellste Version der Datei wp-filemanager.zip herunterladen und entpacken
- die Variablen in der Datei conf/config.inc.php anpassen, die Sprache auswählen (bulgarian, danish, dutch, english, finnish, french, german, italian, portugues, russian oder spanish) und das Grundverzeichnis in dem die Dateien gespeichert sind festlegen (z.B. “../wp-content”)
- die Ordner conf, docs, icon, incl, lang und die Datei fm.php in den Ordner /wp-admin hochladen
- die Datei wp-filemanager.php in den Ordner /wp-content/plugins hochladen
- das WP-FileManager Plugin im Administrationsbereich aktivieren
- “FileManager” sollte nun in der Navigationsleiste im Administrationsmenü erscheinen
Fragen?
Fragen aller Art bitte hier per Kommentar stellen.
Quellenangaben
WP-FileManager läuft dank PHPFM, GION Icons und einem Hack von Joe Schmoe.
Information in English
Download
Installation
- download and unzip the latest version of wp-filemanager.zip
- change the variables in conf/config.inc.php and set your language (bulgarian, danish, dutch, english, finnish, french, german, italian, portugues, russian or spanish) and your home directory (e.g. “../wp-content”)
- move the folders conf, docs, icon, incl, lang and the file fm.php to /wp-admin in your WordPress directory
- move the file wp-filemanager.php to /wp-content/plugins in your WordPress directory
- activate the WP-FileManager plugin in the administration area
- “FileManager” should appear in the navigation of the administration area
Questions
For any questions please use the comment function.
Credits
WP-FileManager is powered by PHPFM, GION Icons and a hack by Joe Schmoe.

am 7. Juni 2007 um 13:16 Uhr
Hi, I’m getting this error message:
Warning: Cannot modify header information – headers already sent by (output started at /home/…/wp-admin/admin-header.php:16) in /home/…/wp-content/plugins/wp-filemanager.php on line 13
am 7. Juni 2007 um 18:40 Uhr
Hi Michael.
I’ll make a fix for this problem this evening.The problem is fixed now. Please download the new file. You just have to change the wp-filemanager.php in the folder /wp-content/plugins.am 8. Juni 2007 um 20:20 Uhr
The plugin is working but I keep getting an “Invalid path.” error or an “Invalid home folder.” error. I guess I’m not clear on where the “files” folder must be. Does it need to be in the wp-admin folder or can it be in the root of the site or in wp-content? Nothing I’ve tried seems to work.
am 8. Juni 2007 um 23:08 Uhr
The files folder doesn?t have to be in the wp-admin folder. It can be everywhere , you just have to link it right, e.g. ‘../wp-content’ for the wp-content folder or ‘../files/’ for a folder called “files” in your root directory.
am 9. Juni 2007 um 10:56 Uhr
Thanks Johannes. There was a conflict with the WP-email plugin, (http://www.lesterchan.net/wordpress/readme/wp-email.html) but it works fine with that plugin disabled.
The error message was:
Fatal error: Cannot redeclare is_valid_name() (previously declared in /home/…/wp-content/plugins/email/email.php:301) in /home/…/wp-admin/incl/functions.inc.php on line 139
am 9. Juni 2007 um 19:48 Uhr
Getting these errors
Warning: main(conf/config.inc.php) [function.main]: failed to open stream: No such file or directory in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 8
Warning: main(conf/config.inc.php) [function.main]: failed to open stream: No such file or directory in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 8
Warning: main() [function.include]: Failed opening ‘conf/config.inc.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 8
Warning: main(lang/.inc.php) [function.main]: failed to open stream: No such file or directory in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 10
Warning: main(lang/.inc.php) [function.main]: failed to open stream: No such file or directory in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 10
Warning: main() [function.include]: Failed opening ‘lang/.inc.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/jrubixcu/public_html/arrowheadaddict/wp-admin/fm.php on line 10
am 11. Juni 2007 um 12:03 Uhr
@Zach: Are the files and the folders in the right directory?
am 21. Juni 2007 um 23:37 Uhr
I also have the incompatibility problem with the wp-email plugin from lesterchan.net also having problems with invalid path. this is my setting:
$home_directory = “../wp-content/”;
but when openng the filemanager the path looks like this:
http://www.rondul.eu/wp-admin/fm.php?&path=wp-content%2F
if I insert ../ before wp-content it works… why does it not use the corect setttings?
am 22. Juni 2007 um 16:24 Uhr
Installed WP-Filemanger 1.2 in Wordpress 2.1. Fine except small issue line 10 from fm.php. Repaired fast. No problem!
First impression: this plugin looks pretty usefull!
Now my problem: I created a folder “test” and uploaded an image into it.
When I look at the permisisons of this image in the folder test, after upload, I see 600. How could I change them to 644 for instance? Many thanx in advance.
am 22. Juni 2007 um 17:19 Uhr
@ovidiu: Maybe wp-email uses $home_directory, too. The easiest way for solving this issue would be using the PXS Mail Form.
@fred: The plugin offers no function to edit the permissions. You can edit them through your ftp client. To set a default permission for new folders you can edit the file incl\create.inc.php on line 13. More information on php.net.
am 22. Juni 2007 um 19:30 Uhr
wp-email is a plugin to be able to mail posts to friends :-( I’ll notify that author too
am 23. Juni 2007 um 21:46 Uhr
there are times when i try to upload a file
but i get an error result saying upload failed
and then there are times when it works fine
any ideas as to why this happens?
am 23. Juni 2007 um 23:03 Uhr
is it a time out reason?
or is there a file size limit
i tried upload something 2mb and it didnt let me
but i uploaded a file that was 1.5mb and it worked fine
am 24. Juni 2007 um 18:15 Uhr
I got some news from wp-emails author: http://forums.lesterchan.net/index.php/topic,761.0/topicseen.html
can you look that up maybe? He says he fixed the problem in the latest release which I am using, could you also check your plugin please?
am 24. Juni 2007 um 19:54 Uhr
many thanx for answering me!
what I do not understand: how it is possible to use an image uploaded with WP-Filemanager if the file permission of this image does not allow to use or see it at all in the WordPress admin (under “manage / uploads / browse all’ for instance)? I mean as the permisison is set to 600 after upload, the WordPress file browser in the admin won’t even be capable of read this file, so it won’t be ‘visible’ at all. Thanx again for any help.
am 27. Juni 2007 um 16:26 Uhr
@oviudiu: What version of WordPress do you use?
@fred: I think the change of the incl\create.inc.php would fix your problem.
am 27. Juni 2007 um 18:20 Uhr
actually i did add these lines of code to set the images permission to 666:
// Set correct file permissions
$new_file = realpath($home_directory.$path).”/”.$_FILES['userfile']['name'][$i];
$stat = stat( dirname( $new_file ));
$perms = $stat['mode'] & 0000666;
@ chmod( $new_file, $perms );
after line 19 (before else if) in incl/upload.inc.php
but I stll cannot see the uploaded images in the “browser all” area when adding a post or a page.
I’ll have to go deeper again in the code. as usual.
I wish you all the best.
am 27. Juni 2007 um 20:06 Uhr
hello again, I am new to Wordpress but I know PHP quite well and I would like to be sure I understand what WP-FileManager is exactly doing:
with this plugin I am able to create folders and upload images inside, but I won’t see these images in the “browse all” iFrame of “wp-admin/post-new.php”? So could you please tell me what you exactly do with the files you uploaded with WP-FileManager? I hope this question does not sound too stupid but I am only wondering. Many thanx! Fred
am 29. Juni 2007 um 00:22 Uhr
2.2 haven’t had the time to upgrade to 2.2.1
am 29. Juni 2007 um 14:12 Uhr
I’ve just realized that how usefull could be ability to set file/folder permission. If you want to make this tool even better I think this is good step for it!
Thanks again,
phpworker
am 6. Juli 2007 um 21:27 Uhr
Sch?ne Arbeit Johannes. Wir haben es bei Music Jams auch eingebunden.
am 11. Juli 2007 um 10:30 Uhr
…das hier habe ich gesucht !
Funktioniert bisher wunderbar – ich h?tte nur ein paar Fragen…..
…ich schreibe sie einfach in Deutsch:
- Kann man auch FLV files hochladen? Wenn nicht, wie kann ich das erweitern?
- Was ist der “erste” Ordner in der Directory Auflistung mit dem einen “.” ?
- Ist es m?glich bei der Ansicht auch eine Anzeige des absoluten Pfades zu haben?
- Kann man auch von PDFs eine Ansicht haben?
- Kann man eine Ansicht von Quicktime, FLV und Mp3 machen?
…wenn man z.B. den Media Player von Jeroen Wijering nimmt, mit dem man FLVs und Mp3 abspielen kann?
http://www.jeroenwijering.com/?item=JW_Media_Player
Danke
Nik
am 11. Juli 2007 um 23:06 Uhr
the problem with the incompatibility with wp-email seems to be a problem with the filemanager plugin. can you check out this forum post please:
http://forums.lesterchan.net/index.php/topic,761.0.html
thx
am 12. Juli 2007 um 14:53 Uhr
Im Moment kein Support wegen Umzug.
No support at the moment due to reloaction.
am 14. Juli 2007 um 17:48 Uhr
…und ich habe nochwas:
..wenn man z.B. mit dem Filemanager Unterordner erzeugt kann der “hauseigene” Wordpress Filebrowser diese nicht lesen. Gibt es hier eine M?glichkeit, damit er das wieder kann – oder kann man das PlugIn so erweitern, dass man damit auch die Files in den Text einf?gen kann?
am 18. Juli 2007 um 23:29 Uhr
I found another wordpress plugin that had the same problem here is a link to how he fixed it: http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php
its the first two comments.
am 11. August 2007 um 16:15 Uhr
Johannes, brauche dringend deine Hilfe – ich hatte hier schon zweimal gepostet aber bisher kam keine Antwort. Fragen vom 11. und 14. Juli, Danke
am 13. August 2007 um 14:52 Uhr
geht mir genauso :-)
am 28. September 2007 um 23:38 Uhr
Habe versucht den plug-in zu installieren aber geht leider nicht wenn Advanced-Admin-Menus schon installiert worden ist. In dem Fall muss man leider prioritieren…
am 15. Oktober 2007 um 11:43 Uhr
…ich bin’s mal wieder – gibt es inzwischen eine L?sung f?r dieses Problem mit dem “Filebrowser”, dass er auch die Dateien in dem FileManager lesen kann….? W?re eigentlich sehr n?tzlich, bei einem so sch?nen PlugIn
am 18. Oktober 2007 um 11:29 Uhr
Hi,
I keep getting an “Invalid home folder.” error. I use wordpress 2.2.2
am 14. November 2007 um 12:11 Uhr
Hi
I installed FM but I have a path problem
I copied all files but wp-filemanager.php in wp-admin. I copied wp-filemanager.php into wp-content/plugins
I change conf/config.inc.php to have ../files/ as folder and french as language (I saved the files as utf to avoid problems with my server)
everything seems ok but I get a message error as unvalid path and in the box showing the content of the folder I get as path ./wp-content/plugins instead of ./ If I click on wp-content and then on .. I reach the root folder (ie files)
emptying cache changing machine does not change that so it must be somewhere in the code.
I donwloaded today wp and FM so i should have the latest versions.
thanks for your help
Philippe
am 14. November 2007 um 20:26 Uhr
hi,
I found the answer. WP-ContactForm 1.4.3 causes the problem once removed FM works fine
Philippe
am 5. Dezember 2007 um 22:06 Uhr
Plugin incompatible with WP-Email (http://wordpress.org/extend/plugins/wp-email/)
Fatal error: Cannot redeclare is_valid_name() (previously declared in /home/.server/user/domain/wp-content/plugins/email/email.php:375) in /home/.server/user/domain/wp-admin/incl/functions.inc.php on line 139
am 12. Dezember 2007 um 09:37 Uhr
OK, installiert. datei hochgeladen…
Aber WIE wird die nun in den Content eingebunden?
Das ist leider weder offensichtlich, noch dokumentiert…
am 13. Dezember 2007 um 02:07 Uhr
I got the same problem as ‘bekabug’.
Ad i discovered that it is incompatible with the Ext JS Admin Menu plugin (http://wordpress.org/extend/plugins/ext-js-admin-menu/). It doesn’t show the menu only when i go to the file manager page.
I there anything i can do to fix this?
And is there a way to add the uploaded files to a post?
Thanks in advance.
Kind regards,
Thorsten
am 30. Dezember 2007 um 17:33 Uhr
Hey man, thanks for updating this! My admin menu completely disappears when I’m trying to add files, any idea why?
am 31. Dezember 2007 um 17:42 Uhr
@Jeromy: Which version of WordPress Do you use?
am 17. Februar 2008 um 09:05 Uhr
… filemanager.zip is missing a bunch of files?
am 17. Februar 2008 um 18:13 Uhr
@Thomas Leavitt: Should be fixed now.
am 18. Februar 2008 um 20:29 Uhr
Hi,
es wird immer eine Fehlermeldung ausgegeben, dass das Verzeichnis nicht stimmt. Ich habe es schon mit allem m?glichem probiert:
- ../wp-content/
-../wp-content
- /wp-content/
-/wp-content
-./wp-content
-./wp-content/
Was mache ich falsch?
am 19. Februar 2008 um 15:14 Uhr
@Mike: Hat das Verzeichnis wp-content die entsprechende CHMOD-Rechtezuweisung?
am 24. Februar 2008 um 18:58 Uhr
It looks like the plugin WP-Email conflicts with WP-FileManager. When I clicked on FileManager in the admin area, I got:
Fatal error: Cannot redeclare is_valid_name() (previously declared in [...]/wp-content/plugins/email/email.php:416) in [...]/wp-admin/incl/functions.inc.php on line 139
Can I manually replace is_valid_name() with is_valid_name_fm()?
(…5 minutes later …)
I tried it. It worked.
I replaced the string in
fm.php
incl/edit.inc.php
incl/create.inc.php
incl/rename.inc.php
incl/functions.inc.php
am 25. Februar 2008 um 22:22 Uhr
Hi Jonathon, I will fix this soon. Thanks for your comment.
am 4. März 2008 um 22:11 Uhr
I just modified your “plugin” to work correctly. Why was it set up to be put in /wp-admin/? It should only have files put in /wp-content/plugins/, otherwise it’s no longer a plugin, it’s nearly a core modification. I will post a comment soon with a link for you to get the modified code. However I suggest that your next version should work more like dynamic plugins which store configuration in the wordpress database itself.
It took me a good amount of time to make it work in it’s new location and I hope it helps you get to your next version.
am 5. März 2008 um 10:50 Uhr
Hi Scott,
thank you for your comment. I`m looking forward to hear from you soon. WordPress 2.5. will have an integrated media library. The question is, if the plugin is still necessary?!
am 5. März 2008 um 18:16 Uhr
Yes, the new media library is effective, however a FTP / Web Browser plugin will still be useful for those who want to manage files on the fly for their site.
am 13. Mai 2008 um 18:26 Uhr
hi. Thanks for plugin
perfect.
regards
am 17. Juni 2008 um 13:58 Uhr
Hallo,
ich möchte den “WP-FileManager” auch einer anderen Bentztergruppe zugänglich machen.
Momentan können nur Administratoren den “WP-FileManager” benutzen! Ich möchte aber auch der Gruppe “Redakteur” gestatten den “FileManager” zu nutzen.
Wie kann ich das Realisieren
Nils
am 1. Juli 2008 um 18:48 Uhr
@Nils: Mit der Rollenfunktion von WordPress sollte das realisierbar sein. Einfach mal ein bisschen unter http://codex.wordpress.org/Roles_and_Capabilities einlesen.
am 16. Juli 2008 um 12:30 Uhr
Dear Sir,
How do you determine the home directory to be used with file managaer plugin?
Thank you
am 18. Juli 2008 um 13:39 Uhr
@alias: You can determine the home directory in the file conf/config.inc.php.
am 26. Juli 2008 um 00:45 Uhr
I love the plugin, however it doesn’t work with the WP-Email plugin by Lester Chan. There is a function (is_valid_name()) that both plugins seem to declare and Wordpress doesn’t like that. Would this be something that can be fixed?
am 28. August 2008 um 16:25 Uhr
It is a little bit strange that the plugin should be installed in wp-admin. I suggest a new version should be plugin-compatible, as Scott suggested.
am 9. Oktober 2008 um 23:42 Uhr
I cannot get it to work.
It just says:
Invalid home folder
at the top of the page
am 19. Oktober 2008 um 13:14 Uhr
@Oliver: Did you change the variables in conf/config.inc.php?
am 1. November 2008 um 18:56 Uhr
Hello, ok i hae read the instructions and the comments but still have issues getting correct home folder, in config.inc.php i have
home_directory = “../wp-content/”;
When i load filemanager it give invalid path error but when i click on link .. next folder icon i get to the wp-content folder?
I have tried lots of permutation for path but cannot get it right?
any ideas?
cheers
am 12. November 2008 um 01:43 Uhr
Great plugin…
… big suggestion: multiple file / folder upload
am 25. November 2008 um 10:35 Uhr
@carpman: Did you try it with another folder in your root directory e.g. ../files.
am 8. Dezember 2008 um 01:07 Uhr
I agree that copying files into the wp-admin folder is very sloppy. I can’t use this plugin if the files will be scattered around – it makes it more difficult to upgrade Wordpress.
am 4. Februar 2009 um 05:05 Uhr
After I activated the plugin, the button “FileManager” appears on the left menu except it points to a file /fm.php that doesn’t exist. Is there special file permissions that this plugin requires?
I’m using WP 2.7
am 4. Februar 2009 um 13:59 Uhr
@Freehill: Please check if the directory of fm.php and the folders is right. It should be /wp-admin.
am 6. Februar 2009 um 10:50 Uhr
Hallo,
ich habe das Plugin bei mir unter WP 2.7 installiert und es funktioniert super!
Vielen Dank!
am 6. Februar 2009 um 14:26 Uhr
Hi,
kann ich den FileManger irgendwie in die Mediathek einbinden oder umgekehrt?
Ziel ist es über die Mediathek Dateien aus dem FileManager in einen Artikel hochzuladen!
Vielen Dank für das Feedback!
greetz
am 6. Februar 2009 um 14:36 Uhr
@p!xel: Der FileManager wurde entwickelt, als WordPress noch keine Mediathek implentiert hatte. Im Prinzip ist die Mediathek auch ein FileManager, deswegen ist es meines Erachtens sinnvoll entweder den FileManager oder die Mediathek zu nutzen. Aus diesem Grund wird der FileManager derzeit auch nicht weiterentwickelt (bis auf Bugfixes).
am 18. Februar 2009 um 21:34 Uhr
I’m running my website on a windows based machine and i was curious how to use the file manager to show a folder on a seperate hard drive. i’ve tried a few different variations for the home folder, however i get errors on invalid folder locations. Ty for your help. -marco
am 21. Februar 2009 um 16:52 Uhr
@Marco: I’m sorry, but I think there is no solution with the current version of WP-FileManager for your problem.
am 9. März 2009 um 12:14 Uhr
why do I get all these errors?
PHP Error Message
Warning: include(conf/config.inc.php) [function.include]: failed to open stream: No such file or directory in /home/a7895515/public_html/wp-admin/fm.php on line 8
[shortened by editor]
am 11. März 2009 um 14:38 Uhr
@steve: It seems that the files are not in the right directory. Please reinstall the plugin and look carefully on the instructions.
am 27. März 2009 um 10:50 Uhr
Hi
In Wordpress 2.7 I get “The page you are trying to reach is unavailable or does not exist.” when I try to go to the admin page. I see someone else had te same problem.
am 29. März 2009 um 18:22 Uhr
@rorohan: The answer I wrote steve should be your solution, too.
am 31. März 2009 um 10:03 Uhr
Hallo,
wordpress kann bei mir zwar Bilder hochladen, aber diese dann nicht veröffentlichen. Die Bilder haben wahrscheinlich die falschen Dateirechte. Wie kann man das ändern?
am 1. April 2009 um 19:03 Uhr
@Georg: Sind die Dateirechte des Ordners, in dem die Dateien liegen, denn passend?
am 1. April 2009 um 22:30 Uhr
in welchem Ordner? Wie kann ich die Rechte überprüfen?
am 2. April 2009 um 18:13 Uhr
Thanks for a nicely implemented plugin. Is access to the FileManager restricted by role to the Admin? Seems to be as users with Editor role do not see the FM. If it is restricted, could you point me to where I can edit this? Thanks!
am 7. April 2009 um 16:28 Uhr
hat sich schon erledigt, danke!
am 20. Mai 2009 um 17:22 Uhr
There seems to be a conflict with a plugin that I use: Admin SSL ( http://wordpress.org/extend/plugins/admin-ssl-secure-admin/ ). whenever this plugin is activeated, WP-Filemanager tells me “invalid path”. When I deactivate the Admin SSL, WP-Filemanager works. Any ideas what might be the conflict?
am 21. Mai 2009 um 20:56 Uhr
i found the answer for my trouble:
“Invalid home folder.” fixed to “Create new folder Upload files”
change u r home directory:
$home_directory = “/home/username/public_html/wp-content/plugins/”;
am 5. Oktober 2009 um 19:34 Uhr
Hallo Johannes,
danke für das tolle Plugin!
Auch unter WPMU funktioniert es einwandfrei – mit installiertem BuddyPress in aktueller Version 1.1 leider nicht mehr :-(
Dann heißt es “Falscher Pfad!” – sieht man in den Quelltext, so lauten die href’s für Neuer Ordner/ Neue Datei ‘?&path=%2Fbuddypress&action=create&type=directory’ bzw. ‘?&path=%2Fbuddypress&action=create&type=file’.
Das “buddypress” darin ist falsch – hast Du einen Lösungsansatz!?
Danke im Voraus,
m@rk
am 10. Dezember 2009 um 11:04 Uhr
Hey,
ich danke dir echt von ganzem Herzen für dieses Plugin. Die Installation ging einfach von statten, es gab keine Probleme und ich nutze es jetzt für alle Medien.
Es funktioniert super. Danke dir!
am 16. Januar 2010 um 02:58 Uhr
Hallo Johannes,
leider funktioniert auch V1.2.2 nicht unter BuddyPress, vgl. o. – woran mag dies bloß liegen!?
am 16. Januar 2010 um 12:52 Uhr
Hallo m@rk, habe keine Idee und leider im Moment keine Zeit. Geh doch mal ins offizielle Supportforum, vielleicht kennt da jemand eine Lösung.
am 20. Januar 2010 um 21:29 Uhr
I really like the file managment plugin. But is it possible to use it on a worpress page? I would like to be able to upload files without logging into the wp-admin page. Thanks.
am 21. Januar 2010 um 07:57 Uhr
@Kristian: The usage of WP-FileManager on a wordpress page without logging in would be an security issue. Currently there is no possibility to do this.