Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7.2
-
Component/s: Lesson
-
Labels:None
-
Environment:Hideunicode is recommended to be installed/enabled Check
database mysql version 4.1.16 is required and you are running 5.0.27 OK
php version 4.3.0 is required and you are running 5.2.0 OK
php_extension iconv is recommended to be installed/enabled OK
php_extension mbstring is recommended to be installed/enabled OK
Showunicode is recommended to be installed/enabled Check database mysql version 4.1.16 is required and you are running 5.0.27 OK php version 4.3.0 is required and you are running 5.2.0 OK php_extension iconv is recommended to be installed/enabled OK php_extension mbstring is recommended to be installed/enabled OK
-
Affected Branches:MOODLE_17_STABLE
-
Fixed Branches:MOODLE_17_STABLE
Description
When I edit or add a lesson, I get the following error
"Update page: answer record not inserted". This is when I try to add a branch table.
I opened de-bugging mode and it presented me with the following information.
Error: Invalid context creation request for level "70", instance "".
Incorrect context parameter "" for has_capability(), object expected! This should be fixed in code.
Error: Invalid context creation request for level "70", instance "".
Incorrect context parameter "" for has_capability(), object expected! This should be fixed in code.
Once I click continue, I get the following,
Field 'response' doesn't have a default value
INSERT INTO mdl_lesson_answers ( LESSONID, PAGEID, JUMPTO, FLAGS, TIMECREATED, ANSWER )
Please help as I can no longer edit or add lessons.
Thanks
Michael Kenner
Hi Michael,
The problem with the INSERT is that the install.xml file does not have a default set for the response field (it did for MySQL though). The code does not set response to blank either so the database is rejecting the insert. I'm not sure which is the culprit (perhaps both). Will plan a fix shortly though.
Could you tell me where exactly you see the has_capability errors? Or the URL?
Cheers,
Mark