Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PHP error when navigating to ACME plugin page

    Scheduled Pinned Locked Moved ACME
    4 Posts 2 Posters 350 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mbnfl
      last edited by

      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/FreeBS

      Crash 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

      M 1 Reply Last reply Reply Quote 0
      • M
        mbnfl @mbnfl
        last edited by

        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

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @mbnfl
          last edited by

          @mbnfl

          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/item

          First 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 :

          1dc37831-41de-4d05-af38-5703c35ac39a-image.png

          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.

          979d2c83-fff5-40ba-9a98-0650691c4fda-image.png

          Import the config back into pfSense.
          Install acme again.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • M
            mbnfl
            last edited by

            Thanks for the insight, that resolved the issue

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.