Can not find data record in database table course_categories.

Can not find data record in database table course_categories.

by Lekshmi Anil -
Number of replies: 2

Hello,


I am using moodle 3.5, Fordson theme.

Now, when I click on Create course button, it is showing the following error.

Can not find data record in database table course_categories.

Debug info: SELECT * FROM {course_categories} WHERE id = ?
[array (
0 => 1,
)]
Error code: invalidrecord

Stack trace:

  • line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 100 of /course/edit.php: call to moodle_database->get_record()
I can create courses through Site administration-->Courses

But not from the site home.

Attaching the screenshot.


Thanks in Advance!

Attachment theme.png
Average of ratings: -
In reply to Lekshmi Anil

Re: Can not find data record in database table course_categories.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Sounds like a problem with the Fordson theme

In reply to Howard Miller

Fordson them - Re: Can not find data record in database table course_categories.

by Deepak Verma -
same issues here. the message is this
3.7 with just downloaded fordson..

Can't find data record in database table course_categories.