Upgrade 2.6.0 -> 2.7.0 : Uncaught Error: Call to undefined function g_get() in /etc/inc/config.lib.inc
-
After upgrade to 2.7.0 my pfSense install is basically wedged. I see in the console a stack trace that starts with
Fatal error: Uncaught Error: Call to undefined function g_get() in /etc/inc/config.lib.inc:195
How can I recover?
I can access the shell. -
Your upgrade did not complete successfully. Apparently you still have the older version of the PHP code on your system. The code in the file referenced in your error changed between versions 2.6 and 2.7 of pfSense. So, some of your system got updated, but not everything it would appear because the new
g_get()function is not on your system.At this point I would copy off your
config.xml(or access your most recent backup if you have one) and reinstall using a downloaded 2.7.0 CE image. -
If you're in this situation try running the following:
pkg-static upgrade -f# force reinstall of every package even if it thinks it's current
I did that and my system came online again.
Prior to that I was trying all sorts of other options including in order:
fsck -y /# because I thought my install was broken by corrupted filesystemrebootifconfig# get my WAN network interfacedhclient igb0# bring that interface onlineping 8.8.8.8# confirm network uppfSense-upgrade -d# force package/config resyncpkg-static clean -aypkg-static install -fypkg-static info pfSense-base# confirm I was on 2.7.0pkg-static info pfSense# same, confirm on 2.7.0pfSense-upgrade -d# check for new upgrades, nothing already on "latest" 2.7.0- at this point I was still seeing
Call to undefined function g_get() pkg-static upgrade -f# force reinstall of every package even if it thinks it's current-- this worked!
-
@Arrrr said in Upgrade 2.6.0 -> 2.7.0 : Uncaught Error: Call to undefined function g_get() in /etc/inc/config.lib.inc:
pfSense-upgrade -d # check for new upgrades, nothing already on "latest" 2.7.0
Run
certctl rehashthen recheck. 2.7.0 is old at this point. The current CE version is 2.8.1.
Privacy Policy · Cookie Policy