vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Getting "Invalid File" error when uploading avatars via URL (https://vborg.vbsupport.ru/showthread.php?t=320065)

user25148 08-30-2015 02:51 PM

Getting "Invalid File" error when uploading avatars via URL
 
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.

Dave 08-31-2015 10:17 AM

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

Quote:

Originally Posted by Dave (Post 2553945)
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
Code:

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

Quote:

Originally Posted by Lynne (Post 2553952)
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

Quote:

Originally Posted by Lynne (Post 2553961)
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..?


All times are GMT. The time now is 05:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01028 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete