<ul><li>inc/ajaxchangingroles.php: Replaced undefined BASEPATH_ requires with proper spl_autoload_register bootstrap; added null guards on $_POST["acctkey"], ["rids"], ["role"]; fixed $_SESSION["uidfk"] to ["uid"]; added $instancestarturl default fallback; fixed null array access on $useraccountcheck and $wwbnaccountcheck</li><li>inc/ajaxinactive.php: Same BASEPATH_ fix; added null guard on $_POST["acctkey"]; fixed direct $_POST access in echo output</li><li>OrganizationClass.php: Fixed get_organization() — added null guards for $org_data and $org_edit_data (null when no matching iweb_accounts or wwbn_company record); removed debug dead-code line (return $query->get_one();exit) from check_company_email(); added ?? null guards on $_SESSION["YPSiteLinkID"] in update_domain_names_sites() and getOrgTypes_nonDefault()</li></ul>