Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Upgrade 2.6.0 -> 2.7.0 : Uncaught Error: Call to undefined function g_get() in /etc/inc/config.lib.inc

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 4 Posters 1.3k Views 4 Watching
    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.
    • S Offline
      shturm
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • bmeeksB Offline
        bmeeks
        last edited by bmeeks

        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.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Arrrr
          last edited by

          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 filesystem
          • reboot
          • ifconfig # get my WAN network interface
          • dhclient igb0 # bring that interface online
          • ping 8.8.8.8 # confirm network up
          • pfSense-upgrade -d # force package/config resync
          • pkg-static clean -ay
          • pkg-static install -fy
          • pkg-static info pfSense-base # confirm I was on 2.7.0
          • pkg-static info pfSense # same, confirm on 2.7.0
          • pfSense-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!
          stephenw10S 1 Reply Last reply Reply Quote 0
          • stephenw10S Online
            stephenw10 Netgate Administrator @Arrrr
            last edited by

            @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 rehash then recheck. 2.7.0 is old at this point. The current CE version is 2.8.1.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy