Solved

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

Posted on 2008-06-23
4
4,193 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

831 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