Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-23
4
Medium Priority
?
4,209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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‚Ķ
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

688 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