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

    Error "Fatal error: Uncaught Error: Call to undefined function gettext() in /usr/local/www/index.php:34 Stack trace: #0 {main} thrown in /usr/local/www/index.php on line 34"

    Scheduled Pinned Locked Moved General pfSense Questions
    28 Posts 7 Posters 9.0k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      What pfSense packages did you have installed anyone who hit this?

      Anything unusual?

      Steve

      1 Reply Last reply Reply Quote 0
      • E
        emil
        last edited by

        Just Cron.

        rbgargaR 1 Reply Last reply Reply Quote 0
        • rbgargaR
          rbgarga Developer Netgate Administrator @emil
          last edited by

          @emil Do you have any extra item on your crontab?

          Renato Botelho

          E 1 Reply Last reply Reply Quote 0
          • E
            emil @rbgarga
            last edited by

            @rbgarga

                    • root /usr/local/bin/php /usr/local/www/pfmonitor.checkin.php
            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              You have pfmonitor installed then?

              Anyone else hitting this running that?

              Steve

              E 1 Reply Last reply Reply Quote 0
              • E
                emil @stephenw10
                last edited by

                @stephenw10 Yes, I have pfmonitor installed.

                rbgargaR 1 Reply Last reply Reply Quote 0
                • rbgargaR
                  rbgarga Developer Netgate Administrator @emil
                  last edited by

                  @emil I don't know the code of that pfmonitor.checkin.php, but I strongly believe it was the cause of the issue. I'm saying that because we tried several times to reproduce the issue here and we couldn't. That is the reason we don't support systems running 3rd party code.

                  Renato Botelho

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    emil @rbgarga
                    last edited by

                    @rbgarga Yes I do understand, I have contacted PFmonitor support also to report the issue. Thank you for your help.

                    1 Reply Last reply Reply Quote 0
                    • E
                      emil
                      last edited by

                      Here is a response from PFmonitor support I have received:

                      "12-17-2019 ALERT! Firewalls Showing offline, PHP Uncaught Error

                      Last night or early this morning, a problem emerged suddenly with firewalls web interfaces going offline, and showing an error message of "Fatal error: Uncaught Error: Call to undefined function gettext() in /usr/local/www/index.php:34 Stack trace: #0 {main} thrown in /usr/local/www/index.php on line 34"

                      From what we can tell, there was some sort of repository update or change last night on pfsense, and as this change filtered down to the firewalls, it caused an issue with the agent. We are still investigating what was changed, and why this occurred. But
                      as a precaution to having any more units get stuck, we have issued the uninstall command for all agents, syslog is un-affected by this. We would rather drop off the agents, than have any more firewalls go offline.

                      If a firewall is already offline there are two potential ways to fix it:

                      1. A simple power cycle should allow the agent to uninstall itself during the reboot in most cases.

                      2. From the shell on an affected unit, run this command, and then reboot the unit: rm pfmonitor.checkin.php: "

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

                        Hi.
                        We have the same issue on at least two of our customers firewalls.
                        Both of them run 2.4.4 and is in pfmonitor.
                        I tried factory default one of them yesterday, but that didn't fix the issue.

                        I will try and run the "rm pfmonitor.checkin.php".

                        BR,
                        Michael Boye

                        1 Reply Last reply Reply Quote 0
                        • E
                          eli
                          last edited by

                          This script did it for us via the shell:

                          pkg update -f
                          pkg upgrade -f pfSense-repo
                          pkg info | grep pfSense-repo
                          -Verify version 2.4.4_7
                          exit
                          option #16 to restart php-fpm

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