[2026-01-27 17:41:46] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":597,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php(597): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(155): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(410): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-01-27 17:47:29] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":602,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php(602): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(155): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(410): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-01-27 17:50:28] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":608,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php(608): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(155): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(410): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-01-27 17:52:21] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":592,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php(592): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(155): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(410): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-01-27 18:06:50] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":592,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/PersonRepository.php(592): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(155): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(410): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-01-27 19:51:00] [ERROR] Failed to get support logs {"contact_id":"local_69788862ab3508.52703220","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-01-27 19:51:00] [ERROR] Error getting support logs {"contact_id":"local_69788862ab3508.52703220","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-01-27 19:51:06] [ERROR] Failed to get support logs {"contact_id":"local_69788862ab3508.52703220","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-01-27 19:51:06] [ERROR] Error getting support logs {"contact_id":"local_69788862ab3508.52703220","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-01-28 14:19:56] [ERROR] Failed to get support logs {"contact_id":"local_697897aaa47eb0.87826667","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-01-28 14:19:56] [ERROR] Error getting support logs {"contact_id":"local_697897aaa47eb0.87826667","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-07 12:16:20] [ERROR] API Error {"action":"create_lead","exception":{"message":"موبایل و مسئول لید الزامی است","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/LeadService.php","line":198,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/LeadController.php(298): App\\Services\\LeadService->createLead()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(464): App\\Controllers\\LeadController->create()\n#2 {main}"}}
[2026-02-07 12:16:34] [ERROR] Failed to get support logs {"contact_id":"local_695122e6c05af9.97801547","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-07 12:16:34] [ERROR] Error getting support logs {"contact_id":"local_695122e6c05af9.97801547","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-07 12:18:02] [ERROR] Failed to get support logs {"contact_id":"local_695122e6c05af9.97801547","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-07 12:18:02] [ERROR] Error getting support logs {"contact_id":"local_695122e6c05af9.97801547","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cdr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cdr.hanafi.vip\/public\/index.php(850): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-07 13:42:54] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":581,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(581): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(134): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(405): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-02-07 13:42:58] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":581,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(581): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(134): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(405): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-02-07 13:43:06] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":581,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(581): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(134): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(405): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-02-07 13:43:13] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":581,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(581): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(134): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(405): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-02-07 13:43:26] [ERROR] Error in getLeads {"role":"admin","isAdminOrCrm":true,"exception":{"message":"SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value: ''","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":581,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(581): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(134): App\\Repositories\\PersonRepository->getLeadsCount()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(405): App\\Controllers\\LeadController->getLeads()\n#3 {main}"}}
[2026-02-07 14:11:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:11:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:12:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:12:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:13:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:13:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:14:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:14:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:15:08] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-07 14:15:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[28000] [1045] Access denied for user 'hanafivi_didash'@'localhost' (using password: YES)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-08 11:43:05] [ERROR] Failed to save deal {"deal_id":"15400","contact_id":"15070","user_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`deal_products`, CONSTRAINT `deal_products_ibfk_1` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php","line":401,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(401): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(143): App\\Services\\DealService->syncDealProducts()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1084): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(567): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-02-08 11:43:09] [ERROR] Failed to save deal {"deal_id":"15400","contact_id":"15070","user_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`deal_products`, CONSTRAINT `deal_products_ibfk_1` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php","line":401,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(401): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(143): App\\Services\\DealService->syncDealProducts()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1084): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(567): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-02-08 11:46:14] [ERROR] Failed to save deal {"deal_id":"15400","contact_id":"15070","user_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`deal_products`, CONSTRAINT `deal_products_ibfk_1` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php","line":401,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(401): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(143): App\\Services\\DealService->syncDealProducts()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1084): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(567): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-02-08 11:48:27] [ERROR] Failed to save deal {"deal_id":"15400","contact_id":"15070","user_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`deal_products`, CONSTRAINT `deal_products_ibfk_1` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php","line":401,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(401): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(143): App\\Services\\DealService->syncDealProducts()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1084): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(567): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-02-08 11:49:01] [ERROR] Failed to save deal {"deal_id":"15400","contact_id":"15070","user_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`deal_products`, CONSTRAINT `deal_products_ibfk_1` FOREIGN KEY (`deal_id`) REFERENCES `deals` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php","line":401,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(401): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(143): App\\Services\\DealService->syncDealProducts()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1084): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(567): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-02-08 12:56:22] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای امیررضا داوری (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(986): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(360): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 13:13:53] [ERROR] API Error {"action":"update_lead","exception":{"message":"کد ملی پس از ثبت قابل تغییر نیست.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1012,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(360): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-02-08 15:34:32] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای سیدمهدی بدیع زادگان (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 15:34:47] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای سیدمهدی بدیع زادگان (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:02:36] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید لید (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:13:47] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  پاک روان (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:13:57] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  پاک روان (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:14:37] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  پاک روان (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:15:20] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  پاک روان (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(963): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(358): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-08 19:23:04] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید لید (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-09 10:24:43] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'waiting for initial communication packet', system error: 110","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 15:30:21] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 15:30:21] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 15:30:21] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 15:30:21] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 15:30:40] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 16:25:05] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 16:25:08] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 16:25:35] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-09 16:25:40] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 13:38:05] [ERROR] API Error {"action":"check_reminders","exception":{"message":"SQLSTATE[HY000]: General error: 4031 The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ActivityReminderRepository.php","line":60,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ActivityReminderRepository.php(60): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/NotificationService.php(120): App\\Repositories\\ActivityReminderRepository->findDueReminders()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/NotificationController.php(156): App\\Services\\NotificationService->checkActivityReminders()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1073): App\\Controllers\\NotificationController->checkReminders()\n#4 {main}"}}
[2026-02-10 15:20:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:19] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:20] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:26] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:40] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:20:40] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:19] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:20] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:26] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:41] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:41] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:21:55] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:22:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:22:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-10 15:22:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (111)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 10:31:45] [ERROR] Non-JSON response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":503,"response_length":27,"response_preview":"The service is unavailable.","exception":null}
[2026-02-12 10:50:37] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 13:09:47] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYmJkhYK' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:07] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYZrRR3P' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:07] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MY7n8JCV' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()[2026-02-12 13:11:30] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYBJvl63' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:33] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYoLrn86' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:34] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYT1D4UH' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:36] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYjozpb0' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:36] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYmSOyQT' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 13:11:44] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 13:11:45] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write [2026-02-12 14:11:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:11:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:11:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:11:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:12:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:12:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:12:10] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/ho[2026-02-12 14:19:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:19:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:19:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:19:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:19:55] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:20:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:20:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/ho[2026-02-12 14:21:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:10] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:17] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:20] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:22] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:22] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:22] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:23] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:26] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:26] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:33] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 14:21:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[08004] [1040] Too many connections","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2[2026-02-12 15:08:44] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 15:25:23] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 15:31:26] [ERROR] API Error {"action":"get_deals","exception":{"message":"SQLSTATE[HY000]: General error: 1 Can't create\/write to file '\/tmp\/MYFTGrlm' (OS errno 30 - Read-only file system)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":425,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(425): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(32): App\\Repositories\\DealRepository->getAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(95): App\\Services\\DealService->getDeals()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(539): App\\Controllers\\DealController->getDeals()\n#4 {main}"}}
[2026-02-12 15:31:37] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 15:33:29] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 15:44:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:44:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:44:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:01] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:02] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:02] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:04] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:18] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:45:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:46:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:46:47] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:47:49] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:47:49] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:48:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:48:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 15:48:48] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(43): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-02-12 19:31:27] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 19:49:10] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 20:37:19] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-12 20:43:00] [ERROR] Empty response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":401,"exception":null}
[2026-02-14 14:10:21] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  علی طوری تهرانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-15 14:54:59] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  اقای علیزاده (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-16 15:14:21] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  سروستانی (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-16 15:25:30] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای اقای سروستانی (مسئول: امیر سهرابی ) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-16 18:53:51] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای حسین بهرامیان (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-16 18:53:55] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای حسین بهرامیان (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(473): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-17 12:30:05] [ERROR] Failed to calculate KPI {"filters":{"date_from":"2026-01-21","date_to":"2026-02-19","owner_didar_id":"","owner_didar_ids":[],"owner_didar_ids_csv":"","product_id":"","product_ids":[],"product_ids_csv":"","deal_statuses":[],"deal_statuses_csv":"","deal_lead_types":[],"deal_lead_types_csv":"","person_date_from":"2026-01-21","person_date_to":"2026-02-19"},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pay4.first_payment_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2012,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2012): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1205): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getAdvancedKpiTables()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(112): App\\Services\\KpiService->buildAdvancedKpiTables()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(104): App\\Services\\KpiService->calculateKPI()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(307): App\\Controllers\\KpiController->getKPI()\n#6 {main}"}}
[2026-02-17 12:30:15] [ERROR] Failed to calculate KPI {"filters":{"date_from":"2026-01-21","date_to":"2026-02-19","owner_didar_id":"","owner_didar_ids":[],"owner_didar_ids_csv":"","product_id":"","product_ids":[],"product_ids_csv":"","deal_statuses":[],"deal_statuses_csv":"","deal_lead_types":[],"deal_lead_types_csv":"","person_date_from":"2026-01-21","person_date_to":"2026-02-19"},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pay4.first_payment_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2012,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2012): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1205): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getAdvancedKpiTables()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(112): App\\Services\\KpiService->buildAdvancedKpiTables()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(104): App\\Services\\KpiService->calculateKPI()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(307): App\\Controllers\\KpiController->getKPI()\n#6 {main}"}}
[2026-02-17 13:14:26] [ERROR] Failed to get KPI drilldown {"table_id":"deal_status","metric_key":"deal_new_total","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.updated_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:14:44] [ERROR] Failed to get KPI drilldown {"table_id":"payment_mix","metric_key":"new_leads_with_payment","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.updated_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:14:45] [ERROR] Failed to get KPI drilldown {"table_id":"payment_mix","metric_key":"new_leads_with_payment","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.updated_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:14:45] [ERROR] Failed to get KPI drilldown {"table_id":"payment_mix","metric_key":"new_leads_with_payment","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.updated_at' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:20:12] [ERROR] Failed to get KPI drilldown {"table_id":"deal_status","metric_key":"deal_new_total","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:20:18] [ERROR] Failed to get KPI drilldown {"table_id":"deal_status","metric_key":"deal_total","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:20:44] [ERROR] Failed to get KPI drilldown {"table_id":"payment_mix","metric_key":"new_leads_with_payment","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:20:52] [ERROR] Failed to get KPI drilldown {"table_id":"payment_mix","metric_key":"old_leads_with_payment","row":{"date":"2026-02-15","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:21:02] [ERROR] Failed to get KPI drilldown {"table_id":"deal_status","metric_key":"deal_total","row":{"date":"2026-02-16","owner_didar_id":"75f9d286-0d05-43e0-a6ed-9fdb8ad89a0f","owner_name":"خانم شایسته","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-17 13:25:50] [ERROR] Failed to get KPI drilldown {"table_id":"deal_status","metric_key":"deal_total","row":{"date":"2026-01-27","owner_didar_id":"ef266a9a-ff55-4893-8be3-7848badfcdce","owner_name":"امیر سهرابی","product_name":"","failure_reason":"","activity_type":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'd.failure_reason_title' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":2616,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2616): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1788): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(1614): App\\Repositories\\KpiRepository->getDealBasedDrilldown()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(345): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(355): App\\Services\\KpiService->getKpiDrilldown()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(347): App\\Controllers\\KpiController->getKpiDrilldown()\n#6 {main}"}}
[2026-02-18 12:43:19] [ERROR] Failed to get support logs {"contact_id":"6325","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(865): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-18 12:43:19] [ERROR] Error getting support logs {"contact_id":"6325","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(865): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-21 13:17:01] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  حسن حیدری (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-21 13:22:10] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  حسن حیدری (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-21 13:22:40] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  حسن حیدری (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-22 09:50:50] [ERROR] Non-JSON response from Didar API {"endpoint":"\/activity\/GetActivityType","http_code":503,"response_length":326,"response_preview":"<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\"\"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\">\r\n<HTML><HEAD><TITLE>Service Unavailable<\/TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text\/html; charset=us-ascii\"><\/HEAD>\r\n<BODY><h2>Service Unavailable<\/h2>\r\n<hr><p>HTTP Error 503. The service is unavailable.<\/p>\r\n<\/BODY><\/HTML>\r\n","exception":null}
[2026-02-22 18:50:38] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  صادق زاده (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-22 18:50:43] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  صادق زاده (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-22 18:54:27] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  صادق زاده (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-22 19:43:40] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  صادق زاده (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-24 16:43:25] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  خانم عسگری (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-24 22:59:50] [ERROR] Failed to get support logs {"contact_id":"8791","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(884): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-24 22:59:50] [ERROR] Error getting support logs {"contact_id":"8791","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(884): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-25 11:05:40] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای تست تست (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-25 12:30:34] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  شعبانی (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-25 12:50:13] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  شعبانی (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-25 14:40:20] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:40:27] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:41:34] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:41:42] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:44:55] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:45:47] [ERROR] API Error {"action":"get_products","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p.service_lookup_item_id' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":20,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(20): PDO->query()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(21): App\\Repositories\\ProductRepository->all()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1079): App\\Controllers\\ProductController->getList()\n#3 {main}"}}
[2026-02-25 14:55:50] [ERROR] API Error {"action":"save_product","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'بوت کمپ' for key 'products.uniq_product_name'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php","line":101,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/ProductRepository.php(101): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ProductController.php(60): App\\Repositories\\ProductRepository->create()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1095): App\\Controllers\\ProductController->save()\n#3 {main}"}}
[2026-02-25 15:56:14] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای شعبانی شعبانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-25 15:56:18] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای شعبانی شعبانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-25 15:56:42] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای شعبانی شعبانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(361): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(493): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-02-27 21:46:27] [ERROR] Failed to get support logs {"contact_id":"local_699eaf23b95158.14445425","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-02-27 21:46:27] [ERROR] Error getting support logs {"contact_id":"local_699eaf23b95158.14445425","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-14 14:36:22] [ERROR] API Error {"action":"update_lead","exception":{"message":"کد ملی پس از ثبت قابل تغییر نیست.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":997,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-03-15 00:33:03] [ERROR] API Error {"action":"create_lead","exception":{"message":"SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":405,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(405): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(383): App\\Repositories\\PersonRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(402): App\\Services\\LeadService->createLead()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(560): App\\Controllers\\LeadController->create()\n#4 {main}"}}
[2026-03-15 00:34:23] [ERROR] API Error {"action":"create_lead","exception":{"message":"SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":405,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(405): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(383): App\\Repositories\\PersonRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(402): App\\Services\\LeadService->createLead()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(560): App\\Controllers\\LeadController->create()\n#4 {main}"}}
[2026-03-16 00:41:15] [ERROR] Failed to save deal {"deal_id":"","contact_id":"9905","user_id":"dd16f09e-cb31-4354-833b-e16cc1b090d4","exception":{"message":"SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":244,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(244): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(139): App\\Repositories\\DealRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1454): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(682): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-03-16 00:41:23] [ERROR] Failed to save deal {"deal_id":"","contact_id":"9905","user_id":"dd16f09e-cb31-4354-833b-e16cc1b090d4","exception":{"message":"SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":244,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(244): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(139): App\\Repositories\\DealRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1454): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(682): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-03-16 00:41:55] [ERROR] Failed to save deal {"deal_id":"","contact_id":"9905","user_id":"dd16f09e-cb31-4354-833b-e16cc1b090d4","exception":{"message":"SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php","line":244,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/DealRepository.php(244): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/DealService.php(139): App\\Repositories\\DealRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(1454): App\\Services\\DealService->saveDeal()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(682): App\\Controllers\\DealController->save()\n#4 {main}"}}
[2026-03-17 13:02:24] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدید (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-03-17 14:59:52] [ERROR] Failed to get support logs {"contact_id":"local_69b53c491f9508.49754835","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-17 14:59:52] [ERROR] Error getting support logs {"contact_id":"local_69b53c491f9508.49754835","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-17 20:26:38] [ERROR] Failed to get support logs {"contact_id":"20938","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-17 20:26:38] [ERROR] Error getting support logs {"contact_id":"20938","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-29 19:19:55] [ERROR] Failed to get support logs {"contact_id":"local_69b55a52bd5039.96016486","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-03-29 19:19:55] [ERROR] Error getting support logs {"contact_id":"local_69b55a52bd5039.96016486","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(988): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-01 20:00:40] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای احسان فراهانی (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-02 01:27:24] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای احسان فراهانی (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-04 10:14:59] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  9117861146 (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-04 10:50:32] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای احسان فراهانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":767,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(967): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(574): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-04 18:56:02] [ERROR] Failed to get KPI drilldown {"table_id":"performance_cards","metric_key":"sales_total","row":{"date":"","owner_didar_id":"","owner_name":"","product_name":"","failure_reason":"","activity_type":"","stage":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.destination_card_number' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":6483,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(6483): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(3531): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(5120): App\\Repositories\\KpiRepository->getPaymentsByDealIds()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2822): App\\Repositories\\KpiRepository->buildSimpleDealLeadDrilldownByIds()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2609): App\\Repositories\\KpiRepository->getSalesTotalCardDrilldownUiOracle()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2133): App\\Repositories\\KpiRepository->getSalesTotalCardDrilldown()\n#6 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2094): App\\Repositories\\KpiRepository->getPerformanceCardDrilldown()\n#7 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(428): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#8 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(494): App\\Services\\KpiService->getKpiDrilldown()\n#9 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(355): App\\Controllers\\KpiController->getKpiDrilldown()\n#10 {main}"}}
[2026-04-04 18:56:12] [ERROR] Failed to get KPI drilldown {"table_id":"performance_cards","metric_key":"outstanding_amount_sum","row":{"date":"","owner_didar_id":"","owner_name":"","product_name":"","failure_reason":"","activity_type":"","stage":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.destination_card_number' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":6483,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(6483): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(3531): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(5120): App\\Repositories\\KpiRepository->getPaymentsByDealIds()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(5054): App\\Repositories\\KpiRepository->buildSimpleDealLeadDrilldownByIds()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2145): App\\Repositories\\KpiRepository->getFinancialPerformanceCardDrilldownUiOracle()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2094): App\\Repositories\\KpiRepository->getPerformanceCardDrilldown()\n#6 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(428): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#7 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(494): App\\Services\\KpiService->getKpiDrilldown()\n#8 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(355): App\\Controllers\\KpiController->getKpiDrilldown()\n#9 {main}"}}
[2026-04-04 18:56:16] [ERROR] Failed to get KPI drilldown {"table_id":"performance_cards","metric_key":"sales_total","row":{"date":"","owner_didar_id":"","owner_name":"","product_name":"","failure_reason":"","activity_type":"","stage":""},"exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.destination_card_number' in 'field list'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php","line":6483,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(6483): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(3531): App\\Repositories\\KpiRepository->runSelectAll()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(5120): App\\Repositories\\KpiRepository->getPaymentsByDealIds()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2822): App\\Repositories\\KpiRepository->buildSimpleDealLeadDrilldownByIds()\n#4 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2609): App\\Repositories\\KpiRepository->getSalesTotalCardDrilldownUiOracle()\n#5 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2133): App\\Repositories\\KpiRepository->getSalesTotalCardDrilldown()\n#6 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/KpiRepository.php(2094): App\\Repositories\\KpiRepository->getPerformanceCardDrilldown()\n#7 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/KpiService.php(428): App\\Repositories\\KpiRepository->getKpiDrilldown()\n#8 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/KpiController.php(494): App\\Services\\KpiService->getKpiDrilldown()\n#9 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(355): App\\Controllers\\KpiController->getKpiDrilldown()\n#10 {main}"}}
[2026-04-06 12:41:38] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدید (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:37:33] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:37:38] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:37:45] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:37:52] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:37:58] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-06 14:38:10] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای لید جدیدد (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-07 15:33:05] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  باقری (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-08 13:43:08] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای سه کنجی (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-08 17:05:51] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  خادمی (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-08 17:53:45] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای پویا حیدری (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-08 17:55:15] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای پویا حیدری (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-08 18:58:00] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  خادمی (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-09 12:40:13] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  اقای فردوسی (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-11 13:04:33] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:33] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:49] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:49] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:55] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:55] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:55] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:56] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:57] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:57] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:57] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:04:59] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:03] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:03] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:03] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:08] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:10] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-11 13:05:10] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/bootstrap.php(46): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-04-12 17:58:51] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای میلاد حسینی (مسئول: خانم توانا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-13 15:59:02] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  اقای میرزایی (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-13 16:01:50] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  اقای میرزایی (مسئول: خانم شایسته) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(625): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-13 18:35:57] [ERROR] Error updating deal pipeline stage after activity {"deal_id":"local_69dd0641717d7","stage":"پرداخت","exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-04-13 18:35:57] [ERROR] Error saving activity {"data":{"didar_activity_id":"","contact_didar_id":"local_69dd06416e7018.91427898","deal_didar_id":"local_69dd0641717d7","activity_type_id":"790079e8-74ac-4760-9527-097627d3e7ec","activity_type_title":"تماس خروجی","note":"","result_note":"شیشسی","activity_duration":12,"direction":"outgoing","is_done":1,"due_date":"","reminder_enabled":"0","reminder_offset_minutes":1440,"register_date":"2026-04-13 18:35:57","last_sync":"2026-04-13 18:35:57","requested_services":"","financial_level":null,"asset_estimation":null,"income_estimation":null,"failure_reason":"","failure_other_description":"","city":null,"job_title":null,"job_description":null,"acquaintance_duration":null,"extra_info":null},"exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-04-16 13:45:00] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای کامرانی کامرانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-16 13:47:55] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای کامرانی کامرانی (مسئول: خانم شکیبا) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(485): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-18 16:09:51] [ERROR] Failed to get support logs {"contact_id":"1546","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-18 16:09:51] [ERROR] Error getting support logs {"contact_id":"1546","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-18 16:12:45] [ERROR] Failed to get support logs {"contact_id":"14906","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-18 16:12:45] [ERROR] Error getting support logs {"contact_id":"14906","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-21 14:12:19] [ERROR] Error updating deal pipeline stage after activity {"deal_id":"local_694168ad06efe9.71027450","stage":"پرداخت","exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-04-21 14:12:19] [ERROR] Error saving activity {"data":{"didar_activity_id":"","contact_didar_id":"11874","deal_didar_id":"local_694168ad06efe9.71027450","activity_type_id":"2a335dc1-4834-484b-b6dc-9ddd97eef67e","activity_type_title":"تماس ورودی","note":"","result_note":"تسویه کانال هست\/ پشتیبانی ارسال سوال استاد","activity_duration":15,"direction":"incoming","is_done":0,"due_date":"","reminder_enabled":"0","reminder_offset_minutes":1440,"register_date":"2026-04-21 14:12:19","last_sync":"2026-04-21 14:12:19","requested_services":"","financial_level":null,"asset_estimation":null,"income_estimation":null,"failure_reason":"","failure_other_description":"","city":null,"job_title":null,"job_description":null,"acquaintance_duration":null,"extra_info":null},"exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-04-25 23:24:57] [ERROR] Failed to get support logs {"contact_id":"2925","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-25 23:24:57] [ERROR] Error getting support logs {"contact_id":"2925","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-04-26 19:43:22] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-27 11:55:39] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-28 11:51:20] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای  فرزاد شبیهی (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-04-29 14:34:07] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:34:14] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:34:21] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:34:29] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:35:34] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:35:42] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:35:58] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:36:06] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:36:15] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:37:07] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:37:15] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:37:24] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:38:31] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:40:44] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:40:50] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:41:09] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-29 14:49:42] [ERROR] API Error {"action":"save_deal","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20112' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":504,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(504): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(681): App\\Repositories\\PersonRepository->assignCustomerCodeIfMissing()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(744): App\\Controllers\\DealController->save()\n#3 {main}"}}
[2026-04-29 14:49:50] [ERROR] API Error {"action":"save_deal","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20113' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":504,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(504): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(681): App\\Repositories\\PersonRepository->assignCustomerCodeIfMissing()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(744): App\\Controllers\\DealController->save()\n#3 {main}"}}
[2026-04-29 14:50:47] [ERROR] API Error {"action":"save_deal","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20114' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":504,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(504): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(681): App\\Repositories\\PersonRepository->assignCustomerCodeIfMissing()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(744): App\\Controllers\\DealController->save()\n#3 {main}"}}
[2026-04-29 14:50:57] [ERROR] API Error {"action":"save_deal","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20115' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":504,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(504): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/DealController.php(681): App\\Repositories\\PersonRepository->assignCustomerCodeIfMissing()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(744): App\\Controllers\\DealController->save()\n#3 {main}"}}
[2026-04-29 15:52:22] [ERROR] API Error {"action":"update_lead","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20116' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":423,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(423): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(1198): App\\Repositories\\PersonRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#4 {main}"}}
[2026-04-30 11:19:24] [ERROR] API Error {"action":"update_lead","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20119' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":423,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(423): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(1198): App\\Repositories\\PersonRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#4 {main}"}}
[2026-04-30 11:19:49] [ERROR] API Error {"action":"update_lead","exception":{"message":"این کد مشتری قبلاً برای لید دیگری ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":1145,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#2 {main}"}}
[2026-04-30 11:27:57] [ERROR] API Error {"action":"update_lead","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '20121' for key 'persons.uniq_persons_customer_code'","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php","line":423,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/PersonRepository.php(423): PDOStatement->execute()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(1198): App\\Repositories\\PersonRepository->save()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#4 {main}"}}
[2026-05-01 11:47:48] [ERROR] Error updating deal pipeline stage after activity {"deal_id":"local_69f31e89824c87.76788598","stage":"پرداخت","exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-05-01 11:47:48] [ERROR] Error saving activity {"data":{"didar_activity_id":"","contact_didar_id":"21324","deal_didar_id":"local_69f31e89824c87.76788598","activity_type_id":"790079e8-74ac-4760-9527-097627d3e7ec","activity_type_title":"تماس خروجی","note":"","result_note":"واریز شد سی ای پی","activity_duration":5,"direction":"outgoing","is_done":0,"due_date":"","reminder_enabled":"0","reminder_offset_minutes":1440,"register_date":"2026-05-01 11:47:48","last_sync":"2026-05-01 11:47:48","requested_services":"","financial_level":null,"asset_estimation":null,"income_estimation":null,"failure_reason":"","failure_other_description":"","city":null,"job_title":null,"job_description":null,"acquaintance_duration":null,"extra_info":null},"exception":{"message":"برای ثبت معامله موفق، پرداخت کامل ثبت نشده است","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/ActivityService.php","line":662,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/ActivityController.php(108): App\\Services\\ActivityService->saveActivity()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(870): App\\Controllers\\ActivityController->save()\n#2 {main}"}}
[2026-05-02 11:12:39] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای تست تست (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php","line":777,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/LeadService.php(977): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/LeadController.php(487): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(636): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-05-02 13:41:56] [ERROR] Failed to get support logs {"contact_id":"21698","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-05-02 13:41:56] [ERROR] Error getting support logs {"contact_id":"21698","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/cr.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/cr.hanafi.vip\/public\/index.php(1156): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-05-03 10:18:49] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":98,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(98): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(71): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(58): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:28:21] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":105,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(105): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(93): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:28:25] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":105,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(105): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(93): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:28:59] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":105,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(105): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(93): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:31:20] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":105,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(105): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(93): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:43:25] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'kpi_source' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(88): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(81): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:44:01] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'kpi_source' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(88): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(81): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 11:58:59] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":198,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(198): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(99): App\\Repositories\\CommissionRuleRepository->hasColumn()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(88): App\\Repositories\\CommissionRuleRepository->save()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(81): App\\Services\\CommissionService->saveRule()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#5 {main}"}}
[2026-05-03 11:59:16] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":198,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(198): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(99): App\\Repositories\\CommissionRuleRepository->hasColumn()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(88): App\\Repositories\\CommissionRuleRepository->save()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(81): App\\Services\\CommissionService->saveRule()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#5 {main}"}}
[2026-05-03 12:21:34] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"No KPI source column found (expected kpi_source or kpi_key)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":101,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(90): App\\Repositories\\CommissionRuleRepository->save()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#3 {main}"}}
[2026-05-03 12:22:24] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"No KPI source column found (expected kpi_source or kpi_key)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":101,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(90): App\\Repositories\\CommissionRuleRepository->save()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#3 {main}"}}
[2026-05-03 12:29:59] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`commission_rules`, CONSTRAINT `commission_rules_ibfk_1` FOREIGN KEY (`salesperson_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":200,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(200): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(94): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-03 12:31:44] [ERROR] API Error {"action":"store_commission_rule","exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`commission_rules`, CONSTRAINT `commission_rules_ibfk_1` FOREIGN KEY (`salesperson_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":200,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(200): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(94): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(82): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(395): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-04 16:18:47] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"1","valid_from":"1404\/12\/01","valid_to":"1405\/02\/31","target_users":"[1]","requested_services":"[{\"value\":\"هوش خودرو\",\"title\":\"\\n                    هوش خودرو\\n                \",\"service_lookup_item_id\":\"60\",\"product_ids\":\"\"},{\"value\":\"کارشناسی حضوری\",\"title\":\"\\n                    کارشناسی حضوری\\n                \",\"service_lookup_item_id\":\"61\",\"product_ids\":\"\"},{\"value\":\"بودجه بندی\",\"title\":\"\\n                    بودجه بندی\\n                \",\"service_lookup_item_id\":\"72\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی\",\"title\":\"\\n                    کانال VIP با پشتیبانی یکساله\\n                \",\"service_lookup_item_id\":\"62\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان\",\"title\":\"\\n                    کانال VIP بدون پشتیبان یکساله\\n                \",\"service_lookup_item_id\":\"194\",\"product_ids\":\"\"},{\"value\":\"CIP\",\"title\":\"\\n                    CIP 200\\n                \",\"service_lookup_item_id\":\"75\",\"product_ids\":\"\"},{\"value\":\"دستگاه کارشناسی\",\"title\":\"\\n                    دستگاه کارشناسی\\n                \",\"service_lookup_item_id\":\"63\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی\",\"title\":\"\\n                    مدرک کارشناسی امیر کبیر\\n                \",\"service_lookup_item_id\":\"74\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی فنی و حرفه ای\",\"title\":\"\\n                    مدرک کارشناسی فنی و حرفه ای\\n                \",\"service_lookup_item_id\":\"193\",\"product_ids\":\"\"},{\"value\":\"چکاپ کسب و کار\",\"title\":\"\\n                    چکاپ کسب و کار\\n                \",\"service_lookup_item_id\":\"66\",\"product_ids\":\"\"},{\"value\":\"شتاب کسب و کار\",\"title\":\"\\n                    شتاب کسب و کار\\n                \",\"service_lookup_item_id\":\"67\",\"product_ids\":\"\"},{\"value\":\"مربی شخصی\",\"title\":\"\\n                    مربی شخصی\\n                \",\"service_lookup_item_id\":\"68\",\"product_ids\":\"\"},{\"value\":\"مشاوره\",\"title\":\"\\n                    مشاوره ساعتی\\n                \",\"service_lookup_item_id\":\"64\",\"product_ids\":\"\"},{\"value\":\"مشاور کسب و کار\",\"title\":\"\\n                    مشاور کسب و کار\\n                \",\"service_lookup_item_id\":\"65\",\"product_ids\":\"\"},{\"value\":\"کارشناسی شخصی ملک\",\"title\":\"\\n                    کارشناسی شخصی ملک\\n                \",\"service_lookup_item_id\":\"70\",\"product_ids\":\"\"},{\"value\":\"آموزش دیتیلینگ\",\"title\":\"\\n                    آموزش دیتیلینگ\\n                \",\"service_lookup_item_id\":\"69\",\"product_ids\":\"\"},{\"value\":\"کارشناسی برتر\",\"title\":\"\\n                    کارشناسی برتر\\n                \",\"service_lookup_item_id\":\"73\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی شش ماهه\",\"title\":\"\\n                    کانال VIP با پشتیبانی شش ماهه\\n                \",\"service_lookup_item_id\":\"199\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان شش ماهه\",\"title\":\"\\n                    کانال VIP بدون پشتیبان  شش ماهه\\n                \",\"service_lookup_item_id\":\"200\",\"product_ids\":\"\"},{\"value\":\"دیوار خودرو\",\"title\":\"\\n                    دیوار خودرو\\n                \",\"service_lookup_item_id\":\"201\",\"product_ids\":\"\"},{\"value\":\"CIP 300\",\"title\":\"\\n                    CIP 300\\n                \",\"service_lookup_item_id\":\"202\",\"product_ids\":\"\"}]","base_amount":"0","reward_percentage":"2","status":"active","tiers":"[{\"min_amount\":\"0\",\"max_amount\":\"200000000\",\"commission_percent\":\"2\"},{\"min_amount\":\"200000001\",\"max_amount\":\"\",\"commission_percent\":\"3\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'deposit_date' in where clause is ambiguous","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":1333,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(1333): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(69): App\\Services\\CommissionService->rebuildDealCommissionsForRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(394): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-04 16:36:10] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"20","valid_from":"1404\/12\/01","valid_to":"1405\/02\/28","target_users":"[20]","requested_services":"[{\"value\":\"هوش خودرو\",\"title\":\"\\n                    هوش خودرو\\n                \",\"service_lookup_item_id\":\"60\",\"product_ids\":\"\"},{\"value\":\"کارشناسی حضوری\",\"title\":\"\\n                    کارشناسی حضوری\\n                \",\"service_lookup_item_id\":\"61\",\"product_ids\":\"\"},{\"value\":\"بودجه بندی\",\"title\":\"\\n                    بودجه بندی\\n                \",\"service_lookup_item_id\":\"72\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی\",\"title\":\"\\n                    کانال VIP با پشتیبانی یکساله\\n                \",\"service_lookup_item_id\":\"62\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان\",\"title\":\"\\n                    کانال VIP بدون پشتیبان یکساله\\n                \",\"service_lookup_item_id\":\"194\",\"product_ids\":\"\"},{\"value\":\"CIP\",\"title\":\"\\n                    CIP 200\\n                \",\"service_lookup_item_id\":\"75\",\"product_ids\":\"\"},{\"value\":\"دستگاه کارشناسی\",\"title\":\"\\n                    دستگاه کارشناسی\\n                \",\"service_lookup_item_id\":\"63\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی\",\"title\":\"\\n                    مدرک کارشناسی امیر کبیر\\n                \",\"service_lookup_item_id\":\"74\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی فنی و حرفه ای\",\"title\":\"\\n                    مدرک کارشناسی فنی و حرفه ای\\n                \",\"service_lookup_item_id\":\"193\",\"product_ids\":\"\"},{\"value\":\"چکاپ کسب و کار\",\"title\":\"\\n                    چکاپ کسب و کار\\n                \",\"service_lookup_item_id\":\"66\",\"product_ids\":\"\"},{\"value\":\"شتاب کسب و کار\",\"title\":\"\\n                    شتاب کسب و کار\\n                \",\"service_lookup_item_id\":\"67\",\"product_ids\":\"\"},{\"value\":\"مربی شخصی\",\"title\":\"\\n                    مربی شخصی\\n                \",\"service_lookup_item_id\":\"68\",\"product_ids\":\"\"},{\"value\":\"مشاوره\",\"title\":\"\\n                    مشاوره ساعتی\\n                \",\"service_lookup_item_id\":\"64\",\"product_ids\":\"\"},{\"value\":\"مشاور کسب و کار\",\"title\":\"\\n                    مشاور کسب و کار\\n                \",\"service_lookup_item_id\":\"65\",\"product_ids\":\"\"},{\"value\":\"کارشناسی شخصی ملک\",\"title\":\"\\n                    کارشناسی شخصی ملک\\n                \",\"service_lookup_item_id\":\"70\",\"product_ids\":\"\"},{\"value\":\"آموزش دیتیلینگ\",\"title\":\"\\n                    آموزش دیتیلینگ\\n                \",\"service_lookup_item_id\":\"69\",\"product_ids\":\"\"},{\"value\":\"کارشناسی برتر\",\"title\":\"\\n                    کارشناسی برتر\\n                \",\"service_lookup_item_id\":\"73\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی شش ماهه\",\"title\":\"\\n                    کانال VIP با پشتیبانی شش ماهه\\n                \",\"service_lookup_item_id\":\"199\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان شش ماهه\",\"title\":\"\\n                    کانال VIP بدون پشتیبان  شش ماهه\\n                \",\"service_lookup_item_id\":\"200\",\"product_ids\":\"\"},{\"value\":\"دیوار خودرو\",\"title\":\"\\n                    دیوار خودرو\\n                \",\"service_lookup_item_id\":\"201\",\"product_ids\":\"\"},{\"value\":\"CIP 300\",\"title\":\"\\n                    CIP 300\\n                \",\"service_lookup_item_id\":\"202\",\"product_ids\":\"\"}]","base_amount":"0","reward_percentage":"0.9996","status":"active","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"10000000\",\"commission_percent\":\"0.9996\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'deposit_date' in where clause is ambiguous","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":1333,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(1333): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(69): App\\Services\\CommissionService->rebuildDealCommissionsForRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(394): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-04 16:37:02] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"20","valid_from":"1404\/12\/01","valid_to":"1405\/02\/28","target_users":"[20]","requested_services":"[{\"value\":\"هوش خودرو\",\"title\":\"\\n                    هوش خودرو\\n                \",\"service_lookup_item_id\":\"60\",\"product_ids\":\"\"},{\"value\":\"کارشناسی حضوری\",\"title\":\"\\n                    کارشناسی حضوری\\n                \",\"service_lookup_item_id\":\"61\",\"product_ids\":\"\"},{\"value\":\"بودجه بندی\",\"title\":\"\\n                    بودجه بندی\\n                \",\"service_lookup_item_id\":\"72\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی\",\"title\":\"\\n                    کانال VIP با پشتیبانی یکساله\\n                \",\"service_lookup_item_id\":\"62\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان\",\"title\":\"\\n                    کانال VIP بدون پشتیبان یکساله\\n                \",\"service_lookup_item_id\":\"194\",\"product_ids\":\"\"},{\"value\":\"CIP\",\"title\":\"\\n                    CIP 200\\n                \",\"service_lookup_item_id\":\"75\",\"product_ids\":\"\"},{\"value\":\"دستگاه کارشناسی\",\"title\":\"\\n                    دستگاه کارشناسی\\n                \",\"service_lookup_item_id\":\"63\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی\",\"title\":\"\\n                    مدرک کارشناسی امیر کبیر\\n                \",\"service_lookup_item_id\":\"74\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی فنی و حرفه ای\",\"title\":\"\\n                    مدرک کارشناسی فنی و حرفه ای\\n                \",\"service_lookup_item_id\":\"193\",\"product_ids\":\"\"},{\"value\":\"چکاپ کسب و کار\",\"title\":\"\\n                    چکاپ کسب و کار\\n                \",\"service_lookup_item_id\":\"66\",\"product_ids\":\"\"},{\"value\":\"شتاب کسب و کار\",\"title\":\"\\n                    شتاب کسب و کار\\n                \",\"service_lookup_item_id\":\"67\",\"product_ids\":\"\"},{\"value\":\"مربی شخصی\",\"title\":\"\\n                    مربی شخصی\\n                \",\"service_lookup_item_id\":\"68\",\"product_ids\":\"\"},{\"value\":\"مشاوره\",\"title\":\"\\n                    مشاوره ساعتی\\n                \",\"service_lookup_item_id\":\"64\",\"product_ids\":\"\"},{\"value\":\"مشاور کسب و کار\",\"title\":\"\\n                    مشاور کسب و کار\\n                \",\"service_lookup_item_id\":\"65\",\"product_ids\":\"\"},{\"value\":\"کارشناسی شخصی ملک\",\"title\":\"\\n                    کارشناسی شخصی ملک\\n                \",\"service_lookup_item_id\":\"70\",\"product_ids\":\"\"},{\"value\":\"آموزش دیتیلینگ\",\"title\":\"\\n                    آموزش دیتیلینگ\\n                \",\"service_lookup_item_id\":\"69\",\"product_ids\":\"\"},{\"value\":\"کارشناسی برتر\",\"title\":\"\\n                    کارشناسی برتر\\n                \",\"service_lookup_item_id\":\"73\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی شش ماهه\",\"title\":\"\\n                    کانال VIP با پشتیبانی شش ماهه\\n                \",\"service_lookup_item_id\":\"199\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان شش ماهه\",\"title\":\"\\n                    کانال VIP بدون پشتیبان  شش ماهه\\n                \",\"service_lookup_item_id\":\"200\",\"product_ids\":\"\"},{\"value\":\"دیوار خودرو\",\"title\":\"\\n                    دیوار خودرو\\n                \",\"service_lookup_item_id\":\"201\",\"product_ids\":\"\"},{\"value\":\"CIP 300\",\"title\":\"\\n                    CIP 300\\n                \",\"service_lookup_item_id\":\"202\",\"product_ids\":\"\"}]","base_amount":"10000000","reward_percentage":"1","status":"active","tiers":"[]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'deposit_date' in where clause is ambiguous","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":1333,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(1333): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(69): App\\Services\\CommissionService->rebuildDealCommissionsForRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(394): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-04 16:43:45] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"1","valid_from":"1404\/12\/01","valid_to":"1405\/02\/31","target_users":"[1]","requested_services":"[{\"value\":\"هوش خودرو\",\"title\":\"\\n                    هوش خودرو\\n                \",\"service_lookup_item_id\":\"60\",\"product_ids\":\"\"},{\"value\":\"کارشناسی حضوری\",\"title\":\"\\n                    کارشناسی حضوری\\n                \",\"service_lookup_item_id\":\"61\",\"product_ids\":\"\"},{\"value\":\"بودجه بندی\",\"title\":\"\\n                    بودجه بندی\\n                \",\"service_lookup_item_id\":\"72\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی\",\"title\":\"\\n                    کانال VIP با پشتیبانی یکساله\\n                \",\"service_lookup_item_id\":\"62\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان\",\"title\":\"\\n                    کانال VIP بدون پشتیبان یکساله\\n                \",\"service_lookup_item_id\":\"194\",\"product_ids\":\"\"},{\"value\":\"CIP\",\"title\":\"\\n                    CIP 200\\n                \",\"service_lookup_item_id\":\"75\",\"product_ids\":\"\"},{\"value\":\"دستگاه کارشناسی\",\"title\":\"\\n                    دستگاه کارشناسی\\n                \",\"service_lookup_item_id\":\"63\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی\",\"title\":\"\\n                    مدرک کارشناسی امیر کبیر\\n                \",\"service_lookup_item_id\":\"74\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی فنی و حرفه ای\",\"title\":\"\\n                    مدرک کارشناسی فنی و حرفه ای\\n                \",\"service_lookup_item_id\":\"193\",\"product_ids\":\"\"},{\"value\":\"چکاپ کسب و کار\",\"title\":\"\\n                    چکاپ کسب و کار\\n                \",\"service_lookup_item_id\":\"66\",\"product_ids\":\"\"},{\"value\":\"شتاب کسب و کار\",\"title\":\"\\n                    شتاب کسب و کار\\n                \",\"service_lookup_item_id\":\"67\",\"product_ids\":\"\"},{\"value\":\"مربی شخصی\",\"title\":\"\\n                    مربی شخصی\\n                \",\"service_lookup_item_id\":\"68\",\"product_ids\":\"\"},{\"value\":\"مشاوره\",\"title\":\"\\n                    مشاوره ساعتی\\n                \",\"service_lookup_item_id\":\"64\",\"product_ids\":\"\"},{\"value\":\"مشاور کسب و کار\",\"title\":\"\\n                    مشاور کسب و کار\\n                \",\"service_lookup_item_id\":\"65\",\"product_ids\":\"\"},{\"value\":\"کارشناسی شخصی ملک\",\"title\":\"\\n                    کارشناسی شخصی ملک\\n                \",\"service_lookup_item_id\":\"70\",\"product_ids\":\"\"},{\"value\":\"آموزش دیتیلینگ\",\"title\":\"\\n                    آموزش دیتیلینگ\\n                \",\"service_lookup_item_id\":\"69\",\"product_ids\":\"\"},{\"value\":\"کارشناسی برتر\",\"title\":\"\\n                    کارشناسی برتر\\n                \",\"service_lookup_item_id\":\"73\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی شش ماهه\",\"title\":\"\\n                    کانال VIP با پشتیبانی شش ماهه\\n                \",\"service_lookup_item_id\":\"199\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان شش ماهه\",\"title\":\"\\n                    کانال VIP بدون پشتیبان  شش ماهه\\n                \",\"service_lookup_item_id\":\"200\",\"product_ids\":\"\"},{\"value\":\"دیوار خودرو\",\"title\":\"\\n                    دیوار خودرو\\n                \",\"service_lookup_item_id\":\"201\",\"product_ids\":\"\"},{\"value\":\"CIP 300\",\"title\":\"\\n                    CIP 300\\n                \",\"service_lookup_item_id\":\"202\",\"product_ids\":\"\"}]","base_amount":"0","reward_percentage":"2","status":"active","tiers":"[{\"min_amount\":\"0\",\"max_amount\":\"50000000\",\"commission_percent\":\"2\"},{\"min_amount\":\"50000001\",\"max_amount\":\"200000000\",\"commission_percent\":\"3\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'deposit_date' in where clause is ambiguous","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":1333,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(1333): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(69): App\\Services\\CommissionService->rebuildDealCommissionsForRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(394): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-04 16:49:16] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"1","valid_from":"1404\/10\/01","valid_to":"1405\/02\/28","target_users":"[1]","requested_services":"[{\"value\":\"هوش خودرو\",\"title\":\"\\n                    هوش خودرو\\n                \",\"service_lookup_item_id\":\"60\",\"product_ids\":\"\"},{\"value\":\"کارشناسی حضوری\",\"title\":\"\\n                    کارشناسی حضوری\\n                \",\"service_lookup_item_id\":\"61\",\"product_ids\":\"\"},{\"value\":\"بودجه بندی\",\"title\":\"\\n                    بودجه بندی\\n                \",\"service_lookup_item_id\":\"72\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی\",\"title\":\"\\n                    کانال VIP با پشتیبانی یکساله\\n                \",\"service_lookup_item_id\":\"62\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان\",\"title\":\"\\n                    کانال VIP بدون پشتیبان یکساله\\n                \",\"service_lookup_item_id\":\"194\",\"product_ids\":\"\"},{\"value\":\"CIP\",\"title\":\"\\n                    CIP 200\\n                \",\"service_lookup_item_id\":\"75\",\"product_ids\":\"\"},{\"value\":\"دستگاه کارشناسی\",\"title\":\"\\n                    دستگاه کارشناسی\\n                \",\"service_lookup_item_id\":\"63\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی\",\"title\":\"\\n                    مدرک کارشناسی امیر کبیر\\n                \",\"service_lookup_item_id\":\"74\",\"product_ids\":\"\"},{\"value\":\"مدرک کارشناسی فنی و حرفه ای\",\"title\":\"\\n                    مدرک کارشناسی فنی و حرفه ای\\n                \",\"service_lookup_item_id\":\"193\",\"product_ids\":\"\"},{\"value\":\"چکاپ کسب و کار\",\"title\":\"\\n                    چکاپ کسب و کار\\n                \",\"service_lookup_item_id\":\"66\",\"product_ids\":\"\"},{\"value\":\"شتاب کسب و کار\",\"title\":\"\\n                    شتاب کسب و کار\\n                \",\"service_lookup_item_id\":\"67\",\"product_ids\":\"\"},{\"value\":\"مربی شخصی\",\"title\":\"\\n                    مربی شخصی\\n                \",\"service_lookup_item_id\":\"68\",\"product_ids\":\"\"},{\"value\":\"مشاوره\",\"title\":\"\\n                    مشاوره ساعتی\\n                \",\"service_lookup_item_id\":\"64\",\"product_ids\":\"\"},{\"value\":\"مشاور کسب و کار\",\"title\":\"\\n                    مشاور کسب و کار\\n                \",\"service_lookup_item_id\":\"65\",\"product_ids\":\"\"},{\"value\":\"کارشناسی شخصی ملک\",\"title\":\"\\n                    کارشناسی شخصی ملک\\n                \",\"service_lookup_item_id\":\"70\",\"product_ids\":\"\"},{\"value\":\"آموزش دیتیلینگ\",\"title\":\"\\n                    آموزش دیتیلینگ\\n                \",\"service_lookup_item_id\":\"69\",\"product_ids\":\"\"},{\"value\":\"کارشناسی برتر\",\"title\":\"\\n                    کارشناسی برتر\\n                \",\"service_lookup_item_id\":\"73\",\"product_ids\":\"\"},{\"value\":\"کانال VIP با پشتیبانی شش ماهه\",\"title\":\"\\n                    کانال VIP با پشتیبانی شش ماهه\\n                \",\"service_lookup_item_id\":\"199\",\"product_ids\":\"\"},{\"value\":\"کانال VIP بدون پشتیبان شش ماهه\",\"title\":\"\\n                    کانال VIP بدون پشتیبان  شش ماهه\\n                \",\"service_lookup_item_id\":\"200\",\"product_ids\":\"\"},{\"value\":\"دیوار خودرو\",\"title\":\"\\n                    دیوار خودرو\\n                \",\"service_lookup_item_id\":\"201\",\"product_ids\":\"\"},{\"value\":\"CIP 300\",\"title\":\"\\n                    CIP 300\\n                \",\"service_lookup_item_id\":\"202\",\"product_ids\":\"\"}]","base_amount":"0","reward_percentage":"2","status":"active","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"200000000\",\"commission_percent\":\"2\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'deposit_date' in where clause is ambiguous","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":1333,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(1333): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(69): App\\Services\\CommissionService->rebuildDealCommissionsForRule()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(394): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:21:56] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"1","tiers":"[{\"min_amount\":\"10000000\",\"max_amount\":\"20000000\",\"commission_percent\":\"1\"},{\"min_amount\":\"20000001\",\"max_amount\":\"50000000\",\"commission_percent\":\"2\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:22:01] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"1","tiers":"[{\"min_amount\":\"10000000\",\"max_amount\":\"20000000\",\"commission_percent\":\"1\"},{\"min_amount\":\"20000001\",\"max_amount\":\"50000000\",\"commission_percent\":\"2\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:23:06] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"10","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"100000000000\",\"commission_percent\":\"10\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:23:10] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"10","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"100000000000\",\"commission_percent\":\"10\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:23:21] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"10","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"100000000000\",\"commission_percent\":\"10\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:24:01] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"10","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"1000000000\",\"commission_percent\":\"10\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:24:07] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"TIERED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"0","reward_percentage":"10","tiers":"[{\"min_amount\":\"1\",\"max_amount\":\"1000000000\",\"commission_percent\":\"10\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:24:39] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"10000000000","reward_percentage":"2.5","tiers":"[]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:24:44] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"10000000000","reward_percentage":"2.5","tiers":"[]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-05 11:24:52] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[]","base_amount":"10000000000","reward_percentage":"2.5","tiers":"[]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'valid_from' cannot be null","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php","line":113,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionRuleRepository.php(113): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(66): App\\Repositories\\CommissionRuleRepository->save()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(101): App\\Services\\CommissionService->saveRule()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#4 {main}"}}
[2026-05-06 18:42:09] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[\"75\"]","base_amount":"0","reward_percentage":"2.5","tiers":"[]","fixed_product_rates":"[{\"product_id\":75,\"service_title\":\"CIP 200\",\"rate_percent\":\"2.5\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`assignment_products`, CONSTRAINT `assignment_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":675,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(675): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(653): App\\Services\\CommissionService->syncAssignmentProducts()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(103): App\\Services\\CommissionService->syncRuleAssignments()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(121): App\\Services\\CommissionService->saveRule()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#5 {main}"}}
[2026-05-06 18:42:14] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[\"75\"]","base_amount":"0","reward_percentage":"2.5","tiers":"[]","fixed_product_rates":"[{\"product_id\":75,\"service_title\":\"CIP 200\",\"rate_percent\":\"2.5\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`assignment_products`, CONSTRAINT `assignment_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":675,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(675): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(653): App\\Services\\CommissionService->syncAssignmentProducts()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(103): App\\Services\\CommissionService->syncRuleAssignments()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(121): App\\Services\\CommissionService->saveRule()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#5 {main}"}}
[2026-05-06 18:42:32] [ERROR] STORE_COMMISSION_RULE_PDO {"post":{"id":"","rule_type":"FIXED_RULE","salesperson_user_id":"","target_users":"[]","requested_services":"[\"75\"]","base_amount":"0","reward_percentage":"2.5","tiers":"[]","fixed_product_rates":"[{\"product_id\":75,\"service_title\":\"CIP 200\",\"rate_percent\":\"2.5\"}]"},"exception":{"message":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`hanafiv1_cr`.`assignment_products`, CONSTRAINT `assignment_products_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":675,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(675): PDOStatement->execute()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(653): App\\Services\\CommissionService->syncAssignmentProducts()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(103): App\\Services\\CommissionService->syncRuleAssignments()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/CommissionController.php(121): App\\Services\\CommissionService->saveRule()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(380): App\\Controllers\\CommissionController->storeRule()\n#5 {main}"}}
[2026-05-25 12:41:35] [ERROR] API Error {"action":"get_lookups","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'i.is_visible' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/LookupRepository.php","line":80,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/LookupRepository.php(80): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/LookupController.php(37): App\\Repositories\\LookupRepository->getAllLookups()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(312): App\\Controllers\\LookupController->getLookups()\n#3 {main}"}}
[2026-05-25 12:41:47] [ERROR] API Error {"action":"get_lookup_items","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'i.is_visible' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/LookupRepository.php","line":59,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/LookupRepository.php(59): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/LookupRepository.php(43): App\\Repositories\\LookupRepository->getItemsByGroupId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/LookupController.php(56): App\\Repositories\\LookupRepository->getItemsByGroupCode()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(328): App\\Controllers\\LookupController->getItems()\n#4 {main}"}}
[2026-05-28 14:00:17] [ERROR] API Error {"action":"operation_manager_preview","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php","line":29,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php(29): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(27): App\\Services\\OperationManagerService->preview()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->preview()\n#3 {main}"}}
[2026-05-28 14:00:17] [ERROR] API Error {"action":"operation_rules_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_rules' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php","line":28,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php(28): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(42): App\\Repositories\\OperationRuleRepository->listRules()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRules()\n#3 {main}"}}
[2026-05-28 14:00:17] [ERROR] API Error {"action":"crm_lead_pool_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":31,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(31): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(113): App\\Repositories\\OperationRepository->listLeadPools()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listPools()\n#3 {main}"}}
[2026-05-28 14:00:17] [ERROR] API Error {"action":"operation_runs_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_runs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":87,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(87): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(99): App\\Repositories\\OperationRepository->listRuns()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRuns()\n#3 {main}"}}
[2026-05-28 14:14:24] [ERROR] API Error {"action":"operation_manager_preview","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php","line":29,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php(29): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(27): App\\Services\\OperationManagerService->preview()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->preview()\n#3 {main}"}}
[2026-05-28 14:14:24] [ERROR] API Error {"action":"operation_rules_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_rules' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php","line":28,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php(28): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(42): App\\Repositories\\OperationRuleRepository->listRules()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRules()\n#3 {main}"}}
[2026-05-28 14:14:24] [ERROR] API Error {"action":"operation_runs_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_runs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":87,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(87): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(99): App\\Repositories\\OperationRepository->listRuns()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRuns()\n#3 {main}"}}
[2026-05-28 14:14:24] [ERROR] API Error {"action":"crm_lead_pool_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":31,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(31): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(113): App\\Repositories\\OperationRepository->listLeadPools()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listPools()\n#3 {main}"}}
[2026-05-28 14:14:27] [ERROR] API Error {"action":"operation_manager_preview","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php","line":29,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php(29): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(27): App\\Services\\OperationManagerService->preview()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->preview()\n#3 {main}"}}
[2026-05-28 14:14:27] [ERROR] API Error {"action":"operation_rules_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_rules' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php","line":28,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php(28): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(42): App\\Repositories\\OperationRuleRepository->listRules()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRules()\n#3 {main}"}}
[2026-05-28 14:14:27] [ERROR] API Error {"action":"crm_lead_pool_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":31,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(31): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(113): App\\Repositories\\OperationRepository->listLeadPools()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listPools()\n#3 {main}"}}
[2026-05-28 14:14:27] [ERROR] API Error {"action":"operation_runs_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_runs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":87,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(87): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(99): App\\Repositories\\OperationRepository->listRuns()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRuns()\n#3 {main}"}}
[2026-05-28 14:14:36] [ERROR] API Error {"action":"operation_rules_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_rules' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php","line":28,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php(28): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(42): App\\Repositories\\OperationRuleRepository->listRules()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRules()\n#3 {main}"}}
[2026-05-28 14:14:36] [ERROR] API Error {"action":"operation_manager_preview","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php","line":29,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php(29): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(27): App\\Services\\OperationManagerService->preview()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->preview()\n#3 {main}"}}
[2026-05-28 14:14:36] [ERROR] API Error {"action":"crm_lead_pool_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":31,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(31): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(113): App\\Repositories\\OperationRepository->listLeadPools()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listPools()\n#3 {main}"}}
[2026-05-28 14:14:36] [ERROR] API Error {"action":"operation_runs_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_runs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":87,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(87): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(99): App\\Repositories\\OperationRepository->listRuns()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRuns()\n#3 {main}"}}
[2026-05-28 17:06:03] [ERROR] API Error {"action":"operation_manager_preview","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php","line":29,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/OperationManagerService.php(29): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(27): App\\Services\\OperationManagerService->preview()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->preview()\n#3 {main}"}}
[2026-05-28 17:06:03] [ERROR] API Error {"action":"operation_rules_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_rules' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php","line":28,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRuleRepository.php(28): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(42): App\\Repositories\\OperationRuleRepository->listRules()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRules()\n#3 {main}"}}
[2026-05-28 17:06:03] [ERROR] API Error {"action":"crm_lead_pool_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.lead_pools' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":31,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(31): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(113): App\\Repositories\\OperationRepository->listLeadPools()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listPools()\n#3 {main}"}}
[2026-05-28 17:06:03] [ERROR] API Error {"action":"operation_runs_list","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_cr.operation_runs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php","line":87,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/OperationRepository.php(87): PDO->query()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/OperationManagerController.php(99): App\\Repositories\\OperationRepository->listRuns()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(346): App\\Controllers\\OperationManagerController->listRuns()\n#3 {main}"}}
[2026-05-30 14:48:52] [ERROR] Failed to get support logs {"contact_id":"local_a7e1a2d823d093fd","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1351): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-05-30 14:48:52] [ERROR] Error getting support logs {"contact_id":"local_a7e1a2d823d093fd","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1351): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-05-31 17:17:49] [ERROR] API Error {"action":"sync","exception":{"message":"خطا در دریافت کاربران: Didar API is disabled","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SyncService.php","line":60,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SyncController.php(30): App\\Services\\SyncService->syncUsers()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1190): App\\Controllers\\SyncController->sync()\n#2 {main}"}}
[2026-06-01 15:23:48] [ERROR] Failed to get support logs {"contact_id":"local_6a1d60f983aa43.25869689","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-01 15:23:48] [ERROR] Error getting support logs {"contact_id":"local_6a1d60f983aa43.25869689","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-01 15:24:25] [ERROR] Failed to get support logs {"contact_id":"local_6a1a9317956835.07834862","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-01 15:24:25] [ERROR] Error getting support logs {"contact_id":"local_6a1a9317956835.07834862","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-01 15:26:34] [ERROR] Failed to get support logs {"contact_id":"local_6a1863f4df2be4.45818658","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-01 15:26:34] [ERROR] Error getting support logs {"contact_id":"local_6a1863f4df2be4.45818658","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1388): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-02 21:13:25] [ERROR] API Error {"action":"update_lead","exception":{"message":"این شماره قبلاً برای تست تست (مسئول: لید استخر) ثبت شده است.","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/LeadService.php","line":810,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/LeadService.php(1010): App\\Services\\LeadService->checkForDuplicates()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/LeadController.php(477): App\\Services\\LeadService->updateLead()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(871): App\\Controllers\\LeadController->update()\n#3 {main}"}}
[2026-06-03 11:04:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:04:27] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:04:50] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:04:50] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:05:45] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:05:45] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:05:45] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:05:56] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:05:56] [ERROR] Database connection failed {"exception":{"message":"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '\/var\/lib\/mysql\/mysql.sock' (2)","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php","line":30,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(30): PDO->__construct()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Database\/Connection.php(51): App\\Database\\Connection->__construct()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/bootstrap.php(52): App\\Database\\Connection::getInstance()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(27): require('\/home\/hanafiv1\/...')\n#4 {main}"}}
[2026-06-03 11:42:41] [ERROR] Failed to get support logs {"contact_id":"local_6a1f15f6e4d849.95369049","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1559): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-03 11:42:41] [ERROR] Error getting support logs {"contact_id":"local_6a1f15f6e4d849.95369049","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1559): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-08 12:22:25] [ERROR] Failed to get support logs {"contact_id":"20115","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1598): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-08 12:22:25] [ERROR] Error getting support logs {"contact_id":"20115","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1598): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-08 12:22:29] [ERROR] Failed to get support logs {"contact_id":"20115","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1598): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-08 12:22:29] [ERROR] Error getting support logs {"contact_id":"20115","exception":{"message":"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hanafiv1_crm.crm_support_logs' doesn't exist","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php","line":103,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/SupportRepository.php(103): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SupportService.php(153): App\\Repositories\\SupportRepository->getByContactId()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SupportController.php(152): App\\Services\\SupportService->getByContactId()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1598): App\\Controllers\\SupportController->getByContactId()\n#4 {main}"}}
[2026-06-18 13:11:35] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-18 13:20:23] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-18 13:30:42] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-18 14:22:00] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-19 21:33:40] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-19 21:33:56] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-19 21:34:06] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-19 21:34:14] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-19 21:34:25] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-20 11:12:31] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-20 11:13:36] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-20 11:13:45] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-20 14:15:09] [ERROR] API Error {"action":"get_commission_payout_queue","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php","line":330,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/CommissionPayoutCycleRepository.php(330): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(500): App\\Repositories\\CommissionPayoutCycleRepository->getCycleLines()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(131): App\\Services\\PayrollIntegrationService->formatCycleLines()\n#3 [internal function]: App\\Services\\PayrollIntegrationService->App\\Services\\{closure}()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(129): array_map()\n#5 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/PayrollIntegrationService.php(124): App\\Services\\PayrollIntegrationService->normalizeQueueCycles()\n#6 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/PayrollController.php(50): App\\Services\\PayrollIntegrationService->getManagerQueueAdvanced()\n#7 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1058): App\\Controllers\\PayrollController->getPayoutQueue()\n#8 {main}"}}
[2026-06-20 14:15:10] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(485): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 11:13:41] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 11:14:06] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 11:53:55] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 11:54:16] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 12:30:45] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 12:34:47] [ERROR] API Error {"action":"sync","exception":{"message":"خطا در دریافت کاربران: Didar API is disabled","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/SyncService.php","line":60,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/SyncController.php(30): App\\Services\\SyncService->syncUsers()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(1889): App\\Controllers\\SyncController->sync()\n#2 {main}"}}
[2026-06-21 12:35:01] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 12:44:05] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(492): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-21 13:31:35] [ERROR] API Error {"action":"get_commission_kpis","exception":{"message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cra.source_type' in 'field list'","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php","line":2347,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(2347): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/CommissionService.php(4216): App\\Services\\CommissionService->getLedgerCommissionRows()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/KpiController.php(453): App\\Services\\CommissionService->calculateRepCommissionKpis()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(977): App\\Controllers\\KpiController->getCommissionKpis()\n#4 {main}"}}
[2026-06-22 14:26:49] [ERROR] Failed to finish AI request audit row {"id":8,"exception":{"message":"SQLSTATE[HY000]: General error: 4031 The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php","line":48,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php(48): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/AiRecommendationService.php(95): App\\Repositories\\AiRepository->finishRequest()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(125): App\\Services\\AiRecommendationService->run()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(37): App\\Controllers\\AiController->runContextFeature()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(914): App\\Controllers\\AiController->chat()\n#5 {main}"}}
[2026-06-22 14:26:49] [ERROR] Failed to finish AI request audit row {"id":8,"exception":{"message":"SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php","line":48,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php(48): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/AiRecommendationService.php(104): App\\Repositories\\AiRepository->finishRequest()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(125): App\\Services\\AiRecommendationService->run()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(37): App\\Controllers\\AiController->runContextFeature()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(914): App\\Controllers\\AiController->chat()\n#5 {main}"}}
[2026-06-22 14:53:04] [ERROR] Failed to finish AI request audit row {"id":9,"exception":{"message":"SQLSTATE[HY000]: General error: 4031 The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php","line":48,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php(48): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/AiRecommendationService.php(95): App\\Repositories\\AiRepository->finishRequest()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(125): App\\Services\\AiRecommendationService->run()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(37): App\\Controllers\\AiController->runContextFeature()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(914): App\\Controllers\\AiController->chat()\n#5 {main}"}}
[2026-06-22 14:53:04] [ERROR] Failed to finish AI request audit row {"id":9,"exception":{"message":"SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query","file":"\/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php","line":48,"trace":"#0 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Repositories\/AiRepository.php(48): PDO->prepare()\n#1 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Services\/AiRecommendationService.php(104): App\\Repositories\\AiRepository->finishRequest()\n#2 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(125): App\\Services\\AiRecommendationService->run()\n#3 \/home\/hanafiv1\/crm.hanafi.vip\/app\/Controllers\/AiController.php(37): App\\Controllers\\AiController->runContextFeature()\n#4 \/home\/hanafiv1\/crm.hanafi.vip\/public\/index.php(914): App\\Controllers\\AiController->chat()\n#5 {main}"}}
