Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    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
    2 Posts 2 Posters 802 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.
    • S
      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
        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.