uc_bitcoin and bitcoin.inc, error - any suggestions?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
agentdcooper's picture

hello all,

I am attempting to get uc_bitcoin to work with drupal (6.20 -- havent fully updated to 6.22 just yet). I have configured ubercart just as specified @ https://github.com/mikegogulski/uc_bitcoin - yet I get an error everytime cron runs =>

warning: include_once(bitcoin.inc) [function.include-once]: failed to open stream: No such file or directory in [...]/html/sites/all/modules/uc_bitcoin/uc_bitcoin.module on line 250.
warning: include_once() [function.include]: Failed opening 'bitcoin.inc' for inclusion (include_path='.:/usr/local/php5/lib/php') in [...]/html/sites/all/modules/uc_bitcoin/uc_bitcoin.module on line 250.

at line 250, there is an include_once("bitcoin.inc"); line. so my question is where is the bitcoin.inc file?! that seems to be the root issue. I tried to put the bitcoin.inc file from https://github.com/mikegogulski/bitcoin-php but get an Exception error. I just cant seem to get this to work due to the bitcoin.inc file is not there... does anyone have this working with drupal6? any help/suggestions are welcome,

thanks much!

Comments

works now!

agentdcooper's picture

ok, here is how I fixed it (the last piece of the puzzle provided by the kind person who runs iusecoins.com, I <3 u man!) ::

  • create [$DRUPAL_HOME]/sites/all/libraries folder
  • obtain libraries module, and install as directed
  • obtain bitcoin-php and place it in [$DRUPAL_HOME]/sites/all/libraries folder (so your folder structure should look like => [$DRUPAL_HOME]/sites/all/libraries/bitcoin-php/src/bitcoin.inc (+ the includes and test folders will reside in the same folder as bitcoin.inc)
  • obtain uc_bitcoin module and install as specified
  • 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");

good 2 go. works 4 me!

New error

Satori42's picture

Very effective advice, agentdcooper!

Though I'm now getting "Fatal error: Class 'BitcoinClient' not found in [foo]\modules\uc_bitcoin\uc_bitcoin.module on line 251"

Any ideas?

check the latest releases

dgtlmoon's picture

check the latest releases from the uc_bitcoin project page

Blockchain (Bitcoin & Beyond)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week