I recently attempted to install FreePBX 17 using the official installation script.
The OS I’m using is Debian, with PHP 8.2.24, FreePBX 17.0.19.13, and CRM Link 17.0.1.16.
After installing CRM Link, I encountered the following error when calling its REST API for the first time:
Error:
Creation of dynamic property FreePBX\modules\Sangomacrm\CRMAPI\API::$settings is deprecated
I tried bypassing this error by setting the PHP Error Level to None in the Advance Settings, which seemed to work, but then I encountered another error:
{
"error": {
"code": 1,
"file": "/var/www/html/admin/libraries/Composer/vendor/slim/slim/Slim/App.php",
"line": 47,
"message": "Uncaught TypeError: Slim\\App::__construct(): Argument #1 ($responseFactory) must be of type Psr\\Http\\Message\\ResponseFactoryInterface, array given, called in /var/www/html/admin/modules/sangomacrm/CRMAPI/API.php on line 54 and defined in /var/www/html/admin/libraries/Composer/vendor/slim/slim/Slim/App.php:47\nStack trace:\n#0 /var/www/html/admin/modules/sangomacrm/CRMAPI/API.php(54): Slim\\App->__construct()\n#1 /var/www/html/admin/modules/sangomacrm/Sangomacrm.class.php(897): FreePBX\\modules\\Sangomacrm\\CRMAPI\\API->__construct()\n#2 /var/www/html/admin/libraries/BMO/Ajax.class.php(127): FreePBX\\modules\\Sangomacrm->ajaxCustomHandler()\n#3 /var/www/html/admin/ajax.php(63): FreePBX\\Ajax->doRequest()\n#4 /var/www/html/admin/api/api.php(3): include('...')\n#5 {main}\n thrown",
"type": "Whoops\\Exception\\ErrorException"
}
}
I didn’t encounter any issues when using FreePBX 15 with CRM Link 15, and everything worked perfectly fine.
Does anyone have experience dealing with this issue or know how to fix it?
P.S. I tried submitting a support case in the commercial module section, but it keeps saying my account is still pending review, even though I registered over four years ago…