Solved

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

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 look for a specific file type in a local or remote server directory using PHP.

729 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