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

    Warning messages on system_certmanager.php page after installation haproxy pkg

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 1.4k 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.
    • A Offline
      ardu
      last edited by

      Hi,
      on a pfSense 2.3-RELEASE (amd64) I've several certificates used for OpenVPN.

      I had no problems to browse the certificate list (page /system_certmanager.php) until I've installed the haproxy package.

      Now in the certificates list I see the following warning in the header and in the "Actions" column on every certificate.

      Warning: Invalid argument supplied for foreach() in /usr/local/pkg/haproxy/haproxy.inc on line 2140

      Call Stack:
          0.0001    228000  1. {main}() /usr/local/www/system_certmanager.php:0
          0.0326    1567216  2. pkg_call_plugins() /usr/local/www/system_certmanager.php:988
          0.0429    1776272  3. call_user_func:{/etc/inc/pfsense-utils.inc:3080}() /etc/inc/pfsense-utils.inc:3080
          0.0429    1776336  4. haproxy_plugin_certificates() /etc/inc/pfsense-utils.inc:3080

      A crash report is also generated and sent to developers.

      Is there an updated release that will fix this issue?

      Thanx.

      1 Reply Last reply Reply Quote 0
      • P Offline
        PiBa
        last edited by

        • Is there an updated release that will fix this issue?
          No not yet, issues must first be found before they are fixed ;)

        Probably very little configuration made sofar in haproxy (i suspect not a single backend configured)?

        Anyway i should check for empty arrays before using them. Ill try and send a fix tonight.

        1 Reply Last reply Reply Quote 0
        • A Offline
          ardu
          last edited by

          • Is there an updated release that will fix this issue?
            No not yet, issues must first be found before they are fixed ;)

          Sorry, I didnt want to be rude ;-)
          I didnt know if the issue was already reported (search done but none found).

          Probably very little configuration made sofar in haproxy (i suspect not a single backend configured)?

          I confirm that: The warning disappeared after I configured at least a backend in haproxy

          Thank you!

          1 Reply Last reply Reply Quote 0
          • P Offline
            PiBa
            last edited by

            No apology needed, you were not rude. Its just that i think you recently installed haproxy, which would have been the latest version at that time, i found the question somewhat funny to ask if a update is available if you've installed the latest version available just hours earlier.

            Anyway ill fix that warning, empty not yet existing array's should not be looped over. I do try to test new features when added in a few different configurations, but a empty config is not always one of them.

            If you do find other issues please don't hesitate to report them :)

            1 Reply Last reply Reply Quote 0
            • P Offline
              PiBa
              last edited by

              Anyway, a fix has been submitted on github https://github.com/pfsense/FreeBSD-ports/pull/123 , now it needs to get pulled which might take a few days, and a few minutes after that pfSense 2.3 package manager should be able to show that a newer version is available for installation.

              1 Reply Last reply Reply Quote 0
              • F Offline
                foetus
                last edited by

                I was just going to create a topic for this :).
                Thank you for the quick response.

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