[Andrew] Moderator Panel

[Andrew] Moderator Panel 2.0.9

No permission to download
Not sure if you are aware, but after banning someone, had this error:

  • InvalidArgumentException: Accessed unknown getter 'triggred' on XF:UserBan[53]
  • src/XF/Mvc/Entity/Entity.php:228
  • Jul 25, 2024 at 6:59 AM

Stack trace​

#0 src/XF/Mvc/Entity/Entity.php(140): XF\Mvc\Entity\Entity->get('triggred')
#1 internal_data/code_cache/templates/l1/s10/public/andrew_moderatorpanel_user_ban_list.php(55): XF\Mvc\Entity\Entity->offsetGet('triggred')
#2 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('andrew_moderato...', Array)
#4 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#5 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('Andrew\\Moderato...', 'public:andrew_m...', Array)
#6 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Andrew\\Moderato...', 'public:andrew_m...', Array)
#7 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#11 src/XF.php(798): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}

 
Not sure if you are aware, but after banning someone, had this error:

  • InvalidArgumentException: Accessed unknown getter 'triggred' on XF:UserBan[53]
  • src/XF/Mvc/Entity/Entity.php:228
  • Jul 25, 2024 at 6:59 AM

Stack trace​

#0 src/XF/Mvc/Entity/Entity.php(140): XF\Mvc\Entity\Entity->get('triggred')
#1 internal_data/code_cache/templates/l1/s10/public/andrew_moderatorpanel_user_ban_list.php(55): XF\Mvc\Entity\Entity->offsetGet('triggred')
#2 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('andrew_moderato...', Array)
#4 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#5 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('Andrew\\Moderato...', 'public:andrew_m...', Array)
#6 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('Andrew\\Moderato...', 'public:andrew_m...', Array)
#7 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#11 src/XF.php(798): XF\App->run()
#12 index.php(23): XF::runApp('XF\\Pub\\App')
#13 {main}

Make sure you're running the latest version, that's listed as fixed.
 
@AndrewSimm everyone can see user notes on /moderatorpanel/user-notes/ and they can see all the user notes. Moderators can view notes for which they do not have access to the note category from this page.
 
@AndrewSimm everyone can see user notes on /moderatorpanel/user-notes/ and they can see all the user notes. Moderators can view notes for which they do not have access to the note category from this page.
Yikes, I will have a fix out tonight. It looks like I only denied permission if the user didn't have canViewModeratorPanel && canViewUserNotes. It should actually be canViewModeratorPanel || canViewUserNotes. I also found the issue with categories.
 

Umm, this time Moderator Panel is inaccessable...

You should check this I suppose.

Code:
XF\Db\InvalidQueryException: MySQL statement prepare error [1582]: Incorrect parameter count in the call to native function 'FIND_IN_SET' in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 40
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1428
XF\Mvc\Entity\Finder->fetch() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 162
Andrew\ModeratorPanel\Pub\Controller\Dashboard->getRecentUserNotes() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 52
Andrew\ModeratorPanel\Pub\Controller\Dashboard->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2485
XF\App->run() in src/XF.php at line 524
XF::runApp() in index.php at line 20
 
LogicException: Unknown relation or alias xf_andrew_mp_user_note accessed on xf_andrew_mp_user_note in src/XF/Mvc/Entity/Finder.php at line 768
  1. XF\Mvc\Entity\Finder->join() in src/XF/Mvc/Entity/Finder.php at line 1701
  2. XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn() in src/XF/Mvc/Entity/Finder.php at line 610
  3. XF\Mvc\Entity\Finder->columnSqlName() in src/XF/Mvc/Entity/Finder.php at line 274
  4. XF\Mvc\Entity\Finder->buildCondition() in src/XF/Mvc/Entity/Finder.php at line 138
  5. XF\Mvc\Entity\Finder->where() in src/addons/Andrew/ModeratorPanel/Repository/UserNote.php at line 38
  6. Andrew\ModeratorPanel\Repository\UserNote->findUserNote() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 161
  7. Andrew\ModeratorPanel\Pub\Controller\Dashboard->getRecentUserNotes() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 52
  8. Andrew\ModeratorPanel\Pub\Controller\Dashboard->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352
  9. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
  10. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  11. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  12. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2485
  13. XF\App->run() in src/XF.php at line 524
  14. XF::runApp() in index.php at line 20
2.2.16
 
  • LogicException: Unknown relation or alias xf_andrew_mp_user_note accessed on xf_andrew_mp_user_note
  • src/XF/Mvc/Entity/Finder.php:768
Code:
#0 src/XF/Mvc/Entity/Finder.php(1701): XF\Mvc\Entity\Finder->join('xf_andrew_mp_us...', false, true)
#1 src/XF/Mvc/Entity/Finder.php(610): XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn('xf_andrew_mp_us...', true)
#2 src/XF/Mvc/Entity/Finder.php(274): XF\Mvc\Entity\Finder->columnSqlName('xf_andrew_mp_us...', true)
#3 src/XF/Mvc/Entity/Finder.php(138): XF\Mvc\Entity\Finder->buildCondition('xf_andrew_mp_us...', 0)
#4 src/addons/Andrew/ModeratorPanel/Repository/UserNote.php(38): XF\Mvc\Entity\Finder->where('xf_andrew_mp_us...', 0)
#5 src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php(161): Andrew\ModeratorPanel\Repository\UserNote->findUserNote()
#6 src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php(52): Andrew\ModeratorPanel\Pub\Controller\Dashboard->getRecentUserNotes()
#7 src/XF/Mvc/Dispatcher.php(352): Andrew\ModeratorPanel\Pub\Controller\Dashboard->actionIndex(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('Andrew\\Moderato...', 'Index', Object(XF\Mvc\RouteMatch), Object(Andrew\ModeratorPanel\Pub\Controller\Dashboard), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Andrew\ModeratorPanel\Pub\Controller\Dashboard), Object(XF\Mvc\Reply\Reroute))
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

Code:
LogicException: Unknown relation or alias xf_andrew_mp_user_note accessed on xf_andrew_mp_user_note in src/XF/Mvc/Entity/Finder.php at line 768
XF\Mvc\Entity\Finder->join() in src/XF/Mvc/Entity/Finder.php at line 1701
XF\Mvc\Entity\Finder->resolveFieldToTableAndColumn() in src/XF/Mvc/Entity/Finder.php at line 610
XF\Mvc\Entity\Finder->columnSqlName() in src/XF/Mvc/Entity/Finder.php at line 274
XF\Mvc\Entity\Finder->buildCondition() in src/XF/Mvc/Entity/Finder.php at line 138
XF\Mvc\Entity\Finder->where() in src/addons/Andrew/ModeratorPanel/Repository/UserNote.php at line 38
Andrew\ModeratorPanel\Repository\UserNote->findUserNote() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 161
Andrew\ModeratorPanel\Pub\Controller\Dashboard->getRecentUserNotes() in src/addons/Andrew/ModeratorPanel/Pub/Controller/Dashboard.php at line 52
Andrew\ModeratorPanel\Pub\Controller\Dashboard->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
XF\App->run() in src/XF.php at line 524
XF::runApp() in index.php at line 20


Vesrion xenforo 2.2.15
Version PHP 8.2.21

Moderator Panel is inaccessable
 
Where does it not work at? Is it just the dashboard? I assume everywhere because I utilize the same function in the repository.
 
Back
Top Bottom