Reload failed because retrieve_conf encountered an error: 255

I have the following:

exit: 255
PHP Fatal error: Call to undefined function freepbx\modules\endpoint_apiapp() in /var/www/html/admin/modules/restapps/Restapps.class.php on line 952
Whoops\Exception\ErrorException: Call to undefined function freepbx\modules\endpoint_apiapp() in file /var/www/html/admin/modules/restapps/Restapps.class.php on line 952
Stack trace:

  1. () /var/www/html/admin/modules/restapps/Restapps.class.php:952

When I go in to update the REST apps it says:

Asterisk REST Interface Users cannot be upgraded:
Requires engine asterisk (>= 12), you have: asterisk 11.21.0

Now I have a constant “Apply Config” button up top and “Reload failed because retrieve_conf encountered an error: 255” as an alert. I did a search and found others that had similar, but slightly different issues causing this. Is there anything I can do to fix it?

You went and tried to upgrade the wrong module. Restapps requires endpoint, Which you seem to have removed. So just remove Restapps.

fwconsole ma remove restapps

That worked perfectly. Thank you!