Solved

Fatal error: Call to undefined function: curl_init() in

Posted on 2008-06-23
4
4,189 Views
Last Modified: 2013-12-13
We have CURL installed and working on another site but I cannot find out why it won't work on this same server.

Site is running 5.2.5
http://propaneva.com/info.php

This is the error

Fatal error: Call to undefined function: curl_init() in E:\Hosts\propaneva.com\wwwroot\store\vsadmin\inc\incfunctions.php on line 630

This is the start of Line 630

            exec($pathtocurl . ($cfcert != '' ? ' -E \'' . $cfcert . '\'' : '') . ' --data-binary \'' . str_replace("'","\'",$cfxml) . '\' ' . $cfurl, $cfres, $retvar);
            $cfres = implode("\n",$cfres);
      }else{
            if (!$ch = curl_init()) {
                  $cferrmsg = "cURL package not installed in PHP. Set \$pathtocurl parameter.";
                  $cfsuccess=FALSE;
            }else{
                  curl_setopt($ch, CURLOPT_URL, $cfurl);
                  if($cfcert != '') curl_setopt($ch, CURLOPT_SSLCERT, $cfcert);
                  curl_setopt($ch, CURLOPT_POST, 1);
                  curl_setopt($ch, CURLOPT_HEADER, 0);
                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
                  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
                  curl_setopt($ch, CURLOPT_POSTFIELDS, $cfxml);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                  if($settimeouts) curl_setopt($ch, CURLOPT_
0
Comment
Question by:cybersharks1
  • 3
4 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 21846455
the extension is not loaded on that other server. Check the php.ini for
extension=php_curl.dll
0
 

Author Comment

by:cybersharks1
ID: 21846581
How come it shows up in the INI file? under http://propaneva.com/info.php
php_curl.dll 233 KB is this not the right file or something?  I got from the curl website does a certain .dll work with a specific versions of PHP?

curl
cURL support       enabled
cURL Information       libcurl/7.16.0 OpenSSL/0.9.8a zlib/1.2.3
0
 

Author Comment

by:cybersharks1
ID: 21848392
Does anyone have any other suggestion?  I've tried everything and they cannot checkout the store is down because of this issue.  CURL is installed in the http://propaneva.com/info.php

curl
cURL support       enabled
cURL Information       libcurl/7.16.0 OpenSSL/0.9.8a zlib/1.2.3
0
 

Accepted Solution

by:
cybersharks1 earned 0 total points
ID: 21856271
the host was using a shared SSL and have the wrong version of PHP enabled in the VD thanks for the help
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now