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"
-
@rbgarga Yes will send it to you.
-
Can someone try these commands on shell of a broken system and let me know if it fixes the issue?
# 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
-
We are loading up a fresh install on a box we have at our office. Will be heading out to first site with the issue in about an hour. I can run the scripts on the shell when I get hands on the box and will let you know the results.
Also the same site, we had our customer reboot the box. It came back up for about 10 minutes then went back into same error state.
-
@eli This is exactly what we are experiencing here almost on all pfSense firewalls. After firewall or PHP-FPM restart error is back like in 10 minutes.
-
-
What pfSense packages did you have installed anyone who hit this?
Anything unusual?
Steve
-
Just Cron.
-
@emil Do you have any extra item on your crontab?
-
-
-
-
-
- root /usr/local/bin/php /usr/local/www/pfmonitor.checkin.php
-
-
-
-
-
You have pfmonitor installed then?
Anyone else hitting this running that?
Steve
-
@stephenw10 Yes, I have pfmonitor installed.
-
@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.
-
@rbgarga Yes I do understand, I have contacted PFmonitor support also to report the issue. Thank you for your help.
-
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:
-
A simple power cycle should allow the agent to uninstall itself during the reboot in most cases.
-
From the shell on an affected unit, run this command, and then reboot the unit: rm pfmonitor.checkin.php: "
-
-
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 -
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