View Full Version : Getting "Invalid File" error when uploading avatars via URL
user25148
08-30-2015, 02:51 PM
When trying to upload a user avatar image from a URL I get an "Invalid URL" error. Uploading avatar images from my computer works fine though. This seems to be happening for all usergroups. As far as I can tell, I have all the image sizes set correctly. Not sure what else to say because thats the only error im getting. In image settings, I have "GD" selected for the image processing library, if that matters.
Any input is appreciated.
This could be because of the allow_fopen_url setting in PHP. See if it's set to true or false.
user25148
08-31-2015, 12:59 PM
This could be because of the allow_fopen_url setting in PHP. See if it's set to true or false.
I checked my phpinfo page and it was indeed off, so I used allow_url_fopen = On in my etc/php.ini file to turn it on, didnt seem to solve the issue though. Any other ideas?
Lynne
08-31-2015, 02:30 PM
Did you restart apache after making the change? And does it show as changed under Maintenance > PHP Info?
user25148
08-31-2015, 02:54 PM
Did you restart apache after making the change? And does it show as changed under Maintenance > PHP Info?
Im on MediaTemples Grid servers and "apparently" apache doesnt need to be restarted. Im not sure how true this is though. I checked my phpinfo page after i saved the change and it was changed to "On".
Lynne
08-31-2015, 04:38 PM
Is the image you are trying to upload within the allowed avatar size? Can we get a link to one that is giving the error? Is there anything in your error_logs (if you don't know where they are, ask your host) at the time you get the error?
user25148
08-31-2015, 04:57 PM
Is the image you are trying to upload within the allowed avatar size? Can we get a link to one that is giving the error? Is there anything in your error_logs (if you don't know where they are, ask your host) at the time you get the error?
Yes its within my set sizes:
http://prntscr.com/8b31cz
Heres the image im trying, but i've tried several others:
http://i.imgur.com/clURxVI.png
I did notice though that when I upload from my computer that i can still upload an image exceeding the size and it seems to automatically resize it. Just fyi.
I dont see anything related to this in my servers error logs either.
EDIT: So I came across this bug in the tracker: http://tracker.vbulletin.com/browse/VBIII-11010. This states its for vB 3.7.1 and a fix was uploaded and it was supposed to be fixed in 3.7.2. I downloaded the replacement class_vurl.php and tried it out and it seemed to of worked....but im using vBulletin 4.2.3. It seems a bug has reappeared or..?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.