<h4>DocSign Module Debug</h4><ul><li><strong>Fixed:</strong> 3 PHP warnings on page load: undefined $_SESSION["YPTemplateID"] in gbl_class.php and websites.class.php (added ?? TPLID fallback), null $userOrgRersult in pagedata.php (added null guard).</li><li><strong>Fixed:</strong> Undefined $legaldocsmodid in 5 controller methods (getLegalDocsTable, getLegalDocsSignedTable, getCategoryTable, searchLegalDocs, reloadCategoryOption) — added null coalescing after extract().</li><li><strong>Fixed:</strong> Undefined $webmod/$page in getLegalDocsTable and searchLegalDocs — added defaults.</li><li><strong>Fixed:</strong> Undefined $CategoryValue/$CategoryLabel/$LegalDocsModuleID_fk in addLegalDocsCategory — added null coalescing with alternate key names.</li><li><strong>Fixed:</strong> Undefined $LegalDocsModuleID_fk in signDocs — added fallback.</li><li><strong>Fixed:</strong> dompdf null deprecations in exportPdf — $data could be null when doc ID invalid. Added null guard with early return.</li><li><strong>Fixed:</strong> Undefined $domainsite_params in LegalDocsManager categories.php — added global declaration.</li></ul><p>All 10 endpoints + page load: 0 errors.</p>