Error locking a file

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
tcsails
Posts: 15
Joined: Sat Dec 13, 2008 5:02 am

Error locking a file

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
tcsails
Posts: 15
Joined: Sat Dec 13, 2008 5:02 am

Post by tcsails »

That totally solved it. Thanks.
Locked