Drupal version is 6.1, although it did the same thing in the 6.9 release I had installed before I upgraded.

I activate the modules, and my entire site errors out to this:

Fatal error: require_once() [function.require]: Failed opening required './bt_common.inc' (include_path='.:/usr/local/php5/lib/php') in /home/content/d/a/v/davidhojak/html/modules/bittorrent/bt_torrent/bt_torrent.module on line 14

Why am I getting this?!?!

Comments

bradfordcp’s picture

Did you follow the instructions in INSTALL.txt? The file bt_common.inc needs to be in the drupal root directory.

bradfordcp’s picture

Assigned: Unassigned » bradfordcp
Category: task » support
DavidHojak’s picture

I will attempt to reinstall, now that this has been pointed out to me.

I failed completely to see this in the install.txt document. I suck.

Will report back on how this goes

DavidHojak’s picture

Title: d14:failure reason22:Missing Key: info_hashe » This is the error I get when trying to install this thing.

Installed following the instructions explicitly, and it does not crash the site when enabled as it did before.

Edited .htaccess via Dreamweaver without issue.

Thank you for your guidance in identifying my oversight.

DavidHojak’s picture

Status: Active » Closed (fixed)
DavidHojak’s picture

Status: Closed (fixed) » Active

Returns error when opening announce.php =

d14:failure reason22:Missing Key: info_hashe

DavidHojak’s picture

Title: This is the error I get when trying to install this thing. » d14:failure reason22:Missing Key: info_hashe
bradfordcp’s picture

Title: This is the error I get when trying to install this thing. » d14:failure reason22:Missing Key: info_hashe

When accessing announce.php directly verify that you are passing all required variables in.

  $_required_keys = array('info_hash', 'peer_id', 'port', 'uploaded', 'downloaded', 'left'); // Line 34 of announce.php describing the required parameters

Are you seeing this in your browser or torrent client?

DavidHojak’s picture

When attempting to access announce.php via my browser, the error that returns is:

d14:failure reason22:Missing Key: info_hashe

View source shows only this error, no other returned output.

When you say to make sure that I'm passing all required variables in, what exactly are you suggesting I check or modify?

Are these changes to files or hard code that you're going to be suggesting?

DavidHojak’s picture

Title: d14:failure reason22:Missing Key: info_hashe » This is the error I get when trying to install this thing.

Returns error when opening announce.php =

d14:failure reason22:Missing Key: info_hashe

In the announce.php file itself, I do see this line, near the top of the document.

DavidHojak’s picture

Title: This is the error I get when trying to install this thing. » d14:failure reason22:Missing Key: info_hashe

Oops... accidentally changed title

bradfordcp’s picture

Announce.php is not meant to be accessed by the browser. This URL is called by the BitTorrent Client to look for peers. If you would like to see the output, pass in the required values as GET parameters. For example, if announce.php is complaining about a missing info_hash add it to the URL.

http://www.example.com/announce.php

would become

http://www.example.com/announce.php?info_hash=

be sure to include a valid info_hash after the '='. Again this is meant for the torrent client and as such it is encoded in such a way for the client to read. Please let me know if you have any more questions or concerns.

DavidHojak’s picture

Thank you for all your support. In this sense, I suppose that the client is functioning in some way.

Now that I have it installed and not erroring the site out, I suppose my challenge will be integrating the Bittorrent feature into my site. It is not apparent to me how to activate the tracker for use on my site, how end-user functionality is configured, or what interfaces exist within this module for customizing the user experience as far as displaying the section of the site the torrent tracker would appear in.

How does one go about configuring the end-user interface? Does one exist? Surely, it must!

Is there a block to add? Is there a section to activate? What controls I've found so far via the two configuration menus in the BitTorrent section of my admin panel do not refer to anything other than tracker settings. I see others have suggested some kind of how-to here.... I must say, the provided instructions leave a lot to the imagination.

Kudos for converting this over from 5 to 6, either way, and again, thank you for ALL of your support. I appreciate this level of assistance.

bradfordcp’s picture

Component: Code » Documentation

The torrent module adds a node type. A user with the appropriate permission can navigate to "create content" or http://example.com/node/add and select torrent. From here the user enters a title and description as well as uploads a .torrent file. This creates a node with a link to download the torrent. The tracker will automatically track all torrents that are pointed at it, and Drupal will keep track of all uploaded torrents regardless of whether or not they are being tracked by the site.

I realize now that this module is not as straightforward as I think it is (heck I wrote it :)). After this D6 port is complete I will work on comprehensive documentation that will encompass all of the various module aspects.

DavidHojak’s picture

Status: Active » Closed (fixed)

Thank you for your assistance.

I effectively seeded and and sending my first torrent this evening. Although there is some kind of passkey error on the torrent I've posted so far, I do not see that it's influencing my ability to send, or the abilities of others to receive it.

Thank you, Bradford!