What's new
[XB] Quizzes

[XB] Quizzes [Paid] 2.0.4

No permission to buy ($75.00)
Hey Painbaker I got a file health check error after upgrading. Any ideas?

src/addons/OzzModz/Quiz/icon.png Unexpected contents
 
As soon as I uploaded I got this error.

  • ErrorException: Template error: [E_USER_WARNING] Method canViewQuiz is not callable on the given object (XFMG\XF\Entity\User)
  • src/XF/Template/Templater.php:1278
  • Generated by: Unknown account
  • Feb 11, 2025 at 5:53 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/chtas/pub...', 1278)
#1 src/XF/Template/Templater.php(1278): trigger_error('Method canViewQ...', 512)
#2 internal_data/code_cache/navigation_cache.php(866): XF\Template\Templater->method(Object(XFMG\XF\Entity\User), 'canViewQuiz', Array)
#3 src/XF/Template/Templater.php(8151): XF\Pub\App->{closure}(Object(MaZ\AMP\XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(634): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(585): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2573): XF\Pub\App->renderPageHtml('












...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(414): XF\App->renderPage('












...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#10 src/XF.php(806): XF\App->run()
#11 index.php(23): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state​

array(4) {
["url"] => string(54) "/threads/chaka-khan-released-ck-november-22-1988.5450/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Does it keep appearing again?
It's ok when you rebuild addon data - XF extension classes are deactivated, while template modifications and other add-on content remain active and can cause errors.

Ah ok and no it was just that one time. Thanks!
 
@Painbaker

Thank for last update, fantastic! (y)

1) I have a little more knowledge from the next quiz. Several users accidentally clicked "Complete Quiz" instead of moving to the next question, which caused frustration. Would it be possible to add a simple confirmation dialog (e.g., "Are you sure you want to end this quiz?" – Yes/No)? This would help prevent accidental submissions.

2) Would it be possible to introduce a "Fetured" function, similar to pinned threads in the forum?
  • Allow marking certain quizzes as recommended
  • Display them prominently in the quiz section
  • Optionally include them in a widget for better visibility
Thanks for your consideration!
 
Back
Top