Bug XF2.1 and Better auto complete tag list

#1
I know 2.1 is only in Beta, but I couldn't see any previous reports on compatibility.

So I just thought I would confirm that it is not working as-is. Enabling the add-on stops the tag list appearing at all.
 

Walky

Admin - Developer
Staff member
Admin
#2
I know 2.1 is only in Beta, but I couldn't see any previous reports on compatibility.

So I just thought I would confirm that it is not working as-is. Enabling the add-on stops the tag list appearing at all.
Hello,

Which addon are you talking about ?
 
#3
https://foro.agency/resources/foro-agency-better-auto-complete-tag-list.34/

Hopefully this helps..
Code:
Server error log

    InvalidArgumentException: Unknown column like_count on XF:User src\XF\Mvc\Entity\Finder.php:1476 

    Generated by: Andy Jan 6, 2019 at 10:45 PM 

Stack trace

#0 src\XF\Mvc\Entity\Finder.php(539): XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn('like_count', true)
#1 src\XF\Mvc\Entity\Finder.php(927): XF\Mvc\Entity\Finder->columnSqlName('like_count', true)
#2 src\addons\ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member.php(33): XF\Mvc\Entity\Finder->order('like_count', 'DESC')
#3 src\XF\Mvc\Dispatcher.php(321): ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member->actionFind(Object(XF\Mvc\ParameterBag))
#4 src\XF\Mvc\Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'Find', Object(XF\Mvc\RouteMatch), Object(ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member), NULL)
#5 src\XF\Mvc\Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member), NULL)
#6 src\XF\Mvc\Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src\XF\App.php(2177): XF\Mvc\Dispatcher->run()
#8 src\XF.php(392): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state

<pre class='xdebug-var-dump' dir='ltr'>
<small>C:\wamp64\www\nerdface\src\XF\Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
  'url' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'/nerdface/index.php?members/find&amp;q=and&amp;_xfRequestUri=%2Fnerdface%2Findex.php%3Fthreads%2Fmotherfucking-question-motherfucker.4%2F&amp;_xfWithData=1&amp;_xfToken=1546814735%2C24365e42deedaf9b5f4a6ac913c2d33a&amp;_xfResponseType=json'</font> <i>(length=219)</i>
  'referrer' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'http://localhost/nerdface/index.php?threads/motherfucking-question-motherfucker.4/'</font> <i>(length=82)</i>
  '_GET' <font color='#888a85'>=&gt;</font> 
    <b>array</b> <i>(size=6)</i>
      'members/find' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
      'q' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'and'</font> <i>(length=3)</i>
      '_xfRequestUri' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'/nerdface/index.php?threads/motherfucking-question-motherfucker.4/'</font> <i>(length=66)</i>
      '_xfWithData' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
      '_xfToken' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1546814735,24365e42deedaf9b5f4a6ac913c2d33a'</font> <i>(length=43)</i>
      '_xfResponseType' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'json'</font> <i>(length=4)</i>
  '_POST' <font color='#888a85'>=&gt;</font> 
    <b>array</b> <i>(size=0)</i>
      <i><font color='#888a85'>empty</font></i>
</pre>
 
Last edited:

Walky

Admin - Developer
Staff member
Admin
#4
https://foro.agency/resources/foro-agency-better-auto-complete-tag-list.34/

Hopefully this helps..
Code:
Server error log

    InvalidArgumentException: Unknown column like_count on XF:User src\XF\Mvc\Entity\Finder.php:1476

    Generated by: Andy Jan 6, 2019 at 10:45 PM

Stack trace

#0 src\XF\Mvc\Entity\Finder.php(539): XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn('like_count', true)
#1 src\XF\Mvc\Entity\Finder.php(927): XF\Mvc\Entity\Finder->columnSqlName('like_count', true)
#2 src\addons\ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member.php(33): XF\Mvc\Entity\Finder->order('like_count', 'DESC')
#3 src\XF\Mvc\Dispatcher.php(321): ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member->actionFind(Object(XF\Mvc\ParameterBag))
#4 src\XF\Mvc\Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Member', 'Find', Object(XF\Mvc\RouteMatch), Object(ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member), NULL)
#5 src\XF\Mvc\Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ForoAgency\StaffBeforeTag\XF\Pub\Controller\Member), NULL)
#6 src\XF\Mvc\Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src\XF\App.php(2177): XF\Mvc\Dispatcher->run()
#8 src\XF.php(392): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state

<pre class='xdebug-var-dump' dir='ltr'>
<small>C:\wamp64\www\nerdface\src\XF\Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
  'url' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'/nerdface/index.php?members/find&amp;q=and&amp;_xfRequestUri=%2Fnerdface%2Findex.php%3Fthreads%2Fmotherfucking-question-motherfucker.4%2F&amp;_xfWithData=1&amp;_xfToken=1546814735%2C24365e42deedaf9b5f4a6ac913c2d33a&amp;_xfResponseType=json'</font> <i>(length=219)</i>
  'referrer' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'http://localhost/nerdface/index.php?threads/motherfucking-question-motherfucker.4/'</font> <i>(length=82)</i>
  '_GET' <font color='#888a85'>=&gt;</font>
    <b>array</b> <i>(size=6)</i>
      'members/find' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
      'q' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'and'</font> <i>(length=3)</i>
      '_xfRequestUri' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'/nerdface/index.php?threads/motherfucking-question-motherfucker.4/'</font> <i>(length=66)</i>
      '_xfWithData' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
      '_xfToken' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'1546814735,24365e42deedaf9b5f4a6ac913c2d33a'</font> <i>(length=43)</i>
      '_xfResponseType' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'json'</font> <i>(length=4)</i>
  '_POST' <font color='#888a85'>=&gt;</font>
    <b>array</b> <i>(size=0)</i>
      <i><font color='#888a85'>empty</font></i>
</pre>
Hello,

As of now, all I can say is that we don’t know if this addon will still be maintained on further versions.
 
#5
Hello,

As of now, all I can say is that we don’t know if this addon will still be maintained on further versions.
It seems to work just by removing ->order("like_count", "DESC") from src/addons/ForoAgency/StaffBeforeTag/XF/Pub/Controller/Member.php

Of course you lose that functionality, but as it sorts by messages before likes anyway.. It probably makes little difference ;)
 
Mobile app for XenForo 2 by Appify
Top