Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Intermittent but persistent Attachments error

edited August 2008 in Vanilla 1.0 Help
We are just banging our heads against the wall on this one. Does anyone know why we keep getting this error when trying to upload files using attachments, but only for some users, and not all?
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/kickasskandy.com/httpdocs/forum/uploads/68 owned by uid 48 in /var/www/vhosts/kickasskandy.com/httpdocs/forum/library/Framework/Framework.Class.Uploader.php on line 113

Notice: Trying to get property of non-object in /var/www/vhosts/kickasskandy.com/httpdocs/forum/extensions/Attachments/default.php on line 703

Notice: Undefined property: stdClass::$DiscussionID in /var/www/vhosts/kickasskandy.com/httpdocs/forum/library/Vanilla/Vanilla.Control.DiscussionForm.php on line 125
We recently moved servers to a dedicated server, and they think the following:
The upload part is always going to be a problem unless you can modify the forum software to create a new folder as the FTP user rather than as apache. As it is being created as apache, the FTP user then doesn't have the correct permissions to upload to the folder. I have modified the folders that are there to have the ftp user so that you can upload to them but the software seems to be fairly random in its creation of folders
Can anyone help!!??

Thanks,
Dave

Comments

  • Attachments will make (I believe) one folder per user who uploads something (or is it one folder per thread? I'm not sure) You could try changing the script to run a CHMOD command to change the file ownership but I'm pretty sure PHP Safe mode wouldn't let you. Personally if it's a dedicated server and you are comfortable with the both the security of the server itself and the users who have access to it then I'd just turn safe mode off.
  • Hi Minisweeper,
    Thanks for the info. I'll look at doing what you said, and will report back.
    Cheers,
    Dave
This discussion has been closed.