Welcome, Guest
Please Login or Register.    Lost Password?

Call to undefined function curl_init()
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Call to undefined function curl_init()
#938
Call to undefined function curl_init() 7 Months, 1 Week ago Karma: 0
Using CB 1.2, when someone fills out the registration form and clicks on register, I get this:

Fatal error: Call to undefined function curl_init() in D:\Website\www\tvpb\plugins\system\cedit_blockdisposable.php on line 346

I went through and disabled feature by feature to see if it would solve the issue, but it did not. Anyone have a fix for this? I'm tired of all the spam I get.
bridaw12
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#939
Re:Call to undefined function curl_init() 7 Months, 1 Week ago Karma: 7
This message will be due to you not having cURL available in your PHP installation (php.net/manual/en/book.curl.php).

Due to the implementation of timeouts, cURL is required for Registration Validator. You should be able to ask your host to install/enable cURL (it is pretty much standard on most hosting solutions!).

If you aren't able to do this, let me know as I can make a version available that doesn't use cURL - however, it will not support timeouts which will have a detrimental effect on the sign-up process if one of the spam database sites is down (and this isn't an irregular occurrence).
purplepomegranite
Administrator
Posts: 663
graph
User Offline Click here to see the profile of this user
Location: Winchester, UK Birthday: 06/04
The administrator has disabled public write access.
 
#940
Re:Call to undefined function curl_init() 7 Months ago Karma: 0
Thank you for the quick response. I host my own Webserver, so I had direct access to enable the cURL extension. I can now register sucessfully.

Is there any good way to test the plugin to ensure that it's functioning correctly?
bridaw12
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#941
Re:Call to undefined function curl_init() 7 Months ago Karma: 7
To test Botscout functionality, you could go to Botscout and pick one of their recently caught email addresses (they have a list on the site). Try registering with it - you shouldn't be able to.

To test the internal list, just choose a disposable email address (e.g. anything@trashmail.net) - again, you shouldn't be able to register.

Same technique applies for any other parameters. If you set up logging (there are details on this forum for how to do this) then you can see what is happening that way, so will be able to tell if Registration Validator is doing it's job.
purplepomegranite
Administrator
Posts: 663
graph
User Offline Click here to see the profile of this user
Location: Winchester, UK Birthday: 06/04
The administrator has disabled public write access.
 
#942
Re:Call to undefined function curl_init() 7 Months ago Karma: 0
Sorry to be a bother again. Everything was working, then I got an e-mail saying that registration wasn't working. So, I checked registration, and when you hit submit, you get:

Code:

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of co mpression.

    *   Please contact the website owners to inform them of this problem.



When I disable the registration validator, everything works, though I'm again getting a ton of spam bots.

My assumption is that I have something else configured wrong on my server?

***UPDATED***

I've discovered that having gzip compression was causing my issues. Now, though registration goes through, but I get:

Notice: Undefined variable: returned_data in D:\Website\www\tvpb\plugins\system\cedit_blockdisposable.php on line 373

Notice: Undefined variable: returned_data in D:\Website\www\tvpb\plugins\system\cedit_blockdisposable.php on line 373

Notice: Undefined offset: 3 in D:\Website\www\tvpb\plugins\system\cedit_blockdisposable.php on line 376

Notice: Undefined offset: 5 in D:\Website\www\tvpb\plugins\system\cedit_blockdisposable.php on line 376

The line 376 errors were from not having my botscout key typed in correctly. The 373 also have something to do with botscout. Once diabled, they go away.
bridaw12
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/06 03:49 By bridaw12.
The administrator has disabled public write access.
 
#944
Re:Call to undefined function curl_init() 7 Months ago Karma: 7
You have your PHP error reporting to report notices - if this is disabled (i.e. on a production system you'd want error reporting disabled, usually), then the problem will be resolved (though your disabling Botscout also works of course).

I'll check the code - I probably can rewrite it so that it doesn't create notices under any circumstances.
purplepomegranite
Administrator
Posts: 663
graph
User Offline Click here to see the profile of this user
Location: Winchester, UK Birthday: 06/04
The administrator has disabled public write access.
 
#955
Re:Call to undefined function curl_init() 7 Months ago Karma: 7
Sorry, I've just checked again as I am working on RV2 ready for release, and there is actually a bug in these two lines. I have corrected it in v1.2.9, which will be available within an hour or so of this posting.
purplepomegranite
Administrator
Posts: 663
graph
User Offline Click here to see the profile of this user
Location: Winchester, UK Birthday: 06/04
The administrator has disabled public write access.
 
Go to topPage: 1
Copyright © 2009 www.cedit.biz. All rights reserved.