[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] Google map export error

From: Liang Zhong <lz.fcla AT gmail.com>
Date: Fri, 19 Jun 2009 14:52:13 -0400


Threading:      • This Message
             [EP-tech] Re: Google map export error from Samuel.Moffatt AT usq.edu.au

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

--002215046c6fcd8455046cb80588
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,
I tried to install the plugin of export in google map.
After I finished all the required steps, I did a search and tried to export
in google map. Then Internal Server Error is return and the apache error log
shown something like:

[Fri Jun 19 14:44:05 2009] [error] Can't call method "getFirstChild" 
on an
undefined value at /var/eprints/perl_lib/EPrints/Plugin/Export/MapPlot.pm
line 147.\n
[eprints AT eprints3 logs]$ tail -50 error_log
http://ws.geonames.org/findNearbyPlaceName?lat=38.2052&lng=122.572
[Fri Jun 19 14:39:57 2009] [error] Can't call method "getFirstChild" 
on an
undefined value at /var/eprints/perl_lib/EPrints/Plugin/Export/MapPlot.pm
line 147.\n
http://ws.geonames.org/findNearbyPlaceName?lat=32.5546&lng=117.151
http://ws.geonames.org/findNearbyPlaceName?lat=26.9448&lng=-80.072
http://ws.geonames.org/findNearbyPlaceName?lat=28.0553&lng=-80.5762
http://ws.geonames.org/findNearbyPlaceName?lat=38.04&lng=122.23
http://ws.geonames.org/findNearbyPlaceName?lat=37.423&lng=122.165
http://ws.geonames.org/findNearbyPlaceName?lat=36.6266&lng=-121.895
http://ws.geonames.org/findNearbyPlaceName?lat=38.1011&lng=122.544
http://ws.geonames.org/findNearbyPlaceName?lat=46.7339&lng=-124.078
http://ws.geonames.org/findNearbyPlaceName?lat=38.068&lng=-121.843
http://ws.geonames.org/findNearbyPlaceName?lat=30.6669&lng=-82.3332
http://ws.geonames.org/findNearbyPlaceName?lat=39&lng=32
http://ws.geonames.org/findNearbyPlaceName?lat=38.2052&lng=122.572
[Fri Jun 19 14:41:05 2009] [error] Can't call method "getFirstChild" 
on an
undefined value at /var/eprints/perl_lib/EPrints/Plugin/Export/MapPlot.pm
line 147.\n
http://ws.geonames.org/findNearbyPlaceName?lat=36.48&lng=121.54
http://ws.geonames.org/findNearbyPlaceName?lat=38.2052&lng=122.572
[Fri Jun 19 14:44:05 2009] [error] Can't call method "getFirstChild" 
on an
undefined value at /var/eprints/perl_lib/EPrints/Plugin/Export/MapPlot.pm
line 147.\n


Anybody has some hint on how to fix it?


-- 
Liang Zhong
Florida Center for Library Automation

--002215046c6fcd8455046cb80588
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>I tried to install the plugin of 
export in google ma=
p.</div><div>After I finished all the required steps, I did a 
search and tr=
ied to export in google map. Then Internal Server Error<font 
class=3D"Apple=
-style-span" face=3D"&#39;times new roman&#39;" 
size=3D"4"><span class=3D"A=
pple-style-span" style=3D"font-size: 16px;">=A0is return and 
the apache err=
or log shown something like:</span></font></div>
<div><font class=3D"Apple-style-span" 
face=3D"&#39;times new roman&#39;" si=
ze=3D"4"><span class=3D"Apple-style-span" 
style=3D"font-size: 16px;"><br></=
span></font></div><div><font 
class=3D"Apple-style-span" face=3D"&#39;times =
new roman&#39;" size=3D"4"><span 
class=3D"Apple-style-span" style=3D"font-s=
ize: 16px;"><div>
[Fri Jun 19 14:44:05 2009] [error] Can&#39;t call method 
&quot;getFirstChil=
d&quot; on an undefined value at 
/var/eprints/perl_lib/EPrints/Plugin/Expor=
t/MapPlot.pm line 147.\n</div><div>[eprints AT eprints3 logs]$ tail 
-50 error_=
log</div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D38.2052&am=
p;lng=3D122.572">http://ws.geonames.org/findNearbyPlaceName?lat=3D38.2052&a=
mp;lng=3D122.572</a></div><div>[Fri Jun 19 14:39:57 2009] 
[error] Can&#39;t=
 call method &quot;getFirstChild&quot; on an undefined value at 
/var/eprint=
s/perl_lib/EPrints/Plugin/Export/MapPlot.pm line 147.\n</div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D32.5546&am=
p;lng=3D117.151">http://ws.geonames.org/findNearbyPlaceName?lat=3D32.5546&a=
mp;lng=3D117.151</a></div><div><a 
href=3D"http://ws.geonames.org/findNearby=
PlaceName?lat=3D26.9448&amp;lng=3D-80.072">http://ws.geonames.org/findNearb=
yPlaceName?lat=3D26.9448&amp;lng=3D-80.072</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D28.0553&am=
p;lng=3D-80.5762">http://ws.geonames.org/findNearbyPlaceName?lat=3D28.0553&=
amp;lng=3D-80.5762</a></div><div><a 
href=3D"http://ws.geonames.org/findNear=
byPlaceName?lat=3D38.04&amp;lng=3D122.23">http://ws.geonames.org/findNearby=
PlaceName?lat=3D38.04&amp;lng=3D122.23</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D37.423&amp=
;lng=3D122.165">http://ws.geonames.org/findNearbyPlaceName?lat=3D37.423&amp=
;lng=3D122.165</a></div><div><a 
href=3D"http://ws.geonames.org/findNearbyPl=
aceName?lat=3D36.6266&amp;lng=3D-121.895">http://ws.geonames.org/findNearby=
PlaceName?lat=3D36.6266&amp;lng=3D-121.895</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D38.1011&am=
p;lng=3D122.544">http://ws.geonames.org/findNearbyPlaceName?lat=3D38.1011&a=
mp;lng=3D122.544</a></div><div><a 
href=3D"http://ws.geonames.org/findNearby=
PlaceName?lat=3D46.7339&amp;lng=3D-124.078">http://ws.geonames.org/findNear=
byPlaceName?lat=3D46.7339&amp;lng=3D-124.078</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D38.068&amp=
;lng=3D-121.843">http://ws.geonames.org/findNearbyPlaceName?lat=3D38.068&am=
p;lng=3D-121.843</a></div><div><a 
href=3D"http://ws.geonames.org/findNearby=
PlaceName?lat=3D30.6669&amp;lng=3D-82.3332">http://ws.geonames.org/findNear=
byPlaceName?lat=3D30.6669&amp;lng=3D-82.3332</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D39&amp;lng=
=3D32">http://ws.geonames.org/findNearbyPlaceName?lat=3D39&amp;lng=3D32</a>=
</div><div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D38.2=
052&amp;lng=3D122.572">http://ws.geonames.org/findNearbyPlaceName?lat=3D38.=
2052&amp;lng=3D122.572</a></div>
<div>[Fri Jun 19 14:41:05 2009] [error] Can&#39;t call method 
&quot;getFirs=
tChild&quot; on an undefined value at 
/var/eprints/perl_lib/EPrints/Plugin/=
Export/MapPlot.pm line 147.\n</div><div><a 
href=3D"http://ws.geonames.org/f=
indNearbyPlaceName?lat=3D36.48&amp;lng=3D121.54">http://ws.geonames.org/fin=
dNearbyPlaceName?lat=3D36.48&amp;lng=3D121.54</a></div>
<div><a 
href=3D"http://ws.geonames.org/findNearbyPlaceName?lat=3D38.2052&am=
p;lng=3D122.572">http://ws.geonames.org/findNearbyPlaceName?lat=3D38.2052&a=
mp;lng=3D122.572</a></div><div>[Fri Jun 19 14:44:05 2009] 
[error] Can&#39;t=
 call method &quot;getFirstChild&quot; on an undefined value at 
/var/eprint=
s/perl_lib/EPrints/Plugin/Export/MapPlot.pm line 147.\n</div>
<div><br></div><div><br></div><div>Anybody has some hint on how to fix it?<=
/div></span></font></div><div><font 
class=3D"Apple-style-span" face=3D"&#39=
;times new roman&#39;" size=3D"4"><span 
class=3D"Apple-style-span" style=3D=
"font-size: 16px; "><br>
</span></font><br>-- <br>Liang Zhong<br>Florida 
Center for Library Automati=
on<br>
</div>

--002215046c6fcd8455046cb80588--


[EP-tech] Re: Google map export error

From: Sam Moffatt <Samuel.Moffatt AT usq.edu.au>
Date: Tue, 30 Jun 2009 09:46:05 +1000


Threading: [EP-tech] Google map export error from lz.fcla AT gmail.com
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Looking at that location rendered an empty document element - I'm
guessing its failing because the plugin doesn't check that there are
children for the root node or for any other node. 

The code in question I'm guessing is this:
my  AT country = $dom->getElementsByTagName( "countryCode" );
my  AT location = $dom->getElementsByTagName( "name" );
my $countryString = $country[0]->getFirstChild->getNodeValue;
my $locationString = $location[0]->getFirstChild->getNodeValue;	

Perhaps change this to be the following:
my  AT country = $dom->getElementsByTagName( "countryCode" ); 
my  AT location = $dom->getElementsByTagName( "name" );
next unless(EPrints::Utils::is_set($country[0]) && 
EPrints::Utils::is_set($location[0]);
my $countryString = $country[0]->getFirstChild->getNodeValue;
my $locationString = $location[0]->getFirstChild->getNodeValue;	


I certainly haven't tested this but give it a go and see how you
progress. I'm still learning how ePrints works and there is probably a
better way of doing that in Perl as well (perhaps just check that
location/country has values?).

Cheers,

sam


On Sat, 2009-06-20 at 04:52 +1000, Liang Zhong wrote:
> http://ws.geonames.org/findNearbyPlaceName?lat=38.2052&lng=122.572
> [Fri Jun 19 14:44:05 2009] [error] Can't call method 
"getFirstChild"
> on an
> undefined value
> at /var/eprints/perl_lib/EPrints/Plugin/Export/MapPlot.pm
> line 147.\n


This email (including any attached files) is confidential and is for the
intended recipient(s) only.  If you received this email by mistake,
please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily
reflect those of the University of Southern Queensland.  Although all
reasonable precautions were taken to ensure that this email contained no
viruses at the time it was sent we accept no liability for any losses
arising from its receipt.

The University of Southern Queensland is a registered provider of
education with the Australian Government (CRICOS Institution Code No's.
QLD 00244B / NSW 02225M)



[index] [options] [help]