Upgrade from v4.5

glennbtn

Member
Aug 7, 2018
79
4
8
54
I still have an old server running 4.5 that I want to now get up to date.

I am trying to follow the upgrade path following Fusion documentation which the 1st step is to go from 4.5 to 5.

I have moved the old fusionpbx folder, and done a git clone as per the instructions, followed by doing the chowning

The next set is to run the upgrade.php, this is where it all falls down.

PHP Warning: syntax error, unexpected '(' in /etc/fusionpbx/config.php on line 7
in /var/www/fusionpbx/resources/classes/config.php on line 189
PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /var/www/fusionpbx/resources/classes/config.php on line 115
PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /var/www/fusionpbx/resources/classes/config.php on line 115
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/fusionpbx/resources/classes/config.php on line 293
PHP Fatal error: Uncaught TypeError: Return value of config::configuration() must be of the type array, bool returned in /var/www/fusionpbx/resources/classes/config.php:301
Stack trace:
#0 /var/www/fusionpbx/resources/require.php(45): config->configuration()
#1 /var/www/fusionpbx/core/upgrade/upgrade.php(28): require('/var/www/fusion...')
#2 {main}
thrown in /var/www/fusionpbx/resources/classes/config.php on line 301

php -l /etc/fusionpbx/config.php shows no errors and though it may be php as this server had 7.1 so upgraded to 7.4 but still the same

Anyone got any ideas
 
You for sure need PHP 8.1 to start. 7.4 will likely to have errors. There might be other things you will need to adjust.
 
I have now tried on 8.1 but still errors. Shame anything like this is not in the document

PHP Warning: syntax error, unexpected '(' in /etc/fusionpbx/config.php on line 7


in /var/www/fusionpbx/resources/classes/config.php on line 189


PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /var/www/fusionpbx/resources/classes/config.php:115


Stack trace:


#0 /var/www/fusionpbx/resources/classes/config.php(258): config->__get()


#1 /var/www/fusionpbx/resources/classes/config.php(197): config->get()


#2 /var/www/fusionpbx/resources/classes/config.php(59): config->define_project_paths()


#3 /var/www/fusionpbx/resources/classes/config.php(310): config->__construct()


#4 /var/www/fusionpbx/resources/require.php(35): config::load()


#5 /var/www/fusionpbx/core/upgrade/upgrade.php(28): require('...')


#6 {main}


thrown in /var/www/fusionpbx/resources/classes/config.php on line 115
 
Text-based support will only get you so far. Call the number on this page so you can get it done faster, easier. You will reach an expert who knows FusionPBX extremely well, and they can help you with the upgrade.
- https://www.fusionpbx.com/support

Tip: can skip the version in between and go directly to the latest version. Then you can go through each version upgrade guide to make sure nothing was missed.

Still waiting for your call.
 
Last edited: