• Resolved scont

    (@scont)


    After upgrading to version 2.6.2, the add question to test button does not work. There is an error in the browser: “wp-admin/admin-ajax.php 500 Internal Server Error”

    In the log:

    CRITICAL Uncaught TypeError: TUTOR\Question_Answers_List::answer_list_by_question(): Argument #2 ($question_type) must be of type string, null given, called in /wp-content/plugins/tutor/views/modal/question_answer_list.php on line 24 and defined in /wp-content/plugins/tutor/classes/Question_Answers_List.php:105 CONTEXT: {“error”:{“type”:1,”file”:”/wp-content\/plugins\/tutor\/classes\/Question_Answers_List.php”,”line”:105},”backtrace”:[“”,”#0 /wp-content\/plugins\/tutor\/views\/modal\/question_answer_list.php(24): TUTOR\Question_Answers_List::answer_list_by_question(0, NULL)”,”#1 \wp-content\/plugins\/tutor\/views\/modal\/question_form.php(173): require(‘\/home\/c\/cpspec\/…’)”,”#2 \wp-content\/plugins\/tutor\/classes\/Quiz.php(1174): require(‘\/home\/c\/cpspec\/…’)”,”#3 [internal function]: TUTOR\Quiz->tutor_quiz_builder_get_question_form(”)”,”#4 /wp-includes\/class-wp-hook.php(324): call_user_func_array(Array, Array)”,”#5 /wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)”,”#6 /wp-includes\/plugin.php(517): WP_Hook->do_action(Array)”,”#7 /wp-admin\/admin-ajax.php(192): do_action(‘wp_ajax_tutor_q…’)”,”#8 {main}”,”thrown”]}

    MathJax-LaTeX not used

Viewing 1 replies (of 1 total)
  • Thread Starter scont

    (@scont)

    The source of the error is that there was no field in the database. When updating, it was not added. Restarting the plugin solved the problem.

    WordPress database error Unknown column ‘answer_explanation’ in ‘field list’ for query INSERT INTO wpt_tutor_quiz_questions (quiz_id, question_title, question_description, question_type, question_mark, question_settings, question_order, answer_explanation) VALUES (‘24322’, ‘\xd0\x92\xd0\xbe\xd0\xbf\xd1\x80\xd0\xbe\xd1\x81 2789’, ”, ‘true_false’, ‘1’, ‘a:0:{}’, ‘1’, ”) made by do_action(‘wp_ajax_tutor_quiz_builder_get_question_form’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, TUTOR\Quiz->tutor_quiz_builder_get_question_form, referer

Viewing 1 replies (of 1 total)

The topic ‘wp-admin/admin-ajax.php 500 Internal Server Error’ is closed to new replies.