Notice (8): Trying to access array offset on value of type null [APP/controllers/modules_controller.php, line 80]

Notice: Trying to access array offset on value of type null in /var/www/vhosts/thesipschool.com/dev.thesipschool.com/app/controllers/modules_controller.php on line 80
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND `CoursesLoginLog`.`course_module_id` = 37    LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]

Query: SELECT `CoursesLoginLog`.`id`, `CoursesLoginLog`.`user_id`, `CoursesLoginLog`.`course_module_id`, `CoursesLoginLog`.`logins`, `CoursesLoginLog`.`created`, `CoursesLoginLog`.`modified`, `CourseModule`.`id`, `CourseModule`.`language_id`, `CourseModule`.`course_id`, `CourseModule`.`server_id`, `CourseModule`.`module_id`, `CourseModule`.`api_module`, `CourseModule`.`demo_id`, `CourseModule`.`api_demo_module`, `CourseModule`.`outline_doc`, `CourseModule`.`test_id`, `CourseModule`.`old_test_id`, `CourseModule`.`name`, `CourseModule`.`alias`, `CourseModule`.`ordering`, `CourseModule`.`launcher`, `CourseModule`.`enabled`, `CourseModule`.`created`, `CourseModule`.`modified` FROM `courses_login_logs` AS `CoursesLoginLog` LEFT JOIN `course_modules` AS `CourseModule` ON (`CoursesLoginLog`.`course_module_id` = `CourseModule`.`id`) WHERE `CoursesLoginLog`.`user_id` = AND `CoursesLoginLog`.`course_module_id` = 37 LIMIT 1

Notice (8): Trying to access array offset on value of type null [APP/controllers/modules_controller.php, line 91]

Notice: Trying to access array offset on value of type null in /var/www/vhosts/thesipschool.com/dev.thesipschool.com/app/controllers/modules_controller.php on line 91
Warning (512): SQL Error: 1048: Column 'user_id' cannot be null [CORE/cake/libs/model/datasources/dbo_source.php, line 684]

Query: INSERT INTO `courses_login_logs` (`user_id`, `course_module_id`, `logins`, `modified`, `created`) VALUES (NULL, 37, 1, '2025-01-21 12:10:59', '2025-01-21 12:10:59')

Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/thesipschool.com/dev.thesipschool.com/cake/libs/debugger.php:686) [CORE/cake/libs/controller/controller.php, line 742]