I'm trying to implement the events plugin , using mysql ..  I receive
the following syslog 

error each time I so much as visit the plugins->events plugin tab. 

 

nfsen[3060]: PANIC Comm Server dies: Can't call method "prepare" on
unblessed reference at /usr/local/nfsen/plugins/Events.pm line 385,
<STDIN> line 13

 

I suspect the db related entries in the nfsen.conf file are at the root
of the problem, since

 The mysql related entries were commented out in the example posted to
the forum and 

  Most of the DBI examples I found on the web have format differences.. 

. .. My nfsen.conf  entries are 

 

@plugins = (

    # profile    # module

    [ '!',     'Events' ],

);

 

%PluginConf = (

        events  => {

        db_connection_string =>
"DBI:mysql:database=eventsdb;host=localhost;port=3306",

                        db_user         => "root",

                        db_passwd       => "xxxxxxxx",

        },

);

 

 

Line 385 in Events.pm is :

        my $query = $dbh->prepare("SELECT count(ev.event_id)
"._get_where_clause($opts)); 

 

Mysql shows no queries in its log, so I'm real sure this is dying at the
perl level 

Can someone spot a syntax error here, or post  a working  nfsen.conf
with  mysql ? 

 

Thank for a great application by the way .. 

 

                Mike D
--------------------------------------------------------
This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments.  Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to