Welcome, Guest
Username Password: Remember me

Call to undefined function curl_init()
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Call to undefined function curl_init()

Call to undefined function curl_init() 1 year, 12 months ago #938

  • bridaw12
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • 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.

Re:Call to undefined function curl_init() 1 year, 12 months ago #939

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).

Re:Call to undefined function curl_init() 1 year, 12 months ago #940

  • bridaw12
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • 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?

Re:Call to undefined function curl_init() 1 year, 12 months ago #941

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.

Re:Call to undefined function curl_init() 1 year, 12 months ago #942

  • bridaw12
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • 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:

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

    *   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.
Last Edit: 1 year, 12 months ago by bridaw12.

Re:Call to undefined function curl_init() 1 year, 12 months ago #944

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.

Re:Call to undefined function curl_init() 1 year, 12 months ago #955

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.
  • Page:
  • 1
Time to create page: 0.24 seconds
Copyright © 2009 www.cedit.biz. All rights reserved.