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

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

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 2.0k 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.
  • M
    maxkalashnikov
    last edited by Dec 26, 2012, 8:54 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Dec 26, 2012, 9:30 PM Dec 26, 2012, 9:26 PM

      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 Dec 27, 2012, 12:22 AM

        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 Mar 18, 2013, 7:32 PM

          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.
            This community forum collects and processes your personal information.
            consent.not_received