Random questions doesn't work

Description

After upgrade to 7.6.0. problems with random questions appeared.
When I click “preview” in a paper containing random questions, an empty page shows. After some 10s the preview content appears. But with thousands of error records like this

Undefined array key "q_media_num"
/var/www/rogo/classes/questiondata.class.php (line 671)

Undefined variable $omedia
/var/www/rogo/classes/paperproperties.class.php (line 2641)

 

 

Thanks Josef.

Environment

None

Attachments

2

Activity

Jon Lewis 
October 16, 2024 at 12:23 PM

Checked Random Block/Keyword Question types on Formative Assessments, using a mixture of questions with inbuilt media and without.

Previews, doing the test, finishing the test, reports and printing were fine.

In addition, I checked out the “duplicate question” issue Neill mentioned, which was seemingly OK.

Moving to release.

Neill Magill 
October 15, 2024 at 1:02 PM

This change is now part of the testing branch

Nisha Sarala (staff) 
October 8, 2024 at 3:09 PM

Done rules appear completed

The ticket
The change is described and explained
Scope of the change is explained
Documentation

The commits
GIT

The code
Syntax
[-] Documentation
Output
Language
Database
Security
Privacy
Performance
Testing
Overall completeness and correctness

Stefan Van Der Vyver 
October 8, 2024 at 1:51 PM

Done rules appear completed

The ticket
The change is described and explained
Scope of the change is explained
Documentation

The commits
GIT

The code
Syntax
[-] Documentation
Output
[-] Language
Database
Security
Privacy
Performance
Testing , , As part of a quest to increase knowledge sharing, I would like to know whether or not the information on this ticket is sufficicent for a tester. If not, what additional information would you required on this ticket? If it is clear enough, I would appreciate a walk through from a tester’s perspective to see which bits contributed to the tester’s understanding.
Overall completeness and correctness

Stefan Van Der Vyver 
October 8, 2024 at 1:24 PM

I understand that a new function in paperproperties.class.php called “getReplacementQuestion" unifies a request for random and keyword questions that require a new question.
There are conditions under which a question and its data will not be found if a user is editing a paper. This change strives to address that condition so that the option media is handled properly.

Done

Details

Assignee

Reporter

Priority

Affects versions

Fix versions

Impact

Likelihood

Category

Components

Reviewer 1

Reviewer 2

Tester

Original estimate

Time tracking

1d 3h 15m logged

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created August 26, 2024 at 8:39 AM
Updated November 14, 2024 at 1:10 PM
Resolved November 14, 2024 at 1:10 PM
TestRail: Cases
TestRail: Runs