Skip to content

Error when clicking on a Latest report link #13

@pkgh

Description

@pkgh

My system:

Moodle 3.9.8 (Build: 20210712)

Embed questions
filter_embedquestion
2.1 for Moodle 3.9+
2021080600

Embed question
atto_embedquestion
1.7 for Moodle 3.9+
2020080600

Embedded questions progress
report_embedquestion
1.5 for Moodle 3.9+
2021080600

After embedding a question in a course label, when accessing the Embedded question progress report and clicking on an attempt link in the "Latest attempt" colum, I get such an error:

Notice: Trying to get property 'pageurl' of non-object in /ocfs2/www/owko/report/embedquestion/classes/utils.php on line 219
Notice: Trying to get property 'embedid' of non-object in /ocfs2/www/owko/report/embedquestion/classes/utils.php on line 220
Exception - Argument 1 passed to filter_embedquestion\embed_id::create_from_string() must be of the type string, null given, called in [dirroot]/report/embedquestion/classes/utils.php on line 220

Debug info:
Error code: generalexceptionmessage
Stack trace:

line 66 of /filter/embedquestion/classes/embed_id.php: TypeError thrown
line 220 of /report/embedquestion/classes/utils.php: call to filter_embedquestion\embed_id::create_from_string()
line 54 of /report/embedquestion/classes/utils.php: call to report_embedquestion\utils::get_activity_link()
line 207 of /report/embedquestion/classes/local/report/progress_report.php: call to report_embedquestion\utils::get_embed_location_summary()
line 183 of /report/embedquestion/classes/local/report/progress_report.php: call to report_embedquestion\local\report\progress_report->display_attempt_summary()
line 81 of /report/embedquestion/activity.php: call to report_embedquestion\local\report\progress_report->display()

Also, all CSS (Boost theme) breaks.

Attached screenshot:

2021-08-23 , 12_13_22 - Mozilla Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions