Author Topic: Upload Error After Server Crash and Rebuild by Host  (Read 3902 times)

0 Members and 1 Guest are viewing this topic.

Offline cronk005

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Travelingtheworldaround
Upload Error After Server Crash and Rebuild by Host
« on: October 15, 2007, 01:45:24 AM »
Hi There-

The server which houses my site crashed (though there was no loss of data), there appears to be an issue with uploading files into categories which existed prior to the server crash). I now get the following error when trying to upload files into these directories.

Warning: move_uploaded_file(./data/media/228/2007.October.13-Zoo-147.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /******/******/******/galleries/includes/upload.php on line 103

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpIVrnYu' to './data/media/228/2007.October.13-Zoo-147.jpg' in /******/******/******/galleries/includes/upload.php on line 103

I am running version 1.7.2
Php verison: 4.4.7

Line 103 of the file in upload.php is 
$ok = move_uploaded_file($this->upload_file, $this->upload_path[$this->image_type]."/".$this->file_name);
Your help is greatly appreciated in how I can get rid of this error.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline cronk005

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Travelingtheworldaround
Re: Upload Error After Server Crash and Rebuild by Host
« Reply #2 on: October 15, 2007, 02:30:14 AM »
Thank you. That worked perfectly. I'm glad there are people around here that can help..