Upload Avatar From URL

Upload Avatar From URL 1.0.2

No permission to download

TickTackk

Well-known member
TickTackk submitted a new resource:

Upload Avatar From URL - This add-on allows users with permission to upload avatar from URL.

Upload Avatar From URL for XenForo 2.1.10.2+

Description
This add-on allows users with permission to upload avatar from URL.

Requirements
  • PHP 7.3+

Permissions
GroupPermission
General permissionsUpload an avatar from URL

License
This project is licensed under the MIT License - see the...

Read more about this resource...
 

Iggy

Well-known member
oh hmm...dont even realize we cant do some of these things already, but looks like im installing another addon ;P

thank you for this.
 

djbaxter

Well-known member
What would cause this error and how to fix it?

Code:
Server error log

    TypeError: Argument 1 passed to XF\Mvc\Controller::exception() must be an instance of XF\Mvc\Reply\AbstractReply, instance of XF\Phrase given, called in /home/{account}/public_html/src/addons/TickTackk/UploadAvatarFromUrl/XF/Pub/Controller/Account.php on line 70 src/XF/Mvc/Controller.php:399

Stack trace

#0 src/addons/TickTackk/UploadAvatarFromUrl/XF/Pub/Controller/Account.php(70): XF\Mvc\Controller->exception(Object(XF\Phrase))
#1 src/XF/Mvc/Dispatcher.php(350): TickTackk\UploadAvatarFromUrl\XF\Pub\Controller\Account->actionAvatar(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Avatar', Object(XF\Mvc\RouteMatch), Object(Truonglv\IgnoreContent\XF\Pub\Controller\Account), NULL)
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\IgnoreContent\XF\Pub\Controller\Account), NULL)
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#6 src/XF.php(391): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state

array(4) {
  ["url"] => string(15) "/account/avatar"
  ["referrer"] => string(28) "https://{domain.tld}/account/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["avatar_crop_x"] => string(1) "0"
    ["avatar_crop_y"] => string(1) "0"
    ["use_custom"] => string(1) "1"
    ["custom_type"] => string(3) "url"
    ["url"] => string(336) "https://www.bing.com/images/search?view=detailV2&ccid=lTf6RI8C&id=216B966A5EDC176DB05D090EBDBCAD208F0F2E41&thid=OIP.lTf6RI8C-gHNZZSawm5W6wHaFj&mediaurl=https%3a%2f%2fi.ytimg.com%2fvi%2fkBkfHNigDuM%2fhqdefault.jpg&exph=360&expw=480&q=roman+catapults&simid=608040860686615421&ck=071F371BF3FEFFBDE01DAC37E83EB032&selectedIndex=0&ajaxhist=0"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(9) "/account/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Top