Debian 13 "in limbo" system

So I was one of the idiots who forced apt upgrade when the vulnerability was posted, and left myself with a Debian 13 system before the distro was fixed to LOCK it to Debian 12.

TLDR; a well updated FreePBX 17 distro does still function after this oopsie, but some gui things appear to be broken.

Primarily it looks like some php/curl stuff.

Would anyone like to take an educated guess if I can/SHOULD try to upgrade php curl?

error I am getting on dashboard and gui reload:

Undefined constant "CURLOPT_RETURNTRANSFER"
File:/var/www/html/admin/modules/sysadmin/Reg.class.php:57

The problem there appears to be related to newer version of PHP. Try downgrading to php 8.2.

Yeah we had one of those as well - Cannot downgrade…
The following packages have unmet dependencies:
php-common : Breaks: php8.2-common but 8.2.29-1~deb12u1 is to be installed

Cannot clear the lock to allow reinstall of 8.2 after removal of 8.4

So a couple things here, check for the repos that are set for php

cat /etc/apt/sources.list.d/php.list

Then if no sources, add sury’s (master php) repo and install 8.2 from there (google directions for this)

finally be sure that apache is configured for 8.2 not 8.4 (below are the lines)

a2dismod php8.4
a2enmod php8.2
systemctl restart apache2

And voila you are back in and all is well with the GUI

@jcbdmd Did this fix yours as well? Just want to be sure this fix can be marked as a solution.

Unfortunately, I will not be able to test it out until sometime next week, but I will try it! Thanks

Is Sury repo the only way? I am not a Debian expert and have forgotten more Linux than I ever “got gud” at.

But I was wondering why Sury insted of Debian repo? Is it becasue I have accidentally mgrated to Deb 13?

Debian 12 ships with PHP 8.2 packages, while Debian 13 ships with PHP 8.4 packages.

If you want/need to run FreePBX 17 in Debian 13, your best bet would be to downgrade to PHP 8.2, and the Sury Repo will provide those packages build for Debian 13 (which Debian itself does not provide). It will probably work, but Sangoma doesn’t officially endorse it.

I seem to have a functioning dashboard/gui now thanks!

There were some slight differences in the .list filenames (all of them were named archive_uri-http*.list)

after getting php 8.2 reinstalled I noticed I have 300+! packages “held back” from apt upgrade, most very minor revisions, some are major updates.

Going to try and figure out that ball of wax next

and thank you as well for the confirmation