{"ts":"2026-05-20 08:08:54","type":"PDOException","message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","code":"HY000","file":"/var/www/html/api/core/BaseRepository.php","line":105,"context":{"method":"App\\Api\\Repositories\\BaseRepository::query","table":"notification","sql":"\n SELECT n.*\n FROM notification n\n LEFT JOIN notification_target t\n ON t.id_notification = n.id\n LEFT JOIN notification_read_log r\n ON r.id_notification = n.id AND r.id_shop = :id_shop\n WHERE n.status IN ('published')\n AND (n.visible_from IS NULL OR n.visible_from <= NOW())\n AND (n.visible_to IS NULL OR n.visible_to >= NOW())\n AND (\n n.is_global = 1\n OR t.id_shop = :id_shop\n )\n AND (\n (n.type = 'once' AND r.id_notification IS NULL)\n OR (n.type = 'daily' AND (r.last_seen_date IS NULL OR r.last_seen_date < CURDATE()))\n OR (n.type = 'weekly'\n AND n.day_of_week = ((DAYOFWEEK(NOW()) + 5) % 7) + 1\n AND (r.last_seen_date IS NULL OR YEARWEEK(r.last_seen_date) < YEARWEEK(NOW()))\n )\n OR (n.type = 'cyclic'\n AND (r.last_seen_date IS NULL OR DATEDIFF(CURDATE(), r.last_seen_date) >= n.repeat_interval)\n )\n )\n GROUP BY n.id\n ORDER BY n.priority DESC, n.created_at DESC\n ","params":{"id_shop":"2"}}}