PHP error when navigating to ACME plugin page
-
We are seeing a PHP error when navigating to the ACME plugin page or the certificate page when the ACME plugin is loaded.
Please see below for the crash log:
Crash report begins. Anonymous machine information:amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_11-n256407-1bbb3194162: Fri Nov 22 05:08:46 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/obj/amd64/AKWlAIiM/var/jenkins/workspace/pfSense-Plus-snapshots-24_11-main/sources/FreeBSCrash report details:
PHP Errors:
[17-Feb-2025 11:40:27 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/acme/acme.inc:78
Stack trace:
#0 /etc/inc/pfsense-utils.inc(3669): acme_plugin_certificates()
#1 /usr/local/www/system_certmanager.php(1402): pkg_call_plugins()
#2 {main}
thrown in /usr/local/pkg/acme/acme.inc on line 78 -
Crash report details:
PHP Errors:
[17-Feb-2025 11:53:17 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/acme/acme_certificates.php:221
Stack trace:
#0 {main}
thrown in /usr/local/www/acme/acme_certificates.php on line 221 -
Both errors have the same origin.
Export you pfSense config, and open it with a decent editor, like notepad++.
Locate the 'offending' place : see the error line, its :
installedpackages/acme/certificates/itemFirst search for installedpackages, your find
<installedpackages>
then, from that point search for <acme>
<acme>
and now locate <certificates>
Under <certificates> you'll find the <item> sub section.
In there you have a sub section <a_domainlist> and <a_actionlist>
and then you find <name> with the name of what you've defined here :The issue is : this name in the GUI :
doesn't exist anymore in the pfSense certificate manager GUI.
Solution : remove (de install) the acme package.
Then go back to the same place in the config - and save a original version of this file.
If acme stuff is still in there, remove (delete) it.Import the config back into pfSense.
Install acme again. -
Thanks for the insight, that resolved the issue