[index] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] help with "Can't use string ("xxxx") as an ARRAY ref"

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


[EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref"

From: Yuri <yurj AT alfa.it>
Date: Thu, 02 Jul 2009 18:08:07 +0200


Threading: [EP-tech] help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
http://trac.eprints.org/trac/ticket/2941


    subject input field component does not work with non-multiple subjects


Now I get it... still unfixed? :-(

How can I convert my single to multiple? Thanks...

Yuri ha scritto:
> [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
>


[EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref"

From: Yuri <yurj AT alfa.it>
Date: Mon, 06 Jul 2009 12:51:06 +0200


Threading: [EP-tech] help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Any idea? :-/


Yuri ha scritto:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** EPrints community wiki - http://wiki.eprints.org/
> http://trac.eprints.org/trac/ticket/2941
>
>
>     subject input field component does not work with non-multiple subjects
>
>
> Now I get it... still unfixed? :-(
>
> How can I convert my single to multiple? Thanks...
>
> Yuri ha scritto:
>   
>> [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
>>
>>     
>
>   


[EP-tech] Re: help with "Can't use string ("xxxx") as an ARRAY ref"

From: Yuri <yurj AT alfa.it>
Date: Thu, 09 Jul 2009 09:06:53 +0200


Threading: [EP-tech] help with "Can't use string ("xxxx") as an ARRAY ref" from yurj AT alfa.it
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Can I convert to a multiple, run update_database_structure and move the 
data over on mysql? This should work, I think.

Yuri ha scritto:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** EPrints community wiki - http://wiki.eprints.org/
> Any idea? :-/
>
>
> Yuri ha scritto:
>   
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>> *** EPrints community wiki - http://wiki.eprints.org/
>> http://trac.eprints.org/trac/ticket/2941
>>
>>
>>     subject input field component does not work with non-multiple 
subjects
>>
>>
>> Now I get it... still unfixed? :-(
>>
>> How can I convert my single to multiple? Thanks...
>>
>> Yuri ha scritto:
>>   
>>     
>>> [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
>>>
>>>     
>>>       
>>   
>>     
>
>   


[index] [options] [help]