MyBB Community Forums

Full Version: [Fixed] Avatar Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

Since the upgrade to 1.2.10 I have had problems linking to off site avatars.

Each time I, or a user, enters a URL we get the following error:
  • The URL you entered for your avatar does not appear to be valid. Please ensure you enter a valid URL.

Any help or guidance you can give me would be much appreciated.

Regards, Keith
What URL are you trying to enter?
I have tried the ones provided by photobucket, that used to work

I have also tried linking directly from one of my web sites with following

http://mywebsite.co.uk/pictures/afylogo.jpg

http://www.mywebsite.co.uk/pictures/afylogo.jpg

All are giving me the same error
Did you try it without htpp:// ?
Having the same problem =P
It appears to be on this line;
				list($width, $height, $type) = @getimagesize($tmp_name);
				@unlink($tmp_name);
				if(!$type)
				{
					$avatar_error = $lang->error_invalidavatarurl;
				}
Its like it can't get the info from a relative path (./uploads/remote_xxxxxx); when i've changed $tmp_name into $mybb->input['avatarurl'] ; it can get the width,height and type of the image.
I entered some random image URLs and they did work for me ... however, the ones you provided didn't work.
destroyer Wrote:I entered some random image URLs and they did work for me ... however, the ones you provided didn't work.

Hi,

The links I gave wont work because they are just examples of the type of link I was using, they are not real ones.

Take care, Keith
Does you host have allow_url_fopen turn on in the php.ini?
This issue has now been resolved.

The post by Lex led to me to check my uploads directory and there was a discrepancy so I uploaded a fresh copy of the uploads directory and all appears to be working OK now.

Thanks to everyone for there help.

Regards, Keith
That explains everything. Lol, I didn't check them. Toungue