Notice (8): Trying to access array offset on value of type null [APP/controllers/modules_controller.php, line 80]Code |
Context function courseAccessLog( $course_id )
{
$conditions[] = "`CoursesLoginLog`.user_id = ".$this->user['User']['id'];
$course_id = "37"
Sentry\ErrorHandler::handleError() - CORE/vendor/sentry/sentry/src/ErrorHandler.php, line 303
ModulesController::courseAccessLog() - APP/controllers/modules_controller.php, line 80
ModulesController::player() - APP/controllers/modules_controller.php, line 51
ModulesController::demo() - APP/controllers/modules_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
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]Code |
Context $out = null;
if ($error) {
trigger_error('<span style="color:Red;text-align:left"><b>' . __('SQL Error:', true) . "</b> {$this->error}</span>", E_USER_WARNING);
$sql = "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"
$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"
$out = null
Sentry\ErrorHandler::handleError() - CORE/vendor/sentry/sentry/src/ErrorHandler.php, line 303
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 821
Model::find() - CORE/cake/libs/model/model.php, line 2153
ModulesController::courseAccessLog() - APP/controllers/modules_controller.php, line 82
ModulesController::player() - APP/controllers/modules_controller.php, line 51
ModulesController::demo() - APP/controllers/modules_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
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]Code |
Context } else {
$log = [
'user_id' => $this->user['User']['id'],
$course_id = "37"
$conditions = array(
"`CoursesLoginLog`.user_id = ",
"`CoursesLoginLog`.course_module_id = 37"
)
$logs = false
Sentry\ErrorHandler::handleError() - CORE/vendor/sentry/sentry/src/ErrorHandler.php, line 303
ModulesController::courseAccessLog() - APP/controllers/modules_controller.php, line 91
ModulesController::player() - APP/controllers/modules_controller.php, line 51
ModulesController::demo() - APP/controllers/modules_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
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]Code |
Context $out = null;
if ($error) {
trigger_error('<span style="color:Red;text-align:left"><b>' . __('SQL Error:', true) . "</b> {$this->error}</span>", E_USER_WARNING);
$sql = "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')"
$error = "1048: Column 'user_id' cannot be null"
$out = null
Sentry\ErrorHandler::handleError() - CORE/vendor/sentry/sentry/src/ErrorHandler.php, line 303
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 750
Model::save() - CORE/cake/libs/model/model.php, line 1353
ModulesController::courseAccessLog() - APP/controllers/modules_controller.php, line 96
ModulesController::player() - APP/controllers/modules_controller.php, line 51
ModulesController::demo() - APP/controllers/modules_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
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]Code |
Context$status = "Location: https://thesipschool.com/fr.html#668"
Sentry\ErrorHandler::handleError() - CORE/vendor/sentry/sentry/src/ErrorHandler.php, line 303
header - [internal], line ??
Controller::header() - CORE/cake/libs/controller/controller.php, line 742
Controller::redirect() - CORE/cake/libs/controller/controller.php, line 721
AppController::redirect() - APP/app_controller.php, line 596
ModulesController::player() - APP/controllers/modules_controller.php, line 64
ModulesController::demo() - APP/controllers/modules_controller.php, line 76
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83