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"
-
I have the same thing 13 out of 25 pfsense have this error.
-
So this just started randomly without making any changes?
What version(s) are you running on these systems?
-
@jimp said in 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":
So this just started randomly without making any changes?
Yes it started just this morning on most of our Netgate SG-3100 firewalls. We are on the latest pfSense 2.4.4-RELEASE-p3 version. If I connect to firewall with ssh and enter 16) Restart PHP-FPM from console all is good again, but after few minutes error is back again.
-
We started getting the same thing yesterday around 4 pm pacific time. It started on about 15 then was up to 20 by last night. We are now at 37 of 60 of our firewalls that are doing it. Exact same error when trying to login to GUI. passing traffic and reporting to Solarwinds. But cant manage or hit via vpn.
Most of our firewalls are on 2.4.4 P2
No updates or config was done it just happened out of nowhere.
-
Yup started this morning, no changed been made in last 3 months.
-
Could you please paste the output of the following command on one of these broken firewalls?
head -n 40 /etc/rc.php_ini_setup
-
@CDestiny said in 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":
Having this issue also, here is a crashdump got, it almost looks like the storage dropped out, it cannot find its own files?!?!
That's not related, start a new thread.
-
@rbgarga
#!/bin/shrc.php_ini_setup
part of pfSense (https://www.pfsense.org)
Copyright (c) 2014-2018 Rubicon Communications, LLC (Netgate)
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Set our operating platform
VERSION=
/bin/cat /etc/version
MIN_REALMEM_FOR_OPCACHE=512if pkg-static info -e php72; then
PHP_VER=7
EXTENSIONSDIR="/usr/local/lib/php/20170718/"
else
PHP_VER=5
EXTENSIONSDIR="/usr/local/lib/php/20131226/"
fiGrab amount of memory that is detected
if [ -f /var/log/dmesg.boot ]; then
AVAILMEM=/bin/cat /var/log/dmesg.boot |/usr/bin/awk '/avail memory/ { memory=($4 / 1048576); printf("%0.0f\n", memory); exit}'
else
AVAILMEM=/sbin/dmesg -a |/usr/bin/awk '/avail memory/ { memory=($4 / 1048576); printf("%0.0f\n", memory); exit}'
fi -
@emil It looks correct. What happens if you execute that script?
/etc/rc.php_ini_setup
-
Here is crash report PHP_errors.zip
-
@emil can you share /etc/rc.php_ini_setup with me? even send it to my email renato at netgate dot com.
and please confirm which pfSense version you are running
-
@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
-
-
-
-