dbi /dbd-mysql module causing plugin to hang?

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
gil
Noob
Noob
Posts: 5
Joined: 27 Jun 2008, 00:49
Noob?: No

dbi /dbd-mysql module causing plugin to hang?

#1 Post by gil »

Installed the latest version of ActivePerl and modified openkore.pl to include the new paths.
VisualKore console
#############################################################
*** VisualKore 2.0.5.3 - Custom Ragnarok Online client ***
*** http://www.visualkore-bot.com/ ***

Loading plugin plugins/db.pl...

(never gets past this point)



Contents of db.pl:
#############################################################
package db;

use Globals;
use strict;
use Plugins;
use Settings;
use DBI;


return 1;


However, when I comment out use DBI; it does not hang and proceeds to load macro.pm, etc. Is anyone familiar with this? I'd greatly appreciate it if someone could shed some light on this.

Thanks

Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: dbi /dbd-mysql module causing plugin to hang?

#2 Post by Bibian »

use 'use Mysql;'

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: dbi /dbd-mysql module causing plugin to hang?

#3 Post by sli »

I'd use SQLite so I don't have to depend on an external server. Then again I'm (apparently) a heretic.
cs : ee : realist

edelache
Noob
Noob
Posts: 1
Joined: 23 Oct 2009, 19:08
Noob?: No

Re: dbi /dbd-mysql module causing plugin to hang?

#4 Post by edelache »

Has anyone found a resolution to this? I believe the reason for the hang comes when the CGI writes too much to stderr. See this link https://issues.apache.org/bugzilla/show ... i?id=22030. I'm learning perl as I go so any help on this issue would be nice!

Thanks

doughnuts
Human
Human
Posts: 27
Joined: 25 Mar 2010, 23:03
Noob?: No

Re: dbi /dbd-mysql module causing plugin to hang?

#5 Post by doughnuts »

any solution for this? I remember there was a plugin YAMDB and uses DBI to access sql database. It's not available and I decided to write my own but currently I'm stuck with this. Openkore loads and never gives error. I tried to use 'use SQL' but the problem is it got stucks when it reads 'read DBI'.

Locked