<ul><li>Fixed CRITICAL: <code>BASEPATH_</code> undefined in CLI — added guard in <code>platform/cron/index.php</code> to set <code>$_SERVER["DOCUMENT_ROOT"]</code> and pre-define <code>BASEPATH_</code> before bootstrap require (CRITICAL)</li><li>Fixed CRITICAL: <code>stripe_subscriptions</code> table missing crashed entire cron on every run — wrapped query in table-existence guard using SHOW TABLES LIKE (CRITICAL)</li><li>Fixed HIGH: <code>getActiveServiceSubscriptions()</code> queried <code>psSubsStatus = "active"</code> on a tinyint column — always returned 0 rows, silently excluding all 44 service subscriptions from billing invoices — fixed to <code>= 1</code> (HIGH)</li><li>Fixed MEDIUM: <code>$_SESSION["activesiteacctid"]</code> undefined key warning in cron — added <code>?? 0</code> fallback (MEDIUM)</li><li>Fixed MEDIUM: <code>BASEPATH_</code> re-defined warning in <code>spl_autoload_register.php</code> — added <code>if (!defined())</code> guards (MEDIUM)</li><li>Fixed MEDIUM: <code>$_SERVER["HTTP_HOST"]</code> and <code>REMOTE_ADDR</code> undefined in CLI via <code>define_common.php</code> — added null coalescing defaults (MEDIUM)</li><li>Scheduled billing cron via www-data crontab: <code>0 0 * * *</code> daily midnight — billing system was NEVER running in production (CRITICAL)</li></ul>