Unknown variable sub_dir
Removed debug.php