My authors have had difficulty uploading stories to the site. I'd set the stories folder permissions to 777 as recommended, but when I checked it had reset to 755. I altered it only to find it had reverted again within a few hours. It turned out my webhost no longer allows 777, and has a cunning little routine that checks and changes any instances it finds.
I understand that changing the location of stories to the database rather than files will get around the problem, but I'm a bit reluctant to do this as I believe this will mean losing the stories already uploaded, and there's 53 stories up there already.
Is there any other way around the problem?
scribblemoose
http://seeingred.scarletseduction.info/festival/
www.scarletseduction.info
Unless you can get your host to cooperate, then there is really nothing you can do except move all the stories to the database. When you change your settings, the stories are still there, but there won't be any text. You'll have to edit all the stories to add in the text, or run a script to transfer them.
I'm not saying that this will work, only that sometimes it does. Instead of setting the stories folder to 777, try setting it to 775. At worst, the host will reset it agian. At best, your members may be able to upload again.
I thought it was set to 755 and scribblemoose tried to set it to 777 to fix the problem...
That's right I think, but I was thinking that if she tried setting it to 775 instead of 777 then maybe the her host wouldn't change that setting. On some servers 775 will allow you to upload files as if it were set to 777
You might see if you can get the folders CHOWNed to whatever Apache runs on. Never had the occasion to try it, but from things I've read that might also solve your problem.
Many thanks for all the suggestions - I haven't been able to fully investigate due to family issues. However, since the original post I've discovered that some authors can upload stories with no problems, while others can't at all. Surely that implies that it's not a permissions problem after all? *stumped*
I'll update once I've had a chance to test things properly. Thanks for the help so far!
www.scarletseduction.info
I've taken one of the stories in question and tried to upload it on the author's behalf.
This is the error message that I get when I try to add the story:
Warning: fopen(stories/64/135.txt) [function.fopen]: failed to open stream: No such file or directory in /home/scarlet/public_html/seeingred/festival/admin/validate.php on line 59
Warning: filesize() [function.filesize]: Stat failed for stories/64/135.txt (errno=2 - No such file or directory) in /home/scarlet/public_html/seeingred/festival/admin/validate.php on line 60
Warning: fread(): supplied argument is not a valid stream resource in /home/scarlet/public_html/seeingred/festival/admin/validate.php on line 60
Warning: fclose(): supplied argument is not a valid stream resource in /home/scarlet/public_html/seeingred/festival/admin/validate.php on line 62
__________
Does anyone have any scripts for transferring stories from files to database? I'm a novice, to say the least!
thanks again for help so far.
www.scarletseduction.info
I was having some similar problems after moving my installation (still on same server) and I played with my chmod for hours and had spotty success. Following advice from boards here, I contacted my host about the CHOWN and got that updated and now the problems seem to be gone (at least i hope they are, have been no more reports of problems for a few days)
So before facing the moving to database move, contact your host about the CHOWN, it might solve your problems too.
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
I was having some similar problems after moving my installation (still on same server) and I played with my chmod for hours and had spotty success. Following advice from boards here, I contacted my host about the CHOWN and got that updated and now the problems seem to be gone (at least i hope they are, have been no more reports of problems for a few days)
So before facing the moving to database move, contact your host about the CHOWN, it might solve your problems too.
That does sound promising - I confess I don't actually know what CHOWN is exactly - what would I need to ask my web host to do?
thanks for the help!
www.scarletseduction.info
When some of my authors could upload, and others couldn't, it turned out that the story text files were set to different things... the ones that couldn't upload were set to 644 or something like that. Chnaging the permisisons solved the problem.
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
They are supposed to be set to 644 though, and if they only work at higher permissions then something else is wrong. scribblemoose, if you ask your host to CHOWN the stories folder and all the files in it to your account--they'll know what you're talking about. CHOWN has to do with ownership of the files. Often, the default is 99, or nobody, but that can cause problems with file access if your site is in safemode or if you change servers and the files have different ownership than your server account.
They are supposed to be set to 644 though, and if they only work at higher permissions then something else is wrong. scribblemoose, if you ask your host to CHOWN the stories folder and all the files in it to your account--they'll know what you're talking about. CHOWN has to do with ownership of the files. Often, the default is 99, or nobody, but that can cause problems with file access if your site is in safemode or if you change servers and the files have different ownership than your server account.
Many thanks for this. I asked the host to do this and they complied immediately - but it hasn't helped. Error message when trying to upload a story (this is me as an admin uploading a story for a member):
Warning: mkdir(stories/64) [function.mkdir]: Permission denied in /home/scarlet/public_html/seeingred/festival/stories.php on line 198
Warning: chmod() [function.chmod]: No such file or directory in /home/scarlet/public_html/seeingred/festival/stories.php on line 199
Warning: fopen(stories/64/137.txt) [function.fopen]: failed to open stream: No such file or directory in /home/scarlet/public_html/seeingred/festival/stories.php on line 201
Warning: chmod() [function.chmod]: No such file or directory in /home/scarlet/public_html/seeingred/festival/stories.php on line 207
Am I right in interpreting this message to mean that it doesn't think it has permission to create a new folder in /stories/ ? In which case perhaps it is the permissions after all. π
www.scarletseduction.info
Well, your original problem was that your stories folder wouldn't stay set to 777, which it needs to be to create the folders, apparently, even if the CHOWN is correct. So now, I think we are back to you having to move your stories to the database or get your host to let you have the stories folder set to 777, and/or turn off safe-mode.
Did you show your host these errors? They should be able to CHOWN the stories folder so that Apache has permission to create new sub-folders and files. They may not have understood what the issue was and CHOWN'd it incorrectly.