2024-07-21 03:08:39 --- EMERGENCY: Database_Exception [ 1452 ]: Cannot add or update a child row: a foreign key constraint fails (`caffesta_db`.`roles_users`, CONSTRAINT `roles_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE) [ INSERT INTO `roles_users` (`user_id`,`role_id`) VALUES (0,4) ] ~ MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ] in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php:251 2024-07-21 03:08:39 --- DEBUG: #0 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php(251): Kohana_Database_MySQLi->query(2, 'INSERT INTO `ro...', false, Array) #1 /var/www/caffesta/data/www/caffesta.ge/application/classes/Controller/Admin/Ajaxprocess.php(2340): Kohana_Database_Query->execute() #2 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Controller.php(84): Controller_Admin_Ajaxprocess->action_saveuser() #3 [internal function]: Kohana_Controller->execute() #4 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client/Internal.php(94): ReflectionMethod->invoke(Object(Controller_Admin_Ajaxprocess)) #5 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response)) #6 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request.php(1000): Kohana_Request_Client->execute(Object(Request)) #7 /var/www/caffesta/data/www/caffesta.ge/public/index.php(124): Kohana_Request->execute() #8 {main} in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php:251 2024-07-21 03:18:21 --- EMERGENCY: Database_Exception [ 1452 ]: Cannot add or update a child row: a foreign key constraint fails (`caffesta_db`.`roles_users`, CONSTRAINT `roles_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE) [ INSERT INTO `roles_users` (`user_id`,`role_id`) VALUES (0,4) ] ~ MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ] in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php:251 2024-07-21 03:18:21 --- DEBUG: #0 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php(251): Kohana_Database_MySQLi->query(2, 'INSERT INTO `ro...', false, Array) #1 /var/www/caffesta/data/www/caffesta.ge/application/classes/Controller/Admin/Ajaxprocess.php(2340): Kohana_Database_Query->execute() #2 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Controller.php(84): Controller_Admin_Ajaxprocess->action_saveuser() #3 [internal function]: Kohana_Controller->execute() #4 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client/Internal.php(94): ReflectionMethod->invoke(Object(Controller_Admin_Ajaxprocess)) #5 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response)) #6 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request.php(1000): Kohana_Request_Client->execute(Object(Request)) #7 /var/www/caffesta/data/www/caffesta.ge/public/index.php(124): Kohana_Request->execute() #8 {main} in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php:251 2024-07-21 16:33:36 --- EMERGENCY: ErrorException [ 8 ]: Trying to get property 'num_rows' of non-object ~ MODPATH/database/classes/Kohana/Database/MySQLi/Result.php [ 20 ] in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php:20 2024-07-21 16:33:36 --- DEBUG: #0 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php(20): Kohana_Core::error_handler(8, 'Trying to get p...', '/var/www/caffes...', 20, Array) #1 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi.php(188): Kohana_Database_MySQLi_Result->__construct(true, 'UPDATE `stores`...', false, Array) #2 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php(251): Kohana_Database_MySQLi->query(1, 'UPDATE `stores`...', false, Array) #3 /var/www/caffesta/data/www/caffesta.ge/application/classes/Controller/Admin/Ajaxprocess.php(727): Kohana_Database_Query->execute() #4 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Controller.php(84): Controller_Admin_Ajaxprocess->action_saveposes() #5 [internal function]: Kohana_Controller->execute() #6 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client/Internal.php(94): ReflectionMethod->invoke(Object(Controller_Admin_Ajaxprocess)) #7 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response)) #8 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request.php(1000): Kohana_Request_Client->execute(Object(Request)) #9 /var/www/caffesta/data/www/caffesta.ge/public/index.php(124): Kohana_Request->execute() #10 {main} in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php:20 2024-07-21 16:33:46 --- EMERGENCY: ErrorException [ 8 ]: Trying to get property 'num_rows' of non-object ~ MODPATH/database/classes/Kohana/Database/MySQLi/Result.php [ 20 ] in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php:20 2024-07-21 16:33:46 --- DEBUG: #0 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php(20): Kohana_Core::error_handler(8, 'Trying to get p...', '/var/www/caffes...', 20, Array) #1 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi.php(188): Kohana_Database_MySQLi_Result->__construct(true, 'UPDATE `stores`...', false, Array) #2 /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/Query.php(251): Kohana_Database_MySQLi->query(1, 'UPDATE `stores`...', false, Array) #3 /var/www/caffesta/data/www/caffesta.ge/application/classes/Controller/Admin/Ajaxprocess.php(727): Kohana_Database_Query->execute() #4 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Controller.php(84): Controller_Admin_Ajaxprocess->action_saveposes() #5 [internal function]: Kohana_Controller->execute() #6 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client/Internal.php(94): ReflectionMethod->invoke(Object(Controller_Admin_Ajaxprocess)) #7 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Request), Object(Response)) #8 /var/www/caffesta/data/www/caffesta.ge/system/classes/Kohana/Request.php(1000): Kohana_Request_Client->execute(Object(Request)) #9 /var/www/caffesta/data/www/caffesta.ge/public/index.php(124): Kohana_Request->execute() #10 {main} in /var/www/caffesta/data/www/caffesta.ge/modules/database/classes/Kohana/Database/MySQLi/Result.php:20