FreerPBXer
(FreerPBXer)
November 26, 2024, 7:16pm
1
We’ve done a bunch of these 15-> upgrades using the same commands. This is the first one to completely blow up.
It’s got the Function Redis::delete() is deprecated error described here:
I was not able to upgrade freepbx 15 to 16 from CLI due to these error message :
The first error was “In RedisCache.php line 135: Function Redis::delete() is deprecated”
And
freepbx Array and string offset access syntax with curly braces is deprecated
So I used an snapshot to revert it to version 15. Any suggestion how to fix these error?
I upgraded from 14 to 15 with no problem and restarted it and then tried to go from 15 to 16. The cli shows this.
~]# fwconsole ma upgradeal
Exception: SQLSTATE [HY000] [2002] No such file or directory: : SQLSTATE [HY000] [2002] No such file or directory in file /var/www/html/admin/libraries/utility. functions. php on line 120
Caused by
PDOException: SQLSTATE [HY000] [2002] No such file or directory in file /var/www/html/admin/libraries/BMO/Database. class.php on line 144
Stack trace:
Ex…
Hi, im currently in the installation of freepbx again.
In this case after the first few steps i got this error message from the ./install -n command:
In RedisCache.php line 135: Function Redis::delete() is deprecated
and,
In Process.php line 239: The command "/usr/sbin/fwconsole ma install framework" failed. Exit Code: 255(Unknown error).
If i only execute fwconsole ma install framework i get the deprecation notice error from above.
I’m using this guide: https://wiki.freepbx.org/display/FD…
The all end up pointing the OP to a bug report link:
The unified FreePBX issue tracker.
But that doesn’t lead to the mentioned fix.
Can someone please point me to wherever that bug report and fix have been relocated so we can get the system off its lips?
kgupta
(Kapil Gupta)
November 27, 2024, 8:42am
2
please check your framework module version and php version? if successfully upgraded then php version should be 7.2 and framework should be 16.x.
If framework is not 16.x then manually execute below commands -
fwconsole ma downloadinstall framework
fwconsole chown
fwconsole r
Once framework is updated then update all your modules to the latest stable by fwconsole upgradeall
Thanks
Kapil
FreerPBXer
(FreerPBXer)
November 27, 2024, 4:03pm
3
fwconsole would not run at all; there was no way to do what you suggest. I eventually found two instances of the file mentioned in the other posts, one of which had the invalid delete() command. Manually changing it just changed the error.
It seems that the upgrade stopped partway through the process, but reported as complete. Re-running the upgrade script (from the CLI) resulted in it saying the upgrade was complete. But we were left with a system that would boot and do little else.
I restored from a backup and left it on v15 for now.
I don’t know what happened, but it seems like there is an untrapped error that caused this and then left the system in a state where the upgrade script was incorrectly sure the process was complete.
Code quality matters.