I ran into the same issue, it seems its a bug that was introduced in commit bbe755f of github.com/FreePBX/framework. I solved it by undo-ing the changes in the amp_conf/htdocs/admin/libraries/utility.functions.php file. Specifically, changing line 1304, and removing lines 1314-1323.
Hope that helps.