Closed DzhumaID closed 6 months ago
I want to make several different quizzes and place them on one page. Please tell me how to do this so that this error does not occur? Or is this a bug in the plugin code and you need to wait for the plugin to be updated? PHP version 8.2 included plugin updated, version installed 1.0.3
Hey @DzhumaID ,
at the moment one quiz is possible, not more.
If we place more than one quiz on a page, everything breaks and none of them work. The console gives us the following error.
VM747748:3 Uncaught TypeError: Cannot read properties of undefined (reading 'catId') at eval (eval at (online-english-test/:1:1), :3:3449)
at Array.sort ()
at Object.sortCategories (eval at (online-english-test/:1:1), :3:3291)
at Object.startQuiz (eval at (online-english-test/:1:1), :1:12081)
at HTMLInputElement.eval (eval at (online-english-test/:1:1), :4:4215)
at HTMLInputElement.dispatch (jquery.min.js,qver=3.7.1.pagespeed.jm.PoWN7KAtLT.js:1:40035)
at v.handle (jquery.min.js,qver=3.7.1.pagespeed.jm.PoWN7KAtLT.js:1:38006)
eval @ VM747748:3
sortCategories @ VM747748:3
startQuiz @ VM747748:1
eval @ VM747748:4
dispatch @ jquery.min.js,qver=3.7.1.pagespeed.jm.PoWN7KAtLT.js:1
v.handle @ jquery.min.js,qver=3.7.1.pagespeed.jm.PoWN7KAtLT.js:1
The plugin supports step-by-step passage of several quizzes (to pass quiz 1, you must first pass quiz 2 and only after that quiz 1 will become available) - this model also does not work due to this error!