Skip to content
View in the app

A better way to browse. Learn more.

SOS Invision

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Quizzes

Featured Replies

  • Author
  • Administrator
21 minutes ago, Paras said:

TypeError: IPS\Session::log(): Argument #3 ($noDupes) must be of type bool, IPS\quizzes\Quiz given, called in public_html/applications/quizzes/modules/admin/quizzes/quizzes.php on line 219 (0) #0 public_html/applications/quizzes/modules/admin/quizzes/quizzes.php(219): IPS\Session->log() #1 public_html/system/Dispatcher/Controller.php(128): IPS\quizzes\modules\admin\quizzes\quizzes->resetGames() #2 public_html/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute() #3 public_html/admin/index.php(15): IPS\Dispatcher->run() #4 {main}

IPS 5.0.9

It was fixed in the last version, reported by you.

Resetting games in the latest version, using the 2 options available:

  • Replies 127
  • Views 3.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

Most Helpful Posts

  • Temporary fix: https://invisioncommunity.com/forums/topic/483000-508-released/page/3/#findComment-3000487

  • Somehow, I thought you were talking about an error in the quiz view. The error actually happens in the Admin CP. File updated and version kept. Update your install.

Posted Images

Adriano,

As achievement rules continuam não funcionando para o Quizzes. Ele não executa nenhuma regra ou atribui qualquer achievement quando um quiz é realizado pelos usuários.

  • Author
  • Administrator

Estou ciente. Devo voltar nisso na próxima semana.

  • 2 weeks later...
  • Author
  • Administrator

What's New in Version 2.1.0:

New feature:

  • Enable integration with the Open Trivia Database. It will create an automatic quiz per day with questions and answers from Trivia.

    • Settings (ACP -> Coomunity -> Quizzes -> Settings -> Quizzes):

      • Enable Open Trivia DB global integration?

      • Default Quiz Time

      • Default Quiz Title (you can use {date} to add the current date to the quiz title)

      • Default Quiz Content (you can use {category}, {difficulty} and/or {type} to appear in the quiz content)

    • Per category options (Submissions tab -> Trivia Integration):

      • Enable Open Trivia DB integration? (in the category)

      • Number of questions (up to 50 questions per quiz)

      • Category (any, Mythology, Sports, Geography, History, Politics, Art, Celebrities, Animals, Vehicles, Comics, Film, Books, Music, Television, among others)

      • Difficulty level (any, easy, medium, hard)

      • Type (any, TRUE/FALSE, multiple answers)

Fix:

  • Quiz achievement rule not working/users not receiving the badges


Open Trivia Database integration.

  • Settings:

1111.png

  • Category:

222.png

  • A test quiz :

333.png

  • Questions and answers from Trivia:

444.png

I'm trying to figure out how to get the integrated Quiz feature to publish quizzes for ALL the categories I have created. But it seems to be just creating the one quiz when the daily task runs?

  • Author
  • Administrator
On 8/22/2025 at 1:03 AM, SolanoParanormal said:

I'm trying to figure out how to get the integrated Quiz feature to publish quizzes for ALL the categories I have created. But it seems to be just creating the one quiz when the daily task runs?

I tested one category only but I don’t see why it wouldn’t work with several categories.

Will retest it.

  • 3 months later...
  • Author
  • Administrator

What's New in Version 2.1.1:

  • Fix missing moderator notifications for quizzes, comments, or reviews awaiting approval

  • Missing icons in the Actions menu

  • 1 month later...

We experience some formatting issues with 2.1.1.

In the question text - bullet lists, headings, line breaks and separators are displayed correctly in the editor window, but not then becoming visible

I attach three screenshots from how it looks at the front-end (the one taking the Quiz), the editor window and from the summare (Manage questions)

Any help would be much appreciated.

Skärmavbild 2026-01-19 kl. 15.41.17.png

Skärmavbild 2026-01-19 kl. 15.43.13.png

Skärmavbild 2026-01-19 kl. 15.43.36.png

  • Author
  • Administrator

What's New in Version 2.1.2:

  • Fix the quiz question formatting issue when playing a quiz

  • Fix the quiz question formatting issue when adding replies in a multiple answer grid

can not import xml file that I just export

show me "Something went wrong. Check the values provided on the marked tabs and try again."

the xml file look like this

<?xml version="1.0" encoding="UTF-8"?>

<quizzes>

<quiz title="test1" questions="1" time="5" type="gradeone" description="&lt;p&gt;teste&lt;/p&gt;">

<questions>

<question question_title="&lt;p&gt;&lt;strong&gt;test 1&lt;/strong&gt;&lt;/p&gt;" answer_correct="1213" answer_wrong="[&quot;12345&quot;,&quot;2123&quot;,&quot;12334&quot;]"/>

</questions>

</quiz>

</quizzes>

  • Author
  • Administrator
10 hours ago, bing11 said:

can not import xml file that I just export

show me "Something went wrong. Check the values provided on the marked tabs and try again."

the xml file look like this

<?xml version="1.0" encoding="UTF-8"?>

<quizzes>

<quiz title="test1" questions="1" time="5" type="gradeone" description="&lt;p&gt;teste&lt;/p&gt;">

<questions>

<question question_title="&lt;p&gt;&lt;strong&gt;test 1&lt;/strong&gt;&lt;/p&gt;" answer_correct="1213" answer_wrong="[&quot;12345&quot;,&quot;2123&quot;,&quot;12334&quot;]"/>

</questions>

</quiz>

</quizzes>

Can you attach your XML?

here you go

just for test

or could you give me a sample xml can work.

I can just follow this.

quiz_exported (1)

When trying to create a new quiz, I am presented with this error:

Error: Cannot instantiate abstract class IPS\Content\Item (0)
#0 /var/www/html/********/system/Content/Item.php(262): IPS\quizzes\Quiz::formElements(NULL, Object(IPS\quizzes\Category))
#1 /var/www/html/********/system/Content/Item.php(211): IPS\Content\Item::buildCreateForm(Object(IPS\quizzes\Category))
#2 /var/www/html/********/applications/quizzes/modules/front/quizzes/submit.php(80): IPS\Content\Item::create(Object(IPS\quizzes\Category))
#3 /var/www/html/********/system/Dispatcher/Controller.php(128): IPS\quizzes\modules\front\quizzes\submit->submit()
#4 /var/www/html/********/applications/quizzes/modules/front/quizzes/submit.php(37): IPS\Dispatcher\Controller->execute()
#5 /var/www/html/********/system/Dispatcher/Dispatcher.php(169): IPS\quizzes\modules\front\quizzes\submit->execute()
#6 /var/www/html/********/index.php(16): IPS\Dispatcher->run()
#7 {main}

backtrace log:

#0 /var/www/html/********/init.php(830): IPS\Log::log('Error: Cannot i...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
#2 {main}
  • Author
  • Administrator
9 hours ago, NuclearGeneral said:

When trying to create a new quiz, I am presented with this error:

Error: Cannot instantiate abstract class IPS\Content\Item (0)
#0 /var/www/html/********/system/Content/Item.php(262): IPS\quizzes\Quiz::formElements(NULL, Object(IPS\quizzes\Category))
#1 /var/www/html/********/system/Content/Item.php(211): IPS\Content\Item::buildCreateForm(Object(IPS\quizzes\Category))
#2 /var/www/html/********/applications/quizzes/modules/front/quizzes/submit.php(80): IPS\Content\Item::create(Object(IPS\quizzes\Category))
#3 /var/www/html/********/system/Dispatcher/Controller.php(128): IPS\quizzes\modules\front\quizzes\submit->submit()
#4 /var/www/html/********/applications/quizzes/modules/front/quizzes/submit.php(37): IPS\Dispatcher\Controller->execute()
#5 /var/www/html/********/system/Dispatcher/Dispatcher.php(169): IPS\quizzes\modules\front\quizzes\submit->execute()
#6 /var/www/html/********/index.php(16): IPS\Dispatcher->run()
#7 {main}

backtrace log:

#0 /var/www/html/********/init.php(830): IPS\Log::log('Error: Cannot i...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
#2 {main}

I can't reproduce this. Tested on:

  • localhost:

image.png

  • This site:

image.png

A client site:

Captura de tela 2026-01-26 090750.png

Also, the Quizzes method signature is compatible with the Item model:

  • Quizzes:

	public static function formElements( ?Item $item=NULL, ?Model $container=NULL ): array
	{
		$return = parent::formElements( $item, $container );
 
		...

  • Item model:

	/**
	 * Get elements for add/edit form
	 *
	 * @param Item|null $item The current item if editing or NULL if creating
	 * @param Model|null $container Container (e.g. forum), if appropriate
	 * @return    array
	 * @throws Exception
	 */
	public static function formElements( ?Item $item=NULL, ?Model $container=NULL ): array

Feel free to reply if you have more info to provide.

On 1/22/2026 at 10:39 PM, bing11 said:

can not import xml file that I just export

show me "Something went wrong. Check the values provided on the marked tabs and try again."

the xml file look like this

<?xml version="1.0" encoding="UTF-8"?>

<quizzes>

<quiz title="test1" questions="1" time="5" type="gradeone" description="&lt;p&gt;teste&lt;/p&gt;">

<questions>

<question question_title="&lt;p&gt;&lt;strong&gt;test 1&lt;/strong&gt;&lt;/p&gt;" answer_correct="1213" answer_wrong="[&quot;12345&quot;,&quot;2123&quot;,&quot;12334&quot;]"/>

</questions>

</quiz>

</quizzes>

I just got an error when I tried to import a quiz I just exported. Will take a look.

  • Author
  • Administrator
On 1/23/2026 at 9:05 AM, bing11 said:

here you go

just for test

or could you give me a sample xml can work.

I can just follow this.

quiz_exported (1)

I was able to import your quiz after the change I've made (the problem was a quiz without an image), but I had to rename this file to add the XML extension. Not sure why your file has no extension. I tested the EXPORT in 2 sites, and it exports a proper XML file.

I will release a new version to fix the IMPORT TOOL.

  • Author
  • Administrator

What's New in Version 2.1.3:

  • Fix the error in the ACP tool when trying to import quizzes without an image

Installed and set up quizzes. Very nice! I am looking forward to introducing this to my members!

I am getting an error on settings, but I cannot figure out what the issue is:

image.png

  • Author
  • Administrator
55 minutes ago, Michael R said:

Installed and set up quizzes. Very nice! I am looking forward to introducing this to my members!

I am getting an error on settings, but I cannot figure out what the issue is:

image.png

Probably there’s a required field hidden there. Toggle all fields just to make sure.

Is the Enable Open Trivia DB integration required? I just want to make my own quizzes.

  • Author
  • Administrator
Just now, Michael R said:

Is the Enable Open Trivia DB integration required? I just want to make my own quizzes.

No.

Still getting the error message, but the one quiz I created seems to be working okay.

  • Author
  • Administrator

What's New in Version 2.1.4:

  • Fix errors when trying to save the settings with the Open Trivia DB integration disabled.

  • 4 weeks later...
  • 3 weeks later...
  • Author
  • Administrator

What's New in Version 2.1.6:

  • Add a new type of Quiz: Survival Mode

    • Similar to Graded Mode: One Right Answer, this quiz mode ends immediately upon the first incorrect answer. It includes a time challenge, and the final score is recorded in the Quiz Leaderboard.

  • Script optimization

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.