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
Solved

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

Posted on 2008-06-23
4
4,196 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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

809 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