021
Well-known member
- Affected version
- 2.1.5a
.if we add the criterion for sorting by relational, we get the same error as in the example:
Error:
Error trace:
$sortOrders['Admin.last_login'] = \XF::phrase('blabla_admin_last_login');
Error:
ErrorException: [E_USER_WARNING] Accessed unknown getter 'Admin.last_login' on XF:User[1] in src\XF\Mvc\Entity\Entity.php at line 190
Error trace:
Code:
XF::handlePhpError()
trigger_error() in src\XF\Mvc\Entity\Entity.php at line 190
XF\Mvc\Entity\Entity->get() in src\XF\Mvc\Entity\Entity.php at line 101
XF\Mvc\Entity\Entity->__get() in src\XF\Mvc\Entity\AbstractCollection.php at line 171
XF\Mvc\Entity\AbstractCollection->XF\Mvc\Entity\{closure}() in src\XF\Mvc\Entity\AbstractCollection.php at line 134
XF\Mvc\Entity\AbstractCollection->pluck() in src\XF\Mvc\Entity\AbstractCollection.php at line 179
XF\Mvc\Entity\AbstractCollection->pluckNamed() in src\XF\Service\MemberStat\Preparer.php at line 236
XF\Service\MemberStat\Preparer->getResultsData() in src\XF\Service\MemberStat\Preparer.php at line 101
XF\Service\MemberStat\Preparer->getResults() in src\XF\Entity\MemberStat.php at line 105
XF\Entity\MemberStat->getResults() in src\XF\Pub\Controller\Member.php at line 71
XF\Pub\Controller\Member->actionIndex() in src\XF\Mvc\Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 261
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2184
XF\App->run() in src\XF.php at line 391
XF::runApp() in index.php at line 20