Closed Thread Icon

Topic awaiting preservation: Please help !!! website is bugging (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24008" title="Pages that link to Topic awaiting preservation: Please help !!! website is bugging (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Please help !!! website is bugging <span class="small">(Page 1 of 1)</span>\

 
asptamer
Paranoid (IV) Inmate

From: The Lair
Insane since: Apr 2003

posted posted 11-11-2004 20:12

The website in question is http://www.artcenter.ac/asptamer/
I use a free PHP Gallery, and today I noticed that it started glitching on me... If you click the albums in photograph or 3D sections, and go to individual images - u will see an error on top. something like this:

code:
Warning: fopen(/home/artcent/public_html/asptamer/gallery/albums/digital/photos.dat.lock): failed to open stream: Permission denied in /home/artcent/public_html/asptamer/gallery/platform/fs_unix.php on line 53
Error: Could not open lock file (/home/artcent/public_html/asptamer/gallery/albums/digital/photos.dat.lock)!
Warning: fopen(/home/artcent/public_html/asptamer/gallery/albums/digital/album.dat.lock): failed to open stream: Permission denied in /home/artcent/public_html/asptamer/gallery/platform/fs_unix.php on line 53
Error: Could not open lock file (/home/artcent/public_html/asptamer/gallery/albums/digital/album.dat.lock)!



It only happens ones, as after u reload it it disappears, but only on your computer. Someone else loading the webiste will get the error still...

Please tell me what the cause is and how I can fix it... Thanks.

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 11-11-2004 21:49

I'm not sure, but it seems like it might be a case of file locking, or simultaneous access by several users to an opened file.
/Dan

{cell 260} {Blog}
-{ ?Computer games don?t affect kids; I mean if Pac-Man affected us as kids, we?d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.? (Kristian Wilson, Nintendo, Inc, 1989.) }-

asptamer
Paranoid (IV) Inmate

From: The Lair
Insane since: Apr 2003

posted posted 11-12-2004 22:45

"file locking" whats that and how do I fix it? if you're talking about permissions, then thats probably not it, as I made sure they're what theyre supposed to be.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 11-12-2004 23:13

Hi Mike, long time no see.

I made a long reply last night and it vanished and I wasn't about to make another reply, but I will make one now.

1) You can fix the error warnings by putting the @ symbol in front of your fopen command this will surpress error reporint. This is only a temp fix, because there are still problems.

2) The long fix involves you checking if the lock file exists currently, or if it doesn't exist. Try not accessing the page and just loggin in via ssh of sftp and just checking if the file exists. Don't give the program a chance.

Also send the line + and - the 5 lines around it of code in the offending file. Seeing the code can be a big help.

Total fix guess:

1) It is a permissions error, because you are most likely not the one creating the file PHP should be doing that.

2) You had a crash at some point, and the lock file wasn't closed deleted properly and now it is causing problems. You might try backing up and deleting the current lock file and seeing what happens. If that doesn't fix it put the lock file back and double check the permissions on it.

3) The parents folders permissions are set so PHP doesn't have proper access.

4) Some other error that looking at the code would make known.

Dan @ Code Town

asptamer
Paranoid (IV) Inmate

From: The Lair
Insane since: Apr 2003

posted posted 11-13-2004 01:07

thanks dan...

here's line 53 (52,53,54):

function fs_fopen($filename, $mode, $use_include_path=0) {
return fopen($filename, $mode, $use_include_path);
}

I think your 2) is likely, but the thing is: there's a lock file in every single album and theres a whole bunch of them (although, they are all 0kb in size), so the problem must be either in this fs_unix.php or permissions...

plz get online so that we can try to work this out in real time... I need this thing fixed.

Thanks for help

« BackwardsOnwards »

Show Forum Drop Down Menu