dukesgrl Posted August 18, 2006 Share Posted August 18, 2006 I keep getting errors when I try to upload a photo to my site: Move_uploaded_file failed to open stream. Operation not permitted. Line 94 The errror is: public_html/store/admin/includes/classes/upload.php Line 94 Any ideas why this is suddenly happening? Been live since December without any problems. Tech support for my site says it's the developer but that was 5 support guys ago and I've about had it with them. Thanks in advance Dorinda Link to comment Share on other sites More sharing options...
mtechama Posted August 18, 2006 Share Posted August 18, 2006 I keep getting errors when I try to upload a photo to my site: Move_uploaded_file failed to open stream. Operation not permitted. Line 94 The errror is: public_html/store/admin/includes/classes/upload.php Line 94 Any ideas why this is suddenly happening? Been live since December without any problems. Tech support for my site says it's the developer but that was 5 support guys ago and I've about had it with them. Thanks in advance Dorinda could you post your code on line 94 here? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
dukesgrl Posted August 18, 2006 Author Share Posted August 18, 2006 could you post your code on line 94 here? Would love to except can't figure out which is line 94. If I count the lines there are only 50. Obviously the lines are wrapping but I can't tell where one ends and another begins. Not really that familiar with php..still learning. Any help would be great. Link to comment Share on other sites More sharing options...
dukesgrl Posted August 18, 2006 Author Share Posted August 18, 2006 Would love to except can't figure out which is line 94. If I count the lines there are only 50. Obviously the lines are wrapping but I can't tell where one ends and another begins. Not really that familiar with php..still learning. Any help would be great. OK I'm not sure if I found the right code or not. I based it on someone else having the same problem but on line 91. This is line 91 through 94 I believe: if (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) { chmod($this->destination . $this->filename, $this->permissions); if ($this->message_location == 'direct') { $messageStack->add(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success'); } else { $messageStack->add_session(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success'); } return true; } else { if ($this->message_location == 'direct') { $messageStack->add(ERROR_FILE_NOT_SAVED, 'error'); } else { $messageStack->add_session(ERROR_FILE_NOT_SAVED, 'error'); } return false; } } Also, my permissions are set to 755 so don't think that's the issue. My server tech guys want to get into the osC files but that's not a good idea......hope someone can help. Link to comment Share on other sites More sharing options...
dukesgrl Posted August 18, 2006 Author Share Posted August 18, 2006 Never mind...it was a server issue and tech support finally figured it out. DIdn't think it was an OsC problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.