Jump to content
Sign in to follow this  
triznic

cURL error

Recommended Posts

I keep getting this as I test out my site.

 

Fatal error: Call to undefined function: curl_init() in /home/brightst/public_html/includes/modules/shipping/upsxml.php on line 668

 

Help!! lol

Share this post


Link to post
Share on other sites

Ask your host if they have curl installed. If not, they need to install it or you can't use that module.

 

Jack

Share this post


Link to post
Share on other sites

DANG!

 

Seriously? I run a virtual server on GoDaddy. I have access to cPanel but cant find in there where it would be. I went to php configuration editor but it was not in there. I am not sure how to install this?

Share this post


Link to post
Share on other sites
DANG!

 

Seriously? I run a virtual server on GoDaddy. I have access to cPanel but cant find in there where it would be. I went to php configuration editor but it was not in there. I am not sure how to install this?

I don't think you can do it in cPanel. You should use WebHost Manager (WHM), since you said that you have a virtual server... In WHM you can recompile Apache with cURL.

Share this post


Link to post
Share on other sites

Just wanted to add that after a couple days trying to find a way around my lack of cURL on my server, I found this and it straightened me right out. Wanted to put it out there as I did not see it when I was on here looking.

 

includes/modules/shipping/upsxml.php

 

// when cURL is not compiled into PHP (Windows users, some Linux users)

// you can set the next variable to "1" and then exec(curl -d $xmlRequest, $xmlResponse)

// will be used

$this->use_exec = '1'; <------ changed that from '0'

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×