Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2015, 02:51 PM
user25148 user25148 is offline
 
Join Date: Feb 2014
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 08-31-2015, 10:17 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This could be because of the allow_fopen_url setting in PHP. See if it's set to true or false.
Reply With Quote
Благодарность от:
user25148
  #3  
Old 08-31-2015, 12:59 PM
user25148 user25148 is offline
 
Join Date: Feb 2014
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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?
Reply With Quote
  #4  
Old 08-31-2015, 02:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you restart apache after making the change? And does it show as changed under Maintenance > PHP Info?
Reply With Quote
  #5  
Old 08-31-2015, 02:54 PM
user25148 user25148 is offline
 
Join Date: Feb 2014
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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".
Reply With Quote
  #6  
Old 08-31-2015, 04:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 08-31-2015, 04:57 PM
user25148 user25148 is offline
 
Join Date: Feb 2014
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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..?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 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.06112 seconds
  • Memory Usage 2,221KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete