Framework 16.0.50: System Updates fails with German GUI locale when RPM package gd3php is missing

Description

FreePBX Framework 16.0.50 fails to display System Updates when the GUI language is set to German and the RPM package gd3php is not installed.

The same page works correctly when the GUI language is changed to English.

This behavior was reproduced on both our production FreePBX system and an isolated clone.

Environment

  • FreePBX 16

  • Framework 16.0.50

  • RPM 4.11.3

  • PHP 7.4.16 (before system updates)

  • System locale: en_US.UTF-8

  • Affected file: /var/www/html/admin/libraries/Builtin/SystemUpdates.php

Steps to reproduce

  1. Use a system where gd-last is installed but gd3php is missing.

  2. Set the FreePBX GUI language to German.

  3. Open Admin → Updates → System Updates.

  4. The page fails with RPM command errored (exit code 1, SystemUpdates.php, line 459).

  5. Change the GUI language to English.

  6. Open the same page again. It works correctly.

RPM output

Installed packages before updating:

package gd3php is not installed
gd-last-2.3.2-1.el7.remi.x86_64
php-gd-7.4.16-1.el7.remi.x86_64

Under German locale:

LC_ALL=de_DE.UTF-8 rpm -q gd3php
Das Paket gd3php ist nicht installiert

Under C locale:

LC_ALL=C rpm -q gd3php
package gd3php is not installed

The Framework appears to recognize the English phrase is not installed but not the corresponding localized German RPM message.

This suggests that the RPM error handling is locale-dependent.

Additional findings

On the cloned system, we installed the available system updates and rebooted.

Yum transaction 45 (2026-10-28) included:

Obsoleted   gd-last-2.3.2-1.el7.remi.x86_64
Obsoleting  gd3php-2.3.3-7.el7.remi.x86_64

PHP packages were also updated from 7.4.16 to 7.4.33.

After the updates and reboot, the System Updates page works correctly in both German and English.

The production system has not yet been updated and still reproduces the issue.

This strongly suggests that the missing gd3php package triggers the localized RPM error-handling problem. However, the exact cause has not been isolated independently of the other package updates.

Expected behavior

The System Updates page should correctly handle missing RPM packages regardless of the selected FreePBX GUI language.

Suggested fix

Execute RPM queries with a predictable locale such as LC_ALL=C, or make the missing-package detection independent of localized RPM messages.

A fix should be included in the officially signed Framework module, since modifying SystemUpdates.php directly triggers the FW_TAMPERED security warning.

Screenshots

Two screenshots are attached to demonstrate the issue:

Screenshot 1 – English GUI (working)
The FreePBX Updates page loads successfully and displays 19 available system updates.

Screenshot 2 – German GUI (error)
The same page fails with RPM command errored, exit code 1, in SystemUpdates.php at line 459. The exception occurs in FreePBX\Builtin\SystemUpdates::getInstalledRpmVersions().

The screenshots were captured before installing the system updates.

After updating the cloned system, including replacement of gd-last with gd3php, and rebooting, the issue no longer occurs in either language.