phone
July 31, 2025, 3:18am
1
Anyone have any fixes for php 8.2 breaking lets encrypt renewals?
Running Freepbx v17 on debian 12 with php 8.2
Same error as this thread:
This is a duplicate of this post, however there was no resolution. After a lot of investigation, I found the following extra information. Background When renewing Letsencrypt certificates, we get an error There was an error updating certificate:...
Reading time: 2 mins 🕑
Likes: 2 ❤
Also as this bug report:
opened 09:41PM - 20 Jul 25 UTC
bug
triage
### FreePBX Version
FreePBX 16
### Issue Description
Module Name: certman - U… ndefined array keys, JSON decoding - Partially patched, still buggy
Module Name: dpma - Missing protocol key errors
Module Name: sysadmin - Limited Apache control on Debian | GUI restart disabled, partial functionality.
The combination of Certman and sysadmin problems cause issues install Lets Encrypt Certificate.
Why This Happens
- PHP 8.2 enforces stricter rules around undefined array keys ($array['key'] without checks)
- JSON decoding now throws errors for malformed payloads
- Deprecated functions and loose syntax used in older modules trigger warnings or fatal errors
I have 6 VPSs up and running successfully with Debian 12 and FreePBX 17 from the Github script. These problems are new. Older installs worked fine.
I installed the Debian 12x O/S on my VPS, then I installed PHP 8.1 and LOCKED it to prevent upgrades.
### Operating Environment
Default Debian 12x install updated.
GIthub Freepbx Installer script.
### Relevant log output
```shell
Result Installer script fails:
2025-07-20 21:11:16 - Installation failed at step Installing all local modules. Please check log /var/log/pbx/freepbx17-install-2025.07.20-21.10.57.log for details.
2025-07-20 21:11:16 - Error at line: 1199 exiting with code 127 (last command was: fwconsole ma installlocal >> "$log")
2025-07-20 21:11:16 - Exiting script
2025-07-20 21:11:16 - Installing all local modules
/tmp/sng_freepbx_debian_install.sh: line 1199: fwconsole: command not found
2025-07-20 21:11:16 - ****** INSTALLATION FAILED *****
2025-07-20 21:11:16 - Installation failed at step Installing all local modules. Please check log /var/log/pbx/freepbx17-install-2025.07.20-21.10.57.log for details.
2025-07-20 21:11:16 - Error at line: 1199 exiting with code 127 (last command was: fwconsole ma installlocal >> "$log")
2025-07-20 21:11:16 - Exiting script
```
lgaetz
August 1, 2025, 12:09pm
2
I’m running TangoPBX with certman 17.0.3.13. The LE cert was created for me on my first try, as it always does.
One of your links is about fpbx 14 which is long past EOL and the other doesn’t seem to have anything to do with certman or LE. What is the actual issue and how do you repro it?
phone
August 1, 2025, 9:53pm
3
My setup:
Debian 12.11
Freepbx - installed via sangoma script
PHP 8.2
All latest updates applied for debian and freepbx
When attemping to renew the ssl certificate I get the following error
"lechecker: Pest_Json_Decode - Decoding error: Syntax error
** lechecker: Pest_Json_Decode - Decoding error: Syntax error"
This post may shed some more light (The thread starts off for fpbx 14 but go further down)?
lgaetz
August 1, 2025, 10:07pm
4
I see that error, but does not appear to block renewal
root@tangopbx7:~# fwconsole cert --updateall --force
Forced update enabled !!!
Processing: tangopbx.domain.com, Local IP: 144.xx.yy.13, Public IP: 144.xx.yy.13
Self test: trying http://tangopbx.domain.com/.freepbx-known/949685bf5a0b20b689f7b29968edcc72
Self test: received 949685bf5a0b20b689f7b29968edcc72
lechecker: Pest_Json_Decode - Decoding error: Syntax error
Successfully updated certificate named "tangopbx.domain.com"
phone
August 1, 2025, 11:36pm
5
Mine just hangs after the decoding error
phone
August 2, 2025, 9:05pm
6
Figured out issue, was geo-ip blocking the challenge
Went thru after fixing, but still showed the decode error.
thanks