Re: [greenstone-users] Build error with GenericList classifier

From Arthur R. Belanger
DateWed, 22 Feb 2006 09:01:04 -0500
Subject Re: [greenstone-users] Build error with GenericList classifier
In-Reply-To (Pine-LNX-4-44-0602221752330-32336-100000-fornax-it-iitb-ac-in)
I have gotten a similar error when using a locally developed plugin that
works fine with version 2.50 when I tried to use it in 2.62. I added a
"use diagnostics;" statement to (2.62) to get the following
detailed error message:

Can't coerce array into hash at
/usr/local/gsdl/perllib/plugins/ line
376 (#1)
(F) You used an array where a hash was expected, but the array has no
information on how to map from keys to array indices. You can do that
only with arrays that have a hash reference at index 0.

Uncaught exception from user code:
Can't coerce array into hash at
line 376.
at /usr/local/gsdl/perllib/ line 67
plugin::load_plugin_for_info('DCPlug') called at
t/ line 176
main::main() called at /usr/local/gsdl/bin/script/
line 211

Line 376 of is:
if(defined $arguments){

Was there some basic change in the way arguments are passed to plugins
(and classifiers) between 2.50 and 2.6x? If so, can you tell my what I
may need to do to convert my plugin to work with 2.6x?

Thanks very much

Chaitra Rao wrote:

> I'm unable to use GenericList classifier bundled with the greenstone
>installation (v2.62).
>I get the foll error while building:
>Command: E:Program Filesgs2.62binwindowsperlbinPerl.exe -S
>E:Program -gli -language en
>-collectdir E:Program Filesgs2.62collect -removeold aaqua
>> Can't coerce array into hash at E:Program
>Filesgs2.62/perllib/classify/ line 234.
>> Command failed.
>The line no. 234 on corresponds to the foll line:
>if(defined $arguments){
>Please help!
>Thanks in advance
>greenstone-users mailing list

Arthur Belanger
Medical Library System Manager
Information Systems
Yale University School of Medicine
100 Church Street South, Suite 124
Mailcode 138
New Haven, CT 06519

(203) 785-6928
(203) 737-2859, fax


"ITS-Med: Connecting people and technology"