FreePBX | Register | Issues | Wiki | Portal | Support

PHP error when attempting to use Upgrade 13 to 14 tool


(Paul Timms) #1

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!


(Andrew Nagy) #2

fwconsole ma upgrade versionupgrade

This will fix the issue


(Paul Timms) #3

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.


(Paul Timms) #4

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’


(Andrew Nagy) #5

Not helpful. I need to see the full error


(Paul Timms) #6

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


(Paul Timms) #7

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


(Andrew Nagy) #8

Use the ticket tracker and report an issue


#9

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.


(Andrew Nagy) #10

A ticket was opened yes


#11

Can you please paste a link to the ticket?


(Andrew Nagy) #12

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