<h4>Notification Settings &amp; Socket Fixes</h4><ul><li><strong>Fixed:</strong> Enabled error reporting in NotificationsController.php, NotificationSettingController.php, and notification.controller.php — errors were being suppressed with commented-out error_reporting or E_ALL &amp; ~E_NOTICE &amp; ~E_WARNING</li><li><strong>Fixed:</strong> Undefined array key warning in notifications_manager.php — $_GET["action"] accessed without null coalescing</li><li><strong>Fixed:</strong> "Trying to access array offset on null" warning on NotificationsController.php line 618 — getEnableDeviceType() was accessing array keys on null return without checking</li><li><strong>Fixed:</strong> JSON parse error ("Unexpected token o") on notifications main page — foot.php was double-parsing JSON responses with $.parseJSON() when controller already sends Content-Type: application/json causing jQuery to auto-parse. Fixed loadMoreNotification and unreadToday functions.</li><li><strong>Fixed:</strong> Socket server dying from MySQL connection timeout — replaced mysql.createConnection() with mysql.createPool() in server.js to auto-handle reconnection and prevent port 2053/2054 from going unresponsive</li></ul>