dryphp / bitcoin.php

Bitcoin library for PHP.
http://www.nostate.com/3962/bitcoin-php-a-php-library-for-bitcoin/
242 stars 115 forks source link

Fatal error: Uncaught BitcoinClientException: [0]: Scheme must be http or https thrown in on line 0 #7

Open Tindalos opened 12 years ago

Tindalos commented 12 years ago

This appears on cron run. Any ideas?

Drupal 6-x.x, with curl and both RPCs present.

mikegogulski commented 12 years ago

How are you invoking it? Doc for the constructor is at https://github.com/mikegogulski/bitcoin-php/blob/master/src/bitcoin.inc#L259

Tindalos commented 12 years ago

Solution found. As per here: http://groups.drupal.org/node/162454

the trick is to edit the file located @ [$DRUPAL_HOME]/sites/all/modules/uc_bitcoin/uc_bitcoin.module and change each of the lines that call ::

'include_once("bitcoin.inc");

and change it to the FULL-PATH to your bitcoin-php/bitcoin.inc file, on godaddy for me it is :: 'include_once("/home/content/XX/XXXXXX/html/sites/all/libraries/bitcoin-php/src/bitcoin.inc");

Now to deal with "Fatal error: Class 'BitcoinClient' not found in C:\foo\modules\uc_bitcoin\uc_bitcoin.module on line 251"