<h4>pagedata.php — Fatal Error Fix</h4><ul><li><strong>CRITICAL Fixed:</strong> Fatal error on line 19 — <code>in_array()</code> received null because <code>json_decode($list_incfiles[0]['module_rids'])</code> crashed when: (1) <code>$list_incfiles</code> was empty (no record for module ID), (2) <code>module_rids</code> was null. Added empty result check with redirect, safe json_decode with fallback to empty array, and is_array guard.</li><li><strong>Fixed:</strong> Super admin users blocked by module_rids role check — the <code>in_array($_SESSION['rid'], $module_rids)</code> check had no super_admin bypass, unlike the later roles check at line 196. Added <code>$_SESSION['super_admin']</code> bypass.</li><li><strong>Fixed:</strong> Multiple undefined session key warnings — added null coalescing (<code>?? ''</code>) for <code>$_SESSION['YPTemplateID']</code>, <code>$_SESSION['YPSiteLinkID']</code>, <code>$_SESSION['rid']</code>.</li><li><strong>Fixed:</strong> Non-static method <code>WWBNglobal::isMultisite()</code> called statically — created instance first.</li><li><strong>Fixed:</strong> Added Homepage module (ID 11) purchase record for site 129 which was missing from domain_purchased_modules table.</li></ul><p><strong>File:</strong> platform/module/pagedata.php</p><p><strong>Result:</strong> Home page loads successfully (14,264 lines). All endpoints return valid responses. No PHP errors.</p>