<h4>Newsfeed Module Fixes</h4><ul><li><strong>Fixed:</strong> Enabled error_reporting(E_ALL) in newsfeed.controller.php — was missing entirely, hiding all errors.</li><li><strong>Fixed:</strong> savePost/iterate_data — preg_match_all() and parse_url() received null when msg key missing. Added ?? "" fallback.</li><li><strong>Fixed:</strong> deleteCommentById — $ttlComments and $nfid undefined when comment not found. Initialized both variables before conditional block.</li><li><strong>Fixed:</strong> deleteReplyByID — null crash accessing $reply["nfc_id_fk"] and $comment["newsfeedidkey_fk"] when reply/comment not found. Added null guards for both lookups.</li><li><strong>Fixed:</strong> Added null coalescing to all $r["key"] accesses: newsfeed_id, commentid, replyid, comment, reply, isgroup — preventing undefined key warnings across 16 endpoints (likeTheNewsfeedPost, insertCommentToNewsfeedPost, getAllWhoLikesTheNewsFeedPost, deleteCommentById, likeTheComment, getAllWhoLikesTheComment, insertReplyOnAComment, deleteReplyByID, likeTheReply, getAllWhoLikesTheReply, etc.)</li></ul><p>All 16 module endpoints + 3 global endpoints pass with 0 errors.</p>