Any Idea why I can't upload my pic to my forum profile

Started by nmapxp, June 21, 2009, 06:46:20 AM

Previous topic - Next topic

nmapxp

After I upgraded SMF to RC1-1 . I can't update my forum pics. It always show msg below when I try to upload my pics.

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

I already checked
- my file size, file type is ok. It's small file , <20kb
- my SMF board setting allow upto 192KB
- Attachements fold permission has write permission for other group
- my disk space is big enough

I try look into code Profile-Modify.php . Seem it has problem when it try to move avatar_tmp_xxx.
Do you ever found this problem?
any idea to fix it?

thanks in advance,
Tor.

Aleksi "Lex" Kilpinen

Could be related to this [3484] Mis-detecting valid images for infected ones. OR possibly a php timeout etc. Have you checked your server errorlogs for any php errors when this happens?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

nmapxp

Quote from: LexArma on June 21, 2009, 06:52:44 AM
Could be related to this [3484] Mis-detecting valid images for infected ones. OR possibly a php timeout etc. Have you checked your server errorlogs for any php errors when this happens?

thanks for reply but I'm sure it's not the same issue. My avatar file didn't contain "script" text.
Another prove is I can upload my avatar when I did normal forum post. That means it's not PHP/server issue.

My avatar file is 12 Kb. I try change its name to very simple one and the result is same. I still can't upload it to forum profile.

Aleksi "Lex" Kilpinen

Quote from: nmapxp on June 21, 2009, 07:01:18 AM
Another prove is I can upload my avatar when I did normal forum post. That means it's not PHP/server issue.
I would still hold the possible error log as the only real proof on this. Could you try uploading the image again,
and then see if your error log comes up with anything.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

nmapxp

Quote from: LexArma on June 21, 2009, 07:03:10 AM
Quote from: nmapxp on June 21, 2009, 07:01:18 AM
Another prove is I can upload my avatar when I did normal forum post. That means it's not PHP/server issue.
I would still hold the possible error log as the only real proof on this. Could you try uploading the image again,
and then see if your error log comes up with anything.

Because my website is hosted. I will request log file to server administrator.
thanks sir,

nmapxp

My problem has been fixed now. Some forum user report to me that he found the error

"Wrong value type sent to the database. Integer expected. (size)"

So I try search the solution and replace "Profile-Modify.php" with fixed version.

Problem solve!!!

thanks

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: