Project:Nice Map
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:tmcw
Status:closed (fixed)

Issue Summary

When trying to add the WMS Server listed in the documentation (http://wms.jpl.nasa.gov/wms.cgi), the module returned saying that the WMS Server could not be reached. I located a list of WMS servers here: http://www.skylab-mobilesystems.com/en/wms_serverlist.html, however I am unable to get any of those servers to work with the Nice Map module. Some report that the server could not be reached and others, when they don't give that error, do not give any map options as it appears that they should.

Comments

#1

Status:active» postponed

I've been seeing a few errors on the side of the NASA map servers, since they aren't used to serving a lot of requests to the web. I'm planning to implement caching to prevent these, but in the meantime the server

http://onearth.jpl.nasa.gov/wms.cgi

Might be a bit more reliable than the other NASA one.

#2

Also, notice that the list of WMS servers has the URLs with query strings already attached, like

http://167.21.84.15/wmsconnector/com.esri.wms.Esrimap/DE_aerial02?servic...

You should only use the base of these, like

http://167.21.84.15/wmsconnector/com.esri.wms.Esrimap/DE_aerial02

(note: I haven't checked this one specifically. That list isn't very reliable)

#3

I'm still in the same boat. Trying multiple times, I sometimes do not get the "Unable to reach ..." message, but I never get the CRS Code dropdown populated, nor any layers. Screen clipping attached.

AttachmentSize
nice_map_server.png 14.65 KB

#4

Assigned to:Anonymous» tmcw
Status:postponed» needs review

Please retry with the latest build - I've changed a lot of the code that deals with connecting to servers.

#5

After installing the new version, the select server works consistently, but I still cannot connect to a server (but now it always gives that message so there is no confusion). I have tried the server in the documentation and the one in this thread about a half dozen times each. Can you suggest anything to check or a reliable server to try?

#6

Just to check - you are using PHP5 with SimpleXML (I've just added a check to the module so that this isn't a possibility in the future)

#7

Yes. I was sure about PHP 5 but not SimpleXML. I just checked and it is enabled. Here's a link to the phpinfo if that helps in any way: http://tealsvizslas.com/phpinfo.php

I just installed the latest version of nice map and still cannot connect to a server. This looks like an awesome module. I appreciate the work you put into it and hope to get it working!

#8

smartRUBY, loading an external XML file requires allow_url_fopen to be enabled in php.ini. Enable it and try again.

tmcw, maybe it's a good idea to add this check and some warning to wms_client.inc.

Tormi

#9

I've added a warning message for users that have allow_url_fopen disabled. Thanks for the tip, tormi!

#10

Status:needs review» fixed

That solved it! Thank you!

#11

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#12

Hi smartRuby,

Usually that's a security breach.
You shouldn't expose that information phpinfo()

I'm having the same with openlayers

Regards,
dex