<h4>Documents Module — 500 Internal Server Error Fix</h4><ul><li><strong>CRITICAL Fixed:</strong> 500 error on POST to get_category_info.php — file used <code>BASEPATH_</code> constant without loading spl_autoload_register.php. The <code>require_once(BASEPATH_.'/classes/sdba/sdba.php')</code> failed because BASEPATH_ was undefined. Replaced manual requires with standard autoloader: <code>require_once(rtrim($_SERVER['DOCUMENT_ROOT'],'/').'/controller/spl_autoload_register.php')</code>.</li><li><strong>CRITICAL Fixed:</strong> Same 500 error in get_item_info.php — identical BASEPATH_ issue.</li><li><strong>Fixed:</strong> Enabled error_reporting(E_ALL) in both files (was commented out).</li><li><strong>Fixed:</strong> Added null coalescing on <code>$_POST['cid']</code> and <code>$_POST['item']</code> — undefined key warning when params missing.</li><li><strong>Fixed:</strong> Added null guards on <code>$docCategoryInfo</code> and <code>$docInfo</code> — prevents null access crash when record not found.</li><li><strong>Fixed:</strong> Added null coalescing on <code>$docInfo['ItemLink']</code> in parse_url call.</li><li><strong>Fixed:</strong> Added default <code>$icon</code> variable for get_category_info.php — was undefined.</li></ul><p><strong>Files:</strong> platform/module/DocumentManager/inc/get_category_info.php, platform/module/DocumentManager/inc/get_item_info.php</p>