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

    Telegraf PHP Error on Pfsense 23.01 RELEASE

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 475 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.
    • H
      hovnetworks
      last edited by

      Hello,

      I have recently installed Telegraf on my Pfsense set up and during the installation process I noticed the following error:

      Executing custom_php_resync_config_command()...Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/pkg/telegraf.inc:132 Stack trace:0 /usr/local/pkg/telegraf.inc(132): implode(',', NULL) 1 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): telegraf_resync_config() 2 /etc/inc/pkg-utils.inc(781): eval() 3 /etc/inc/pkg-utils.inc(906): eval_once(' telegra...') 4 /etc/rc.packages(76): install_package_xml('Telegraf') 5 {main} thrown in /usr/local/pkg/telegraf.inc on line 132 PHP ERROR: Type: 1, File: /usr/local/pkg/telegraf.inc, Line: 132, Message: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/pkg/telegraf.inc:132 Stack trace: 0 /usr/local/pkg/telegraf.inc(132): implode(',', NULL) 1 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): telegraf_resync_config() 2 /etc/inc/pkg-utils.inc(781): eval() 3 /etc/inc/pkg-utils.inc(906): eval_once(' telegra...') 4 /etc/rc.packages(76): install_package_xml('Telegraf') 5 {main} thrownpkg-static: POST-INSTALL script failed Message from lsof-4.96.4,8:
      

      After the installation, I went back to the pfsense dashboard and noticed there was a message about a crash report and it contained the following informaiton:

      [11-Apr-2023 18:51:20 America/New_York] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/pkg/telegraf.inc:132
      Stack trace:
      #0 /usr/local/pkg/telegraf.inc(132): implode(',', NULL)
      #1 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): telegraf_resync_config()
      #2 /usr/local/www/pkg_edit.php(245): eval()
      #3 {main}
        thrown in /usr/local/pkg/telegraf.inc on line 132
      [11-Apr-2023 18:51:35 America/New_York] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /usr/local/pkg/telegraf.inc:132
      Stack trace:
      #0 /usr/local/pkg/telegraf.inc(132): implode(',', NULL)
      #1 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): telegraf_resync_config()
      #2 /usr/local/www/pkg_edit.php(245): eval()
      #3 {main}
        thrown in /usr/local/pkg/telegraf.inc on line 132
      

      This pfsense installation also has all the system patches installed. I tried to uninstall and reinstall but the same errors continue. Let me know if there is any additional information needed so I can send it in as soon as possible. Thank you for any and all help in advanced!

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