Giter VIP home page Giter VIP logo

uploadavatarfromurlforxf2's Introduction

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

General permissions

  • Upload an avatar from URL

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

uploadavatarfromurlforxf2's People

Contributors

ticktackk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uploadavatarfromurlforxf2's Issues

Errors from avatar service are not correctly returned

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"
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.