<ul><li>platform/services/websites/inc/ajax.php: replaced broken BASEPATH_ requires with spl_autoload_register.php bootstrap — BASEPATH_ was undefined causing Fatal Error → HTTP 500</li><li>Added global $domainsite_params inside updateChildrenMenu() — variable was inaccessible inside function scope</li><li>Cast $menuinfo["id"] to (int) in all SQL usage</li><li>Fixed N+1: replaced per-row Sdba::table()->where(pmid)->get() loop with single pre-fetch query + in-memory childMap lookup</li><li>Added null-coalesce guard on $_SESSION["YPTemplateID"] and $menuinfo["children"]</li></ul>