From: Yuri <yurj AT alfa.it>
Date: Thu, 02 Jul 2009 17:56:51 +0200
| Threading: | • This Message → [EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it → [EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it → [EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it |
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
[Thu Jul 02 17:47:30 2009] [error] Can't use string ↵
("cpmetinsegfilo")
as an ARRAY ref while "strict refs" in use at
/usr/share/eprints3/perl_lib/EPrints/Plugin/InputForm/Component/Field/Subject.pm
line 88.\n
I've a field defined as:
{
'top' => 'scuole_specializzazione',
'render_input' => undef,
'browse_link' => 'scuole_specializzazione',
'name' => 'scuole_specializzazione',
'multiple' => 0,
'type' => 'subject'
},
which is used for the type "scuole_di_specializzazione":
<epc:if test="type = 'scuole_di_specializzazione'">
<component type='Field::Subject'><field
ref="scuole_specializzazione" /></component>
</epc:if>
In Eprints 3. The data has been migrated from an Eprints 2, and
correctly loaded, I can see it in mysql.
But when I try to display the stage where that field is, I get the error:
[Thu Jul 02 17:47:30 2009] [error] Can't use string ↵
("cpmetinsegfilo")
as an ARRAY ref while "strict refs" in use at
/usr/share/eprints3/perl_lib/EPrints/Plugin/InputForm/Component/Field/Subject.pm
line 88.\n
I've that field in mysql:
mysql> describe eprint;
+-------------------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default |
Extra |
+-------------------------------+--------------+------+-----+---------+-------+
[...]
| scuole_specializzazione | varchar(255) | YES | MUL | NULL
| |
[...]
mysql> select scuole_specializzazione from eprint group by
scuole_specializzazione;
+--------------------------------------+
| scuole_specializzazione |
+--------------------------------------+
| NULL |
| altre |
| metodologie_chimiche |
| scuola_specializzazione_bibliotecari |
+--------------------------------------+
4 rows in set (0.10 sec)
I can't understand where is the error... :)
Please help :P