[19:59] <tf23> anyone around? yesterday i posted a link to a
pastebin of reskey from site that the bookmarks don't work on. here's
the httpd error:
[19:59] <tf23> [Tue Apr 4 22:26:59 2006] [error] /
bookmark.pl:Slash::ResKey::Key:/usr/lib/perl5/site_perl/5.8.6/Slash/
ResKey/Key.pm:670:No checks for touch / bookmark
[19:59] <tf23> [Tue Apr 4 22:26:59 2006] [error] Which was
called by:Slash::ResKey::Key:/usr/lib/perl5/site_perl/5.8.6/Slash/
ResKey/Key.pm:338\n
[20:04] <tf23> seems like there should be 'use' in here:
[20:04] <tf23> mysql> select * from reskey_resource_checks
where rkrid=8;
[20:04] <tf23> Empty set (0.00 sec)
[20:04] <tf23> but i cannot find anything like that in sql/mysql/
upgrades
mysql> select * From reskey_resources where rkrid=8;
+-------+----------+
| rkrid | name |
+-------+----------+
| 8 | bookmark |
+-------+----------+
1 row in set (0.00 sec)
mysql> select * from reskey_resource_checks where rkrid=8;
Empty set (0.00 sec)
mysql> select * from reskey_vars where rkrid=8;
+-------+-----------------------+-------
+----------------------------------------------------+
| rkrid | name | value | description
|
+-------+-----------------------+-------
+----------------------------------------------------+
| 8 | duration_creation-use | 2 | min duration (in seconds)
between creation and use |
| 8 | duration_max-uses | 30 | how many uses per timeframe
|
| 8 | duration_uses | 30 | min duration (in seconds) between
uses |
| 8 | user_seclev | 2 | Minimum seclev to use resource
|
+-------+-----------------------+-------
+----------------------------------------------------+
4 rows in set (0.01 sec)
the plugin has a few items in it's mysql_schema.sql file:
http://cvs.sourceforge.net/viewcvs.py/slashcode/slash/plugins/
Bookmark/mysql_dump.sql?rev=1.3&view=auto
but still I've found nothing for the reskey checks.
since the plugin hasn't worked on 2 slash installs i've tried, and it's
new, i'm putting this under installtion, there's no 'plugins' category.
Logged In: YES
user_id=596132
The following reskey_resource_checks have been added, and
are in CVS. (assuming anonymous cvs is syncing again)
INSERT INTO reskey_resource_checks (rkrcid, rkrid, type,
class, ordernum) VALUES (NULL,
8,'use','Slash::ResKey::Checks::Post',151);
INSERT INTO reskey_resource_checks (rkrcid, rkrid, type,
class, ordernum) VALUES (NULL,
8,'all','Slash::ResKey::Checks::Duration',601);
INSERT INTO reskey_resource_checks (rkrcid, rkrid, type,
class, ordernum) VALUES (NULL
,8,'all','Slash::ResKey::Checks::User',101);
However I'm not sure that's your problem as I had a test
site w/o those and it was working fine.
Is there any problem with your copy of the ResKey plugin?
What do you get if you run:
perl -MSlash::Test=virtuser -we 'print
Dumper(getObject("Slash::ResKey"))'
Logged In: YES
user_id=52587
I don't think there's anything wrong with the ResKey plugin on the site/
machine, because that'd shut down a large part of site. Here's the output:
perl -MSlash::Test=whatis -we 'print Dumper(getObject("Slash::ResKey"))'
$VAR1 = bless( {
'virtual_user' => 'whatis'
}, 'Slash::ResKey' );
I put those missing INSERT's into it's db. After that, the plugin now seems to
work, atleast it saved a bookmark and no errors in the apache logs :)
http://whatswrongwiththe.us/~abelincoln/bookmarks
Thanks!