Page 1 of 1

Error locking a file

Posted: Sat Dec 13, 2008 5:26 am
by tcsails
Script URL: mboard
Version of script:13
Hosting company:junkyard
URL of phpinfo.php:http://www.wsu.edu/~converse/php/mboard/mboard.php
URL of session_test.php:http://www.wsu.edu/~converse/php/mboard/mboard.php?
What terms did you try when SEARCHING for a solution:

Write your message below:

I keep getting the error message:

Error locking a file, please try again later!Error locking a file

I pretty sure my permissions are okay, but I can't figure out what else to try.

Posted: Sat Dec 13, 2008 5:30 pm
by Klemen
Can't be of any help unless you upload phpinfo file to your server. You will find it in the "READ THIS BEFORE POSTING A NEW QUESTION!!" topic.

Posted: Sat Dec 13, 2008 7:56 pm
by Klemen
Seems like your OS doesn't support PHP "flock" command. Try editing mboard.php in a plain text editor and change all instances of

Code: Select all

if (flock($fp, LOCK_EX)) {
to

Code: Select all

if (1) {
and delete all this code:

Code: Select all

flock($fp, LOCK_UN);

Posted: Sun Dec 14, 2008 12:06 am
by tcsails
That totally solved it. Thanks.