My info:

FreeBSD myhost 4.11-RELEASE-p12-jc2 FreeBSD 4.11-RELEASE-p12-jc2 #0: Thu Oct 13 20:08:57 PDT 2005
apache-2.2.0
mysql-5.0.16
php-4.4.1
Drupal 4.6
filemanager-4.6.0

here are the permissions on the files dirs

drwxrwxrwx 5 nobody nobody 1024 Dec 10 11:45 files
drwxrwxrwx 2 nobody nobody 512 Nov 27 18:35 private

and it is creating the active and working and number directories.

When I go to add a file I get these errors:

warning: fopen(/usr/local/apache2/htdocs/drupal/private/filemanager.lck): failed to open stream: Permission denied in /usr/local/apache2/htdocs/drupal/modules/filemanager.module on line 654.

warning: flock(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/drupal/modules/filemanager.module on line 655.

warning: flock(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/drupal/modules/filemanager.module on line 660.

warning: fclose(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/drupal/modules/filemanager.module on line 661.

But if i still hit submit the file actually gets submitted and is accessible.

Any ideas ?

V.

Comments

ronsens’s picture

I have exactly the same problem (on a hosted server) - maybe someone could give any sugesstions?

yraffah’s picture

I'm also having the same problem :(

Kezz’s picture

me too :)

OK - lots of problems out there - anyone got a solution?

Copenhagen Expozed

matt_h’s picture

I had this problem too, because I had curiously deleted the .lck file. If you make sure the .lck is in the directory, and ensure that its permissions are set to writeable then php should work out what to do with it.

roren’s picture

I am having the same problem, and cannot seem to find the filemanager.ick file on my server, nor in the rar download from here. Any suggestions on where to find it?

DruLupis’s picture

Hi all.
I was also having this same issue. It all worked fine on my local devleopment machine, but things went south when I ported my drupal site up to my hosted web.

Even though I received the error, the picture was uploaded anyway, so it was more of an annoyance than a barrier.

valsmiths displayed error states:
warning: fopen(/usr/local/apache2/htdocs/drupal/private/filemanager.lck): failed to open stream: Permission denied in /usr/local/apache2/htdocs/drupal/modules/filemanager.module on line 654.

I had this same error but with a different path to filemanager.lck.
The fix was to adjust the permissions on the filemanager.lck file as per the path specified.
I use Core FTP Lite (free) to FTP to my hosted server. This also allows a GUI way to make modifications to file permissions.

The filemanager.lck file under suspicion initially had READ/WRITE for Owner, READ for Group and READ for World
I added WRITE for Group - didn't solve the problem
I also added WRITE for World - problem solved.

hope this helps

cheers
Drew