Re: [greenstone-devel] AZCompactList.pm error

From Katherine Don
DateFri, 03 Dec 2004 13:21:30 +1300
Subject Re: [greenstone-devel] AZCompactList.pm error
In-Reply-To (71E37EF6B7DCC1499CEA0316A256832801D4BBB3-loki-wc-globexplorer-net)
Hi Greg

Did it actually die or just finish? "*** creating auxiliary files " is
generally the last line that you see when building.

if you rename the building directory to index, does your collection run?

Cheers,
Katherine

Gregory S. Williamson wrote:
> I solved some earlier problems by upgrading to the most recent stable release of greenstone (and then upgrading perl to v5.8.5 by building it on this Redhat Linux box, version 2.4.20-8). Current version of Greenstone would seem to be:
> [root@localhost gsdl]# pwd
> /usr/local/gsdl
> [root@localhost gsdl]# more VERSION
> Version: 2.52
> Media: Web
> OS: linux
> Language: en
> Option: Source
>
> I ran mkcol.pl and import.pl happily (both with minimum parameters), but buildcol.pl ran for a while and then died with:
> ...
> GAPlug: processing HASH013e/5d0cd055.dir/doc.xml
> GAPlug: processing HASH01ac/28bc34f5.dir/doc.xml
> GAPlug: processing HASH02b1.dir/doc.xml
> GAPlug: processing HASH0149.dir/doc.xml
> Use of uninitialized value in array dereference at /usr/local/gsdl/perllib/classify/AZCompactList.pm line 852.
> Use of uninitialized value in concatenation (.) or string at /usr/local/gsdl/perllib/classify/AZCompactList.pm line 854.
>
> *** creating auxiliary files
>
> ===========
>
> The last indicated directory/document seem ok to my untutored eye.
>
> The specific lines referred to in the .pm file are:
> if (scalar (@currentOIDs) < $min) {
> my ($newkey) = $lastkey =~ /^(.)/;
> @currentOIDs = (@{$compactedhash->{$lastkey}}, @currentOIDs); # <-- this
> delete $compactedhash->{$lastkey};
> @{$compactedhash->{"$newkey-$currentlastletter"}} = @currentOIDs; # <-- And this
> } else {
> if ($currentfirstletter eq $currentlastletter) {
> @{$compactedhash->{$currentfirstletter}} = @currentOIDs;
> } else {
> @{$compactedhash->{"$currentfirstletter-$currentlastletter"}} = @currentOIDs;
> }
>
>
> ============
>
> The collection config file (basically taken from an earlier version of this project and gsdl) looks like this:
>
> creator ccarlsson@shapingsf.org
> maintainer ccarlsson@shapingsf.org
> public true
>
> indexes document:text document:Title document:Source document:Subject document:Author document:Period
> defaultindex document:text
>
> plugin ZIPPlug
> plugin GAPlug
> plugin TEXTPlug
> plugin HTMLPlug -metadata_fields Subject,Title,Author,Period,BannerImage
> plugin EMAILPlug
> plugin PDFPlug
> plugin RTFPlug
> plugin WordPlug
> plugin PSPlug
> plugin ArcPlug
> plugin RecPlug
>
> classify AZList -metadata Title
> classify AZList -metadata Source
> classify AZCompactList -metadata Subject -mingroup 1
> classify AZCompactList -metadata Author -mingroup 1 -buttonname "Contributors"
> classify AZCompactList -metadata Period
>
> format DocumentImages false
> format DocumentContents false
> format DocumentHeading '<img src="/gsdl/images/[BannerImage].jpg">'
> format DocumentText '[Text]'
>
> collectionmeta collectionname "Beta Version of Shaping San Francisco on Linux"
> collectionmeta iconcollection "/gsdl/images/top_banner-2.gif"
> collectionmeta collectionextra ""
> collectionmeta .document:text "text"
> collectionmeta .document:Title "titles"
> collectionmeta .document:Source "filenames"
> collectionmeta .document:Subject "subjects"
> collectionmeta .document:Period "periods"
>
> =========
>
> The offending XML file (if that is indeed part of the problem) is attached.
>
> Any help or advice would be most welcome!
>
> Thanks for your patience,
>
> Greg Williamson
>
>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE Archive SYSTEM "http://greenstone.org/dtd/Archive/1.0/Archive.dtd">
> <Archive>
> <Section>
> <Description>
> <Metadata name="lastmodified">1101265258</Metadata>
> <Metadata name="gsdlsourcefilename">import/italian1$t_prnt_pgnm$italflyer_itm.html</Metadata>
> <Metadata name="gsdldoctype">indexed_doc</Metadata>
> <Metadata name="Language">en</Metadata>
> <Metadata name="Encoding">iso_8859_1</Metadata>
> <Metadata name="Plugin">HTMLPlug</Metadata>
> <Metadata name="FileSize">935</Metadata>
> <Metadata name="Source">italian1$t&amp;#095;prnt&amp;#095;pgnm$italflyer&amp;#095;itm.html</Metadata>
> <Metadata name="Title">italflyer_itm italflyer_itm WORKERS! Procreate Only When You Like! ...</Metadata>
> <Metadata name="FileFormat">HTML</Metadata>
> <Metadata name="URL">http://italian1$t_prnt_pgnm$italflyer_itm.html</Metadata>
> <Metadata name="Identifier">HASH01491789cb2383d9909f228d</Metadata>
> </Description>
> <Content>&lt;HTML&gt;
> &lt;HEAD&gt;
> &lt;/HEAD&gt;
> &lt;HTML&gt;
>
> &lt;TITLE&gt;italflyer_itm&lt;/TITLE&gt;italflyer_itm
>
> &lt;P&gt;
> &lt;B&gt;WORKERS! Procreate Only When You Like!
> &lt;P&gt;
> Numerous families increase the misery that is great already among the poor masses of workers. The capitalist vampires, by means of the priest, morally condemn the use of scientific means in order not to have children. This they do by threatening &quot;hell&quot; to those who intelligently refuse to put into the world numerous &quot;unlucky&quot; (unfortunate) ones. And by means of politicians, judges and jailers they diffuse among the people scientific knowledge. and indeed they tried, a short time ago, Margherita Sanger. They convicted Anderlini in the state of Illinois. A few days ago they arrested Emma Goldman in New York, and they threaten trouble to all those who have the courage to tell you the truth and let you know this practical means to prevent conception.&lt;/B&gt;&lt;/P&gt;
>
>
> </Content>
> </Section>
> </Archive>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel