- XF\Db\Exception: Macro public:CMTV_Badges_featured_badges_macros :: featured_badges() error: MySQL query error [1615]: Prepared statement needs to be re-prepared
- src/XF/Db/AbstractStatement.php:228
- Generated by: User1
- Nov 18, 2020 at 10:13 AM
Stack trace
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1615, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1615, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(150): XF\Db\AbstractAdapter->query('
SELECT cach...', 354)
#4 src/XF/PermissionCache.php(32): XF\Db\AbstractAdapter->fetchOne('
SELECT cach...', 354)
#5 src/XF/PermissionSet.php(35): XF\PermissionCache->getGlobalPerms(354)
#6 src/XF/Entity/User.php(926): XF\PermissionSet->hasGlobalPermission('CMTV_Badges', 'manageFeatured')
#7 src/addons/CMTV/Badges/Repository/UserBadge.php(101): XF\Entity\User->hasPermission('CMTV_Badges', 'manageFeatured')
#8 src/addons/CMTV/Badges/Repository/UserBadge.php(80): CMTV\Badges\Repository\UserBadge->getAllowedFeaturedBadges(Object(SV\WarningImprovements\XF\Entity\User))
#9 src/addons/CMTV/Badges/XF/Entity/User.php(80): CMTV\Badges\Repository\UserBadge->getFeaturedUserBadges(Object(SV\WarningImprovements\XF\Entity\User))
#10 [internal function]: CMTV\Badges\XF\Entity\User->getFeaturedBadges()
#11 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#12 internal_data/code_cache/templates/l3/s6/public/CMTV_Badges_featured_badges_macros.php(19): XF\Template\Templater->method(Object(SV\WarningImprovements\XF\Entity\User), 'getFeaturedBadg...', Array)
#13 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l3/s6/public/message_macros.php(58): XF\Template\Templater->callMacro('CMTV_Badges_fea...', 'featured_badges', Array, Array)
#15 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Array)
#16 internal_data/code_cache/templates/l3/s6/public/post_macros.php(40): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#17 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Array)
#18 internal_data/code_cache/templates/l3/s6/public/thread_view.php(647): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#19 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array)
#20 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#21 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#22 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#23 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#24 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#26 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#27 src/XF.php(391): XF\App->run()
#28 index.php(20): XF::runApp('XF\\Pub\\App')
#29 {main}
Request state
array(4) {
["url"] => string(30) "/threads/1287/"
["referrer"] => string(30) "
https://forum.exampleForum.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}