When I create view with Answer field I get an error.

Created on 18 March 2017, over 7 years ago
Updated 26 July 2024, about 1 month ago

Hi there,
I tried to use latest Quiz and Views modules on my local and remote servers, but I get in both cases the same problem.

I create view, then I add field User (it is OK), after it I adding field Answer and immediately I get Ajax error in alert, then view is crash.
When I looked into Recent log messages I saw next things:

Notice: Trying to get property of non-object in quiz_views_handler_field_quiz_question_result_answer->pre_render() (line 51 of F:\OpenServer\domains\dru7.loc\sites\all\modules\quiz\includes\views\handlers\quiz_views_handler_field_quiz_question_result_answer.inc).
Notice: Undefined index: in quiz_views_handler_field_quiz_question_result_answer->pre_render() (line 51 of F:\OpenServer\domains\dru7.loc\sites\all\modules\quiz\includes\views\handlers\quiz_views_handler_field_quiz_question_result_answer.inc).
Notice: Undefined property: stdClass::$result_id in quiz_views_handler_field_quiz_question_result_answer->pre_render() (line 44 of F:\OpenServer\domains\dru7.loc\sites\all\modules\quiz\includes\views\handlers\quiz_views_handler_field_quiz_question_result_answer.inc).

I tried to use dev versions Views and Quize, but result was the same.
The site have minimum of modules and use default theme Bartik.
No hacks, no extra coding, no custom modules.

Thx for any help.
regards

πŸ› Bug report
Status

Closed: outdated

Version

5.1

Component

Code - Views

Created by

πŸ‡ΊπŸ‡¦Ukraine trolik

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the β€œVDC” tag instead.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    With D7 approaching EOL soon I've started the process of triaging the D7queue here. Since there hasn't been any movement on this going to close out.

Production build 0.71.5 2024