Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Steelphoenix on May 23, 2009, 12:05:10 AM

Title: Can't upload avatars
Post by: Steelphoenix on May 23, 2009, 12:05:10 AM
I've updated to smf SMF 2.0 RC1-1 , and after it got a problem with avatar uploading
Error text:
Wrong value type sent to the database. Integer expected. (size)

How can I fix it?
Title: Re: Can't upload avatars
Post by: cultureco on May 23, 2009, 04:42:14 AM
I have the same probleme
Title: Re: Can't upload avatars
Post by: kaamaru on May 23, 2009, 05:17:39 AM
Me too >:(
Title: Re: Can't upload avatars
Post by: ericnet on May 23, 2009, 04:20:18 PM
Same problem  :-\
Title: Re: Can't upload avatars
Post by: redsc on May 23, 2009, 05:26:00 PM
I had the same problem when upgrade to the newer release.

but only with animated avatars.

so i had to upload direct to ftp.

I deleted my avatar pack... and then it started working.

Do you have any avatar packs installed ?
Title: Re: Can't upload avatars
Post by: ericnet on May 23, 2009, 06:08:32 PM
Mmm...

I have delete avatar pack and upload direct to ftp.. and is ok.

But direct ftp is not solution for all user
Wrong value type sent to the database. Integer expected. (size)
Title: Re: Can't upload avatars
Post by: redsc on May 23, 2009, 06:16:46 PM
i deleted everything out of my avatar folder apart from index.php file and it started working..

may bee give that a try  ;)
Title: Re: Can't upload avatars
Post by: kaamaru on May 23, 2009, 06:17:32 PM
I get this error when uploading an avatar. Wrong value type sent to the database. Integer expected. (size)
Title: Re: Can't upload avatars
Post by: ericnet on May 23, 2009, 06:24:19 PM
Quote from: redsc on May 23, 2009, 06:16:46 PM
i deleted everything out of my avatar folder apart from index.php file and it started working..

no.. for me not working   :-[
Title: Re: Can't upload avatars
Post by: Juduras on May 23, 2009, 06:41:47 PM
I have the same problem too
Title: Re: Can't upload avatars
Post by: Shortie on May 23, 2009, 07:06:17 PM
Hi All

The error is Here I believe but how you fix it I have no idea - I think it is something to do with the "file_hash" which is new

Anyone have any ideas

Shortie

Title: Re: Can't upload avatars
Post by: ethankcvds on May 23, 2009, 07:28:03 PM
I tested this on a fresh install a while ago and its also happening on the fresh install of SMF 2.0 RC1.1. All my sites are the same way. Well we at least know where secure from having that fake avatar uploaded.
Title: Re: Can't upload avatars
Post by: Juduras on May 23, 2009, 07:45:24 PM
I've uploaded the 2.0 RC1 's Profile-Modify.php(Sourcedir) and do the upgrade editions manually,it worked on my site.
Title: Re: Can't upload avatars
Post by: Trendinio on May 25, 2009, 04:46:44 AM
Any idea how this problem can be solved?
Title: Re: Can't upload avatars
Post by: Juduras on May 25, 2009, 12:09:08 PM
Quote from: Trendinio on May 25, 2009, 04:46:44 AM
Any idea how this problem can be solved?
Quote from: Juduras on May 23, 2009, 07:45:24 PM
I've uploaded the 2.0 RC1 's Profile-Modify.php(Sourcedir) and do the upgrade editions manually,it worked on my site.


Here is the fixed Profile-Modify.php file as attachment
Title: Re: Can't upload avatars
Post by: Shortie on May 25, 2009, 12:11:41 PM
cheers

that fixed it

thanks
Title: Re: Can't upload avatars
Post by: fille87 on May 25, 2009, 02:15:42 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Quote from: Trendinio on May 25, 2009, 04:46:44 AM
Any idea how this problem can be solved?
Quote from: Juduras on May 23, 2009, 07:45:24 PM
I've uploaded the 2.0 RC1 's Profile-Modify.php(Sourcedir) and do the upgrade editions manually,it worked on my site.


Here is the fixed Profile-Modify.php file as attachment

How do I do this? Can you make a guide?
Title: Re: Can't upload avatars
Post by: Road Rash Jr. on May 25, 2009, 02:33:45 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Here is the fixed Profile-Modify.php file as attachment

thanks Juduras, works great now  :P
Title: Re: Can't upload avatars
Post by: fille87 on May 25, 2009, 02:47:41 PM
Quote from: Bionic Rooster on May 25, 2009, 02:33:45 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Here is the fixed Profile-Modify.php file as attachment

thanks Juduras, works great now  :P

How did you do it?
Title: Re: Can't upload avatars
Post by: Road Rash Jr. on May 25, 2009, 02:50:26 PM
Quote from: fille87 on May 25, 2009, 02:47:41 PM
Quote from: Bionic Rooster on May 25, 2009, 02:33:45 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Here is the fixed Profile-Modify.php file as attachment

thanks Juduras, works great now  :P

How did you do it?

Use an ftp program and upload the file provided to Sources/Profile-Modify.php
Title: Re: Can't upload avatars
Post by: fille87 on May 25, 2009, 02:54:58 PM
Quote from: Bionic Rooster on May 25, 2009, 02:50:26 PM
Quote from: fille87 on May 25, 2009, 02:47:41 PM
Quote from: Bionic Rooster on May 25, 2009, 02:33:45 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Here is the fixed Profile-Modify.php file as attachment

thanks Juduras, works great now  :P

How did you do it?

Use an ftp program and upload the file provided to Sources/Profile-Modify.php

Thanks, worked great!
Title: Re: Can't upload avatars
Post by: Trendinio on May 25, 2009, 04:55:08 PM
Thanks man
Title: Re: Can't upload avatars
Post by: Jläbbischer on May 25, 2009, 05:18:01 PM
Juduras, you are a God! :D
Title: Re: Can't upload avatars
Post by: Juduras on May 26, 2009, 03:29:46 AM
Quote from: Jläbbischer on May 25, 2009, 05:18:01 PM
Juduras, you are a God! :D
Yeah I know  :P 
Title: Re: Can't upload avatars
Post by: AlenNS on May 26, 2009, 12:01:54 PM
I've overwrite Profile-Modify.php but still I have a error:

The database value you're trying to insert does not exist: file_hash
Title: Re: Can't upload avatars
Post by: Juduras on May 26, 2009, 01:11:18 PM
Quote from: AlenNS on May 26, 2009, 12:01:54 PM
I've overwrite Profile-Modify.php but still I have a error:

The database value you're trying to insert does not exist: file_hash
You might have a different problem
Title: Re: Can't upload avatars
Post by: kkattfish on May 27, 2009, 04:32:55 PM
just curious what did you do in that profile-modify.php to get it to work?  did you create this or did somebody else, just want to be sure it's safe. 

edit:  nm, just saw it's from the 2.0 source folder.  so is the update not working then if we use this .php?

Thank you,
Title: Re: Can't upload avatars
Post by: jstop on May 28, 2009, 10:38:35 PM
Quote from: Juduras on May 25, 2009, 12:09:08 PM
Quote from: Trendinio on May 25, 2009, 04:46:44 AM
Any idea how this problem can be solved?
Quote from: Juduras on May 23, 2009, 07:45:24 PM
I've uploaded the 2.0 RC1 's Profile-Modify.php(Sourcedir) and do the upgrade editions manually,it worked on my site.


Here is the fixed Profile-Modify.php file as attachment


This worked for me too!!! Thanks
Title: Re: Can't upload avatars
Post by: demento on June 10, 2009, 08:38:27 AM
after uploading profile-modify.php:

error

...index.php?action=profile;area=pmprefs;u=2
8: Undefined index: pm_prefs
.../Sources/Profile-Modify.php(606) : runtime-created function
Title: Re: Can't upload avatars
Post by: MCK on June 18, 2009, 09:10:31 PM
Hi,

I was having the other problem with the avatar uploads. The your upload failed because it was taking too long problem so I tried this fix. The failure message went away. Now I get the Your profile has been updated successfully message but the uploaded avatar still will not show. Any ideas what I might need to do in order to fix this issue?

On a related note, I am seeing many Avatar_tmp files in my attachments folder. Should I delete these regularly? Thanks for your input.
Title: Re: Can't upload avatars
Post by: Manieu on June 19, 2009, 04:54:57 AM
This worked out for me...

Did you update the file only manually, or did you do any additional changes?
Title: Re: Can't upload avatars
Post by: MCK on June 19, 2009, 04:59:31 AM
Just uploaded the new file keeping the old one after renaming it.
Title: Re: Can't upload avatars
Post by: darkNiGHTS on July 03, 2009, 10:27:10 AM
Thanks, that worked perfectly!