• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 8.5k 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.
  • E
    emil @rbgarga
    last edited by Dec 17, 2019, 5:36 PM

    I have ran commands and restarted PHP-FPM in console option 16. All is working good so far.

    pkg update -f

    pkg upgrade -f pfSense-repo

    pkg info | grep pfSense-repo

    at this moment make sure it's running version 2.4.4_7 of this package

    /etc/rc.php_ini_setup

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Dec 17, 2019, 5:37 PM

      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 Dec 17, 2019, 5:46 PM

        Just Cron.

        R 1 Reply Last reply Dec 17, 2019, 5:47 PM Reply Quote 0
        • R
          rbgarga Developer Netgate Administrator @emil
          last edited by Dec 17, 2019, 5:47 PM

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

          Renato Botelho

          E 1 Reply Last reply Dec 17, 2019, 5:48 PM Reply Quote 0
          • E
            emil @rbgarga
            last edited by Dec 17, 2019, 5:48 PM

            @rbgarga

                    • root /usr/local/bin/php /usr/local/www/pfmonitor.checkin.php
            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Dec 17, 2019, 5:50 PM

              You have pfmonitor installed then?

              Anyone else hitting this running that?

              Steve

              E 1 Reply Last reply Dec 17, 2019, 6:08 PM Reply Quote 0
              • E
                emil @stephenw10
                last edited by Dec 17, 2019, 6:08 PM

                @stephenw10 Yes, I have pfmonitor installed.

                R 1 Reply Last reply Dec 17, 2019, 6:11 PM Reply Quote 0
                • R
                  rbgarga Developer Netgate Administrator @emil
                  last edited by Dec 17, 2019, 6:11 PM

                  @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 Dec 17, 2019, 6:16 PM Reply Quote 0
                  • E
                    emil @rbgarga
                    last edited by Dec 17, 2019, 6:16 PM

                    @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 Dec 17, 2019, 6:36 PM

                      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 Dec 18, 2019, 7:30 AM

                        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 Dec 18, 2019, 7:42 AM

                          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
                          26 out of 28
                          • First post
                            26/28
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received