Lack of access to the course catygory when creating a course

Lack of access to the course catygory when creating a course

by omid hamedi -
Number of replies: 0

Hello. I created a new role as a course creator, and in the settings section, I changed the default role for all users to this role so that any user who registered would automatically become a course creator.

But when a user wants to create a course in the first step, building a course in the course category section does not have access to the category, and this section is locked.

I have sent the image of this part. Please advise what I should do.

The following error message is displayed when the "save and display button" is pressed.


Can't find data record in database table course_categories.

More information about this error

Debug info: SELECT * FROM {course_categories} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
  • line 1562 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1538 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 2427 of /course/lib.php: call to moodle_database->get_record()
  • line 162 of /course/edit.php: call to create_course()


Attachment picture.PNG
Average of ratings: -