EPM Whoops exception

I’m getting a whoops exception on all pages after changing a phone from chan_sip to pjsip. The exception reports it’s a problem with the EPM - This is on FreePBX 13

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/endpoint/functions.inc/functions_common.php