Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Not a Bug ErrorException: Template error: [E_USER_WARNING]

Discussion in 'Showcase Resolved Bug Reports' started by Hoib3rgA, Jan 19, 2021.

  1. Hoib3rgA

    Hoib3rgA New Member Showcase

    i'm not sure, witch addon creates this error, i hope, you can have a look over this error message:

    ErrorException: Template error: [E_USER_WARNING] Method canViewShowcaseItems is not callable on the given object (Siropu\KeywordLinking\XF\Entity\User) src/XF/Template/Templater.php:1161
    #0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/www/doc/2...', 1161, Array)
    #1 src/XF/Template/Templater.php(1161): trigger_error('Method canViewS...', 512)
    #2 internal_data/code_cache/templates/l3/s3/public/member_list_macros.php(45): XF\Template\Templater->method(Object(Siropu\KeywordLinking\XF\Entity\User), 'canViewShowcase...', Array)
    #3 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
    #4 internal_data/code_cache/templates/l3/s3/public/reaction_list.php(34): XF\Template\Templater->callMacro('member_list_mac...', 'item', Array, Array)
    #5 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
    #6 internal_data/code_cache/templates/l3/s3/public/reaction_list.php(142): XF\Template\Templater->callMacro('reaction_list', 'reactions_list', Array, Array)
    #7 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
    #8 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('reaction_list', Array)
    #9 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
    #10 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Reaction\\Lis...', 'public:reaction...', Array)
    #11 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
    #12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
    #13 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
    #14 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
    #15 src/XF.php(488): XF\App->run()
    #16 index.php(20): XF::runApp('XF\\Pub\\App')
    #17 {main}
    array(4) {
      ["url"] => string(37) "/index.php?posts%2F369831%2Freactions"
      ["referrer"] => bool(false)
      ["_GET"] => array(1) {
       ["posts/369831/reactions"] => string(0) ""
      ["_POST"] => array(0) {
    kr Chris
  2. Bob

    Bob Developer Staff Member

    If it happened just once, it was most likely a race condition, so it would be safe to ignore.

    If it has happened more than once, it could be similar to the dozens of reported similar errors with XFRM (ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User)) and XFMG (ErrorException: Template error: Method canViewMedia is not callable on the given object (XF\Entity\User))

    Awaiting feedback - Server Error

    XF 2.1 - Template Error: method canViewMedia is not callable
    Hoib3rgA likes this.
  3. Hoib3rgA

    Hoib3rgA New Member Showcase

    Thank you for your fast answaer.
    At the moment it just happend onetime
    Bob likes this.
  4. Bob

    Bob Developer Staff Member

    You caught me at a good time (having coffee before the work day starts) :D

    Ya, just ignore it and write it off as a race condition. It can (and will) happen if you disable Listeners (Chris explained that in one of the posts I linked to above).

    Have a great day :)
    Hoib3rgA likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.