On 7/22/14, Monica Mora <monica.joana11(a)gmail.com> wrote:
Hi all
I was using the GWToolset (on Commons) to do a batch upload and got this
message :
PHP fatal error in
/usr/local/apache/common-local/php-1.24wmf13/includes/OutputPage.php line
1296:
Call to a member function getText() on a non-object
Previously, I did an upload test with one file and went well:
https://commons.wikimedia.org/wiki/File:Mochila_Cangrejos_de_colores.jpg
This is a sample code of my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<records>
<record>
<URL>http://mochila_images.s3.amazonaws.com/aaa008.jpg</URL>
<mochila_titulo>Mochila_Cangrejos de colores</mochila_titulo>
<description>Cangrejo Halloween en la Isla Iguana, Los
Santos</description>
<author>José Manuel Castrellon</author>
<source>Fundación Almanaque Azul</source>
<mochila_relacion_programa_educativo>{{Information
field|name=mochila_relacion_programa_educativo|value=Los seres vivos y su
ambiente}}</mochila_relacion_programa_educativo>
<mochila_provincia>{{Information field|name=mochila_provincia|value=Los
Santos}}</mochila_provincia>
<mochila_distrito>{{Information
field|name=mochila_distrito|value=Pedasí}}</mochila_distrito>
<mochila_corregimiento>{{Information
field|name=mochila_corregimiento|value=Mariabé}}</mochila_corregimiento>
<mochila_lugar>{{Information field|name=mochila_lugar|value=Isla
Iguana}}</mochila_lugar>
<Location>{{Location|7.63|-80.00|PA-7>}}</Location>
<mochila_georef_type>{{Information
field|name=mochila_georef_type|value=Centroide}}</mochila_georef_type>
<date>-</date>
<Category>Gecarcinus quadratus</Category>
<mochila_ecosistema>{{Information
field|name=mochila_ecosistema|value=}}</mochila_ecosistema>
<mochila_grupos_humanos>{{Information field|name=mochila_grupos
humanos|value=}}</mochila_grupos_humanos>
<mochila_palabras_clave>{{Information
field|name=mochila_palabras_clave|value=Animal, Crustáceo, Cangrejo,
Isla}}</mochila_palabras_clave>
<mochila_tema>{{Information field|name=mochila_tema|value=Interacción
hombre- ambiente}}</mochila_tema>
<mochila_paisaje>{{Information
field|name=mochila_paisaje|value=Natural}}</mochila_paisaje>
<mochila_nombre_comun>{{Information
field|name=mochila_nombre_comun|value=Cangrejo de mangle, cangrejo de
tierra, cangrejo hóloween}}</mochila_nombre_comun>
<mochila_codigo_admin>{{Information
field|name=mochila_codigo_admin|value=70503}}</mochila_codigo_admin>
<mochila_geologia>{{Information
field|name=mochila_geologia|value=Sedimentarias}}</mochila_geologia>
<mochila_cuenca>{{Information
field|name=mochila_cuenca|value=}}</mochila_cuenca>
<mochila_SINAP>{{Information field|name=mochila_SINAP|value=R.V.S. Isla
Iguana}}</mochila_SINAP>
</record>
</records>
I appreciate any help.
Monica Mora
Hi Monica.
This issue appears to be caused by telling gwtoolset to use a category
with an invalid name. This could happen if the category name has
characters like '|', '[', or ']' in it ({ or } is also not allowed
but
should generate a different error). Certain other things aren't
allowed but are more obscure, such as a title starting with '../', a
title starting with an interwiki prefix, etc. A title consisting of
only spaces is also not allowed.
Its hard to say why precisely the category was rejected without
knowing what the category name was (For the record, 'Gecarcinus
quadratus' is perfectly valid, so it wasn't that).
Come Tuesday next week, there will be a sane error message instead of
the giant "Call to a member function getText() on a non-object"
explosion that you're experiencing.
--bawolff