What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed An error after update from 4.x.x to 5.0.2

abs0lut3

New Member
The ACP throws this

  • ErrorException: Template error: [E_WARNING] sizeof(): Parameter must be an array or an object that implements Countable
  • src/addons/XFA/CustomUsernameIcons/XF/Template/Templater.php:87

every visitor's page view.

Error details:

#0 [internal function]: XF\Template\Templater->handleTemplateError(2, '[E_WARNING] siz...', '/var/www/vhosts...', 87, Array)
#1 src/addons/XFA/CustomUsernameIcons/XF/Template/Templater.php(87): sizeof(NULL)
#2 src/addons/MMO/VerifiedBadge/XF/Template/Templater.php(9): XFA\CustomUsernameIcons\XF\Template\Templater->fnUsernameLink(Object(MaZ\AMP\XF\Template\XF22\Templater), false, Object(MMO\UserBanInfo\XF\Entity\User), false, Array)
#3 src/XF/Template/Templater.php(1128): MMO\VerifiedBadge\XF\Template\Templater->fnUsernameLink(Object(MaZ\AMP\XF\Template\XF22\Templater), false, Object(MMO\UserBanInfo\XF\Entity\User), false, Array)
#4 internal_data/code_cache/templates/l4/s87/public/xfmg_media_view_macros.php(488): XF\Template\Templater->func('username_link', Array)
#5 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('xfmg_media_view...', 'info_sidebar', Array, Array, Object(XF\Template\MacroState))
#7 src/addons/MaZ/ApprovalQueueSpamLinks/XF/Template/Templater.php(19): MaZ\AMP\XF\Template\Templater->callMacro('xfmg_media_view...', 'info_sidebar', Array, Array, NULL)
#8 internal_data/code_cache/templates/l4/s87/public/xfmg_media_view.php(706): MaZ\ApprovalQueueSpamLinks\XF\Template\Templater->callMacro('xfmg_media_view...', 'info_sidebar', Array, Array)
#9 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#10 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('xfmg_media_view', Array, true, NULL)
#11 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:xfmg_med...', Array)
#12 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#14 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#18 src/XF.php(517): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}

Typical request info:

array(4) {
["url"] => string(12) "/media/3418/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Please, check these out and fix.

Thank you!
 

Clement

Freaky Coder
Staff member
A job is expected to have run to update the user data.
It's odd you got that error, didn't you receive any other ?
 

abs0lut3

New Member
A job is expected to have run to update the user data.
It's odd you got that error, didn't you receive any other ?
Only this error.

Just updated it to 5.0.3 - the same error persits :(

Disabled it utill you fix this one.
 

Clement

Freaky Coder
Staff member
Yeah I have a fix almost ready for that.
Waiting for the feedback from another customer on another issue before I push it.
Sorry for the delay.
 
Top