[Bins] problem with --sample file.jpg
Jérôme SAUTRET
jerome at sautret.org
Fri Aug 29 23:21:12 BST 2003
On Fri, Aug 29, 2003 at 09:43:07PM +0200, Jérôme SAUTRET wrote:
> On Sat, Aug 09, 2003 at 08:13:11AM +0200, Franck Collineau wrote:
> > Greetings,
> >
> > I'm using BINS 1.1.22 and i have a problem.
> > When i run bins with album and subalbums there is an error with the last
> > subalbum.
> > The album.xml of the last subalbum is performed by this command:
> > bins_edit -a -t 'MyTitle' --sample file.jpg --longdesc 'MyLongdesc'
> > --shortdesc "MyShortdesc"
> >
> > There is no problem if i omit --sample file.jpg
> > The error message is:
> > HTML::Template->new() : Unknown or unmatched TMPL construct at
> > /etc/bins/templates.default/subalbum.html : line 6. at
> > /usr/lib/perl5/vendor_perl/5.8.0/HTML/Template.pm line 2130.
> >
> > Is it a bug or did i do a mistake ?
>
> An user has reported the same problem, and it seems to happen in the
> following case :
>
> :> When I create a subalbum which uses an album.xml and in it the "sampleimage"
> :> field is used AND if this subalbum containing this is the last in the list I
> :> get following error:
> :> HTML::Template->new() : Unknown or unmatched TMPL construct at
> :> /etc/bins/templates.joi/subalbum.html : line 6. at
> :> /usr/lib/perl5/site_perl/5.8.0/HTML/Template.pm line 2130.
>
> But I really don't understand why for now. Still investigating...
OK, I still don't understand anything, but I know how to fix it.
You can add the following variable definition line 1824 in Template.pm
(in HTML::Template 2.08) :
my $a_stupid_variable_for_a_stupid_bug=$1;
$which = uc($1); # which tag is it
It seems that uc will fails otherwise. But why ????
Or you can add some quotes like that :
$which = uc("$1"); # which tag is it
or add a print :
print $1;
$which = uc($1); # which tag is it
or whatever...
If someone can explain me what's going on here...
--
Jérôme SAUTRET (Jerome at SAUTRET.org) http://SAUTRET.org
Key 0x95D463F3 fingerprint 3B69 3B60 4D32 B8DF 2BF3 8035 5036 D41A 95D4 63F3
More information about the Bins
mailing list