I'm running the latest version of the buddylist module on drupal 4.7.
Buddylist was working properly, but after being transfered to a new server, users can no longer be added or removed from buddylists.
No error message is given, it just takes no action.
I have tried all the fixes I have seen on the forums, tried several versions of buddylist and nothing has fixed it.
Has anyone else had this problem?
Does it have to do with the version of PHP I'm running? I believe it is PHP5.

Comments

robertdouglass’s picture

Component: Code » Miscellaneous
Category: bug » support
Priority: Critical » Normal

It's not a PHP5 issue since I've been developing with the latest 4.7 version on Drupal 4.7.3 and Drupal 4.7-CVS with PHP5 and have had no problems. I suspect a different problem, related to the move to the host, but am not in a position to know what that problem might be.

andygeorge’s picture

I installed a second drupal with a seperate database, and installed buddylist on it amd it works there.
I've tried deleting the buddylist and reinstalling it, but it didn't fix it. I tried manually deleting the tables for it in the database, but that only lead to errors. Is there someway to completely remove it so I can do a clean reinstall?
Maybe there is a compatibilty issue with the other modules I have enabled. Are any ones known to conflict with buddylist?

Popboard’s picture

Best bet would be to (in this order):
1. Drop 'buddylist,' 'buddylist_groups,' and 'buddylist_buddy_groups' from your database (all buddy data will be lost, but it's not much good if there's errors in your tables)
2. Disable the buddylist module.
4. Delete buddylist.module from your modules folder.
5. Run the following SQL:

CREATE TABLE `buddylist` (
  `uid` int(10) unsigned NOT NULL default '0',
  `buddy` int(10) unsigned NOT NULL default '0',
  `timestamp` int(11) NOT NULL default '0',
  `received` tinyint(1) NOT NULL default '0',
  UNIQUE KEY `uid-buddy-label` (`uid`,`buddy`),
  KEY `uid` (`uid`)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;

-- 
-- Table structure for table `buddylist_buddy_group`
-- 

CREATE TABLE `buddylist_buddy_group` (
  `uid` int(11) NOT NULL default '0',
  `buddy` int(11) NOT NULL default '0',
  `label_id` int(11) NOT NULL default '0',
  PRIMARY KEY  (`uid`,`buddy`,`label_id`)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;

-- 
-- Table structure for table `buddylist_groups`
-- 

CREATE TABLE `buddylist_groups` (
  `uid` int(11) NOT NULL default '0',
  `label_id` int(11) NOT NULL default '0',
  `label` varchar(255) NOT NULL default '',
  `visible` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`uid`,`label_id`)
) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;

6. Download the buddylist module tar.gz file.
7. Copy only the buddylist.module file to your modules folder.
8. Enable the buddylist module.

If you're using template.php with profile.tpl.php, you'll need to enter custom PHP to display links to friendship on the profiles.

You can test it by going to http://yoursite.com/?q=buddy/add/($user->uid)

Good luck

andygeorge’s picture

Status: Active » Fixed

alright, it works now, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)