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

    Call to undefined function curl_init() (bug #1918)

    General pfSense Questions
    3
    4
    2.0k
    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.
    • M
      maxkalashnikov
      last edited by

      I'm having the problem described in bug #1918, but that bug was rejected, saying to post to the Forum or mailing list, so here I am:

      Fatal error: Call to undefined function curl_init() in /etc/inc/pfsense-utils.inc on line 1457

      I get this in the firware update section, and it appears to be adversely affecting installing new packages and dynamic DNS.

      Does anyone have a workaround?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        pfSense version?
        Clean install or upgrade?
        Do you have packages installed?

        Have you tried the suggestions in http://redmine.pfsense.org/issues/1918 ?

        Steve

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          That means you're missing or have broken part of PHP itself. Usually that only happens when people mess around with pkg_add and their own custom things, though it's possible an unstable package could have somehow broken php5-curl. Applying a firmware update to the version you're already running will fix PHP, though it'd be good to know how you got it to that point in the first place, if there's a specific package that breaks php5-curl it needs to be removed or fixed.

          1 Reply Last reply Reply Quote 0
          • M
            maxkalashnikov
            last edited by

            I'm thinking that my pkg_add of a newer curl broke things at some point. Comparing to an absolutely clean installation, I discovered the following difference:

            
            diff php.ini php.ini.prev 
            27d26
            < extension=curl.so
            
            

            Fixing that fixed the issue.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.