<ul><li><strong>CRITICAL FIX:</strong> Removed hardcoded <code>require_once('/var/www/html/demo_youportal/classes/websites/websites.class.php')</code> from <code>platform/assets/template/1/1/header.php</code> line 9 — was causing fatal error on every page load; Website class is autoloaded via spl_autoload_register.php</li><li>Fixed <code>platform/assets/template/1/1/2005_sourcecode.php</code>: disabled display_errors in included template file, fixed broken <code>parse_str(parse_url($_GET, PHP_URL_QUERY),$qry)</code> (array passed to parse_url expecting string) — replaced with <code>$qry = $_GET</code>, added isset() guards on <code>$item_menu['Menu']</code> access</li><li>Fixed <code>platform/services/websites/inc/api_avideo.php</code>: was using <code>BASEPATH_</code> constant before any require that defines it — replaced manual requires with <code>spl_autoload_register.php</code> bootstrap; added session_start(); added isset() guards on $r['APIUrl'] and $r['APIName']; replaced $r['APIName'] comparisons with $apiName variable</li><li>Fixed <code>platform/services/websites/inc/avideo_auth.php</code>: same BASEPATH_ before autoloader pattern — replaced manual requires with spl_autoload_register.php; added null-coalescing guards on $_POST['action'] access</li><li>Fixed <code>platform/services/websites/inc/add_new_session.php</code>: same BASEPATH_ before autoloader pattern — replaced with spl_autoload_register.php bootstrap; added session_start() guard</li><li>Fixed <code>platform/services/websites/inc/ajax.php</code>: unguarded <code>$action = $_POST['action']</code> — wrapped with isset()</li><li>Fixed <code>website/inc/getsitemenus.php</code>: disabled display_errors/display_startup_errors in included file (log_errors kept on)</li><li>Fixed <code>index.php</code>: hardcoded https:// protocol in redirect — replaced with dynamic protocol detection</li><li>Fixed <code>platform/services/websites/pages/js_functions.php</code> and <code>module_details.php</code>: replaced all deprecated <code>$.parseJSON()</code> calls with <code>JSON.parse()</code></li></ul>