PHP error when attempting to use Upgrade 13 to 14 tool

I’m running FreePBX 13 on Centos 7. All yum updates have been done, and all FreePBX modules are up-to-date as of today.

I am using the FreePBX upgrade module, to upgrade to 14. It immediately stops at step 3 with the message:
Submitting data to servers…ERRORS

There’s also a red box which appears, saying:

Whoops\Exception\ErrorException
Call to undefined method module_functions::_generate_unique_id()
File:/var/www.html/admin/modules/versionupgrade/Versionupgrade.class.php:84

I’ve checked line 84 of this file and it says this:
$install_hash = $mf->_generate_unique_id();

I know very little about PHP so any tips on how to resolve this would be much appreciated!

fwconsole ma upgrade versionupgrade

This will fix the issue

Thanks Andrew. I now have to wait for the new version of the framework module to be released before I can test if that worked.

I installed the latest framework module using the --edge option, which let me enable the versionupgrade module. Now I get a different “Whoops\Exception\ErrorException” error, on line 85 of the same file as above:
Illegal string offset ‘uniqueid’

Not helpful. I need to see the full error

The error in the red box says this:

Whoops\Exception\ErrorException
Illegal string offset 'uniqueid’
File:/var/www/html/admin/modules/versionupgrade/versionupgrade.class.php:85

“fwconsole debug” gives me this warning relating to versionupgrade, if it helps at all:
[WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/versionupgrade/functions.inc.php on line 35

Just wondered if I can provide any more information about this problem?

Use the ticket tracker and report an issue

I’m having the same issue. Was a ticket opened on this issue? If not, please let me know and I’ll open a bug report.

A ticket was opened yes

Can you please paste a link to the ticket?

https://issues.freepbx.org/browse/FREEPBX-17059

1 Like

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