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.

CommentFileSizeAuthor
#3 nice_map_server.png14.65 KBsmartRUBY

Comments

tmcw’s picture

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.

tmcw’s picture

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)

smartRUBY’s picture

StatusFileSize
new14.65 KB

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.

tmcw’s picture

Assigned: Unassigned » 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.

smartRUBY’s picture

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?

tmcw’s picture

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)

smartRUBY’s picture

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!

tormi’s picture

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

tmcw’s picture

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

smartRUBY’s picture

Status: Needs review » Fixed

That solved it! Thank you!

Status: Fixed » Closed (fixed)

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

Yorgg’s picture

Hi smartRuby,

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

I'm having the same with openlayers

Regards,
dex