PHP Fatal error 255 says Call to undefined function freepbx (SOLVED?)

Version:
I was on : FreePBX 13.0.197.21
Last night I did module updates and added Fop2. Now: FreePBX 13.0.197.22

Phones were working fine in the morning, then in the afternoon callers reported that Freepbx was giving the night message during normal business hours. I went into Time Conditions to bypass the office hours check, hit APPLY CONFIG and got this:


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 1490
Whoops\Exception\ErrorException: Call to undefined function freepbx\modules\endpoint_apiapp() in file /var/www/html/admin/modules/restapps/Restapps.class.php on line 1490
Stack trace:

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

Checked the Command Line:

[[email protected] ~]# fwconsole ma list | grep endpoint
| endpoint | 13.0.127 | Disabled; Pending upgrade to 13.0.133.1 | Commercial |
| endpointman | 13.0.7.18 | Enabled | GPLv2+ |
[[email protected] ~]# fwconsole ma install endpoint
Unable to install module endpoint:

  • Failed to install EndPoint Manager due to the following conflicting module(s) : OSS PBX End Point Manager

When I try to upgrade endpoint manager

Phone Apps cannot be upgraded:
* The Module Named " EndPoint Manager " is required, but yours is disabled because it needs to be upgraded. Please upgrade EndPoint Manager first, and then try again.
Please try again after the dependencies have been installed

fwconsole ma list shows

| restart | | Not Installed (Locally available) | GPLv3+ |

Tried to install Bulk Phone Restart

I> Installing restart

Error(s) installing restart:
Failed to install Bulk Phone Restart due to the following conflicting module(s): OSS PBX End Point Manager

Tried:
OSS PBX End Point Manager 13.0.7.18 will be uninstalled

Uninstalling endpointman
Removing Phone Modules Directory
Removing symlink to web provisioner
Dropping all relevant tables
Error(s) uninstalling endpointman:

  • Failed to run un-installation scripts

Ran fwconsole ma uninstall restapps endpoint from the CLI

Module restapps successfully uninstalled
dropping endpoint tables…
done
The following error(s) occured:

  • Failed to run un-installation scripts

SUDDENLY, The Error is cleared and I am able to Apply config.
In module Admin it says

EndPoint Manager Not Installed (Locally available: 13.0.133.1)
OSS PBX End Point Manager Not Installed (Locally available: 13.0.7.18)
Phone Apps Not Installed (Locally available: 13.0.92.46) [Vulnerable, Requires: 13.0.93.2]

Do I have a problem? Vulnerable?
I don’t believe I need Endpoint Manager or Bulk Restart. Not sure what PhoneApps does.
Any idea where it might have gone wrong?

If you are not using Phone Apps (aka RestApps) or Commercial Endpoint point manager then leaving them uninstall is okay.

just fyi - Refer to Phone Apps and Endpoint Manager wiki for further details about these modules.

thanks.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.