Uncaught ReferenceError: CRM is not defined whilst open the "directories" page on the admin page
It sounds like your Resource URLs and directories need to be updated.  

Since you're having trouble opening the directory page, try using an override in civicrm.settings.php.