From: shane <sh...@lo...> - 2007-11-29 13:44:04
|
I said *may* be a newer version. I typically goto http://slashcode.cvs.sourceforge.net/slashcode/slash/ and either use the dropdown to look through the latest tags or tail -10 http://slashcode.cvs.sourceforge.net/slashcode/slash/sql/mysql/upgrades?view=log From that end of file, it looks like T_2_5_0_184 was created on 2007-11-14 and is the latest T-tag. Note, like the INSTALL says T-tags come out at intervals. A patch could have been applied to CVS-HEAD and you'd not know it until you upgraded to the next T-Tag. (Just an FYI, I don't think a patch has been committed yet, here's why): Since you are running what's essentially the latest code, here's how I'd fix your problem: kong:~ shane$ cd /usr/local/src/slash/current.untouched/ kong:current.untouched shane$ cvs update -dP kong:current.untouched shane$ grep message_deliverymodes sql/mysql/ upgrades DROP TABLE IF EXISTS message_deliverymodes; CREATE TABLE message_deliverymodes ( INSERT INTO message_deliverymodes VALUES (-1, 'No Messages', 0); INSERT INTO message_deliverymodes VALUES (0, 'E-mail', 1); INSERT INTO message_deliverymodes VALUES (1, 'Web', 2); INSERT INTO message_deliverymodes VALUES (2, 'IM', 4); UPDATE message_deliverymodes SET name = 'AIM' WHERE code = 2; INSERT INTO message_deliverymodes (code, name, bitvalue) VALUES (3, 'Mobile', 8); I'd take those inserts and apply them to your DB. then restart httpd and slashd. That should take care of it for you. It looks like whomever did the code for the AIM and/or MOBILE channels never updated the mysql dump in Slash::Messages kong:current.untouched shane$ grep 'INSERT INTO message_deliverymodes' * -r plugins/Messages/dump:INSERT INTO message_deliverymodes VALUES (-1, 'No Messages', 0); plugins/Messages/dump:INSERT INTO message_deliverymodes VALUES (0, 'E- mail', 1); plugins/Messages/dump:INSERT INTO message_deliverymodes VALUES (1, 'Web', 2); sql/mysql/upgrades:INSERT INTO message_deliverymodes VALUES (-1, 'No Messages', 0); sql/mysql/upgrades:INSERT INTO message_deliverymodes VALUES (0, 'E- mail', 1); sql/mysql/upgrades:INSERT INTO message_deliverymodes VALUES (1, 'Web', 2); sql/mysql/upgrades:INSERT INTO message_deliverymodes VALUES (2, 'IM', 4); sql/mysql/upgrades:INSERT INTO message_deliverymodes (code, name, bitvalue) VALUES (3, 'Mobile', 8); feel free to file a bug or append something to the existing bug explaining all this for them (incase they don't see this email message) Shane On Nov 29, 2007, at 4:19 AM, Cristian Falcas wrote: > I mentioned the version in my second email: "I'm using T_2_5_0_184 > revision." > > There is a newer version? Can you tell me how can I get it via cvs? > > Thank you. > > On Nov 28, 2007 8:12 PM, shane <sh...@lo...> wrote: >> >> On Nov 27, 2007, at 9:19 AM, Cristian Falcas wrote: >> >>> I found that in Messages.pm I have a problem: >>> $msg->{user}{prefs}{$msg->{code}} and >>> $self->getMessageDeliveryByName("Mobile")) are both empty. >> >> Bug apparently filed for this back in August: >> >> http://sourceforge.net/tracker/index.php?func=detail&aid=1774945&group_id=4421&atid=104421 >> >> I didn't see where you state what version of Slashcode you're using. >> It's possible if you are using an older version, that a fix was >> committed and the bug was never updated. >> >> >> >> >> |