Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:03 am EST

Geeklog Forums

All Of A Sudden I Can't Upload Photos...


Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Don't know what happened or why, but this morning all of a sudden the system won't let me put images into the articles. I tried using the "standard" [image] tag, as well as to use Media Gallery [media]. Apparently the system is getting stuck trying to find the image on my base computer. I get the following error message:

An error has occurred:
2 - move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpV71ZNG' to '/home/panamax/public_html/images/articles/20071215072850977_1.png' @ /home/panamax/public_html/system/classes/upload.class.php line 516

array(2) {
["this"]=>
&object(upload)(29) {
["_errors"]=>
array(0) {
}
["_warnings"]=>
array(0) {
}
["_debugMessages"]=>
array(11) {
[1]=>
string(44) "File size for truck copy.png is 187544 bytes"
[2]=>
string(68) "File, truck copy.png is of mime type image/png and IS an image file."
[3]=>
string(64) "in _getImageDimensions I got a width of 346, and a height of 230"
[4]=>
string(43) "Max allowed width = 3000, Image width = 346"
[5]=>
string(45) "Max allowed height = 3000, Image height = 230"
[6]=>
string(59) "File, truck copy.png has a width of 346 and a height of 230"
[7]=>
string(68) "File, truck copy.png is of mime type image/png and IS an image file."
[8]=>
string(64) "in _getImageDimensions I got a width of 346, and a height of 230"
[9]=>
string(43) "Max allowed width = 3000, Image width = 346"
[10]=>
string(45) "Max allowed height = 3000, Image height = 230"
[11]=>
string(59) "File, truck copy.png has a width of 346 and a height of 230"
}
["_allowedMimeTypes"]=>
array(5) {
["image/gif"]=>
string(4) ".gif"
["image/jpeg"]=>
string(10) ".jpg,.jpeg"
["image/pjpeg"]=>
string(10) ".jpg,.jpeg"
["image/x-png"]=>
string(4) ".png"
["image/png"]=>
string(4) ".png"
}
["_availableMimeTypes"]=>
array(18) {
["application/x-gzip-compressed"]=>
string(12) ".tar.gz,.tgz"
["application/x-zip-compressed"]=>
string(4) ".zip"
["application/x-tar"]=>
string(4) ".tar"
["text/plain"]=>
string(15) ".phps,.txt,.inc"
["text/html"]=>
string(10) ".html,.htm"
["image/bmp"]=>
string(9) ".bmp,.ico"
["image/gif"]=>
string(4) ".gif"
["image/pjpeg"]=>
string(10) ".jpg,.jpeg"
["image/jpeg"]=>
string(10) ".jpg,.jpeg"
["image/png"]=>
string(4) ".png"
["image/x-png"]=>
string(4) ".png"
["audio/mpeg"]=>
string(4) ".mp3"
["audio/wav"]=>
string(4) ".wav"
["application/pdf"]=>
string(4) ".pdf"
["application/x-shockwave-flash"]=>
string(4) ".swf"
["application/msword"]=>
string(4) ".doc"
["application/vnd.ms-excel"]=>
string(4) ".xls"
["application/octet-stream"]=>
string(9) ".fla,.psd"
}
["_filesToUpload"]=>
array(25) {
["file1"]=>
array(5) {
["name"]=>
string(14) "truck copy.png"
["type"]=>
string(9) "image/png"
["tmp_name"]=>
string(14) "/tmp/phpV71ZNG"
["error"]=>
int(0)
["size"]=>
int(187544)
}
["file2"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file3"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file4"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file5"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file6"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file7"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file8"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file9"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file10"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file11"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file12"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file13"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file14"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file15"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file16"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file17"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file18"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file19"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file20"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file21"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file22"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file23"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file24"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
["file25"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
}
["_currentFile"]=>
array(5) {
["name"]=>
string(14) "truck copy.png"
["type"]=>
string(9) "image/png"
["tmp_name"]=>
string(14) "/tmp/phpV71ZNG"
["error"]=>
int(0)
["size"]=>
int(187544)
}
["_allowedIPS"]=>
array(0) {
}
["_uploadedFiles"]=>
array(0) {
}
["_maxImageWidth"]=>
int(3000)
["_maxImageHeight"]=>
int(3000)
["_maxFileSize"]=>
int(10485760)
["_pathToMogrify"]=>
string(0) ""
["_pathToNetPBM"]=>
string(0) ""
["_imageLib"]=>
string(0) ""
["_autoResize"]=>
bool(false)
["_keepOriginalImage"]=>
bool(false)
["_maxFileUploadsPerForm"]=>
int(25)
["_fileUploadDirectory"]=>
string(41) "/home/panamax/public_html/images/articles"
["_fileNames"]=>
array(1) {
[0]=>
string(23) "20071215072850977_1.png"
}
["_permissions"]=>
array(1) {
[0]=>
string(4) "0644"
}
["_logFile"]=>
string(40) "/home/panamax/public_html/logs/error.log"
["_doLogging"]=>
bool(true)
["_continueOnError"]=>
bool(false)
["_debug"]=>
bool(true)
["_limitByIP"]=>
bool(false)
["_numSuccessfulUploads"]=>
int(0)
["_imageIndex"]=>
int(0)
["_wasResized"]=>
bool(false)
}
["sizeOK"]=>
bool(true)
}

(This text is only displayed to users in the group 'Root'Wink

Any help or ideas will be greatly appreciated. Thanks.

Don Winner
www.panama-guide.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Check the permissions on your images/articles directory.

bye, Dirk
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Don't think that's problem. It's set the way it's been set for years, nothing changed.

Don
www.panama-guide.com
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: winnerdk
[1]=>
string(44) "File size for truck copy.png is 187544 bytes"
[/p]
Could it be a space/quota issue?

And you should still check your permissions, your hosting provider may have modified them without telling you.
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Don't think it's space or quota - I'm on a dedicated server and moved there specifically to give myself virtually unlimited headroom.

And, I did check the permissions and they're good. Thanks.

Don
www.panama-guide.com
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
I think it has to do with this -

An error has occurred:

2 - move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpwBQ11m' to '/home/panamax/public_html/images/articles/20071215135922523_1.jpg' @ /home/panamax/public_html/system/classes/upload.class.php line 516

The only thing that changes when I try to upload different photos is the part that says:

Unable to move '/tmp/phpwBQ11m'

Where is that? Meaning, the file after /tmp/...

Don
www.panama-guide.com
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Whoops. I just noticed that the little problem that I thought I had is actually a whole lot bigger. Looking back over all of the articles I have posted (5,437) the images are no longer there in any of them. Yikes?

Guys, what happened? I am now officially sitting here with my hair on fire...

Don
www.panama-guide.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Are the image files still there?

From here, this looks more like a permission issue. For example, for the article at http://www.panama-guide.com/article.php/20071210170330275 I get a 403 when trying to load the image http://www.panama-guide.com/images/articles/20071210170330275_2.jpg

bye, Dirk
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Ok. I asked the system to generate a new backup yesterday and it generated a file larger than 2GB. The existence of that file did, in fact, put me over the limit for disk space on the server. I am now clearing off older backups and other files that I no longer need, downloading the new backup file (to remove it from the server) and I'm now back under the limit for disk space. But, the problem persists...

What might have tripped in this scenario? And, how might I "un-trip it".

Don
www.panama-guide.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: winnerdk

What might have tripped in this scenario? And, how might I "un-trip it".


That's something you may have to ask your hosting service ...

bye, Dirk
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Thanks. I'll give them a call.

Don
www.panama-guide.com
 Quote

Status: offline

winnerdk

Forum User
Full Member
Registered: 04/24/05
Posts: 339
Location:Panama City, Republic of Panama
Ah ha!

The problem was a combination of the two things. By creating the backup file I went over disk space quota. I downloaded the backup file, deleting it and other unnecessary files off of the server and got well back under the limit, but the problem was still there.

I had checked the permissions for /images/articles/ and they were good, but I "toggled" the permissions, turned them off and then back on again.

For some reason that worked, and now all of the images are back in the articles.

Aint' computers wunderful. Thanks for the help.

Don
www.panama-guide.com
 Quote

All times are EST. The time is now 02:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content