I just created a Nominatim server. Everything seemed to have gone OK, and I can lookup addresses. The result is the details of the address, but no map of the address gets shown. Also when you click the reverse lookup link, all you get is an empty page. Note though that reverse lookup using an xml query works!)

Any ideas what is wrong?

The main Nominatim page can be found at: Sample reverse xml lookup:

asked 18 Jan '17, 13:42

Hayo%20Baan's gravatar image

Hayo Baan
accept rate: 0%

edited 18 Jan '17, 13:43

I think that gets caused by the line json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) in lib/template/search-html.php. It returns an empty string, at least I don't seen any output in the HTML in my browser.

The option JSON_PRETTY_PRINT got added in PHP version 5.4.0. Are you running a PHP version older than that?

Do you see any error message in the webserver (nginx) error log?

permanent link

answered 18 Jan '17, 13:57

mtmail's gravatar image

accept rate: 30%


Awesome!!! That was it! The system is was on 5.3.29 as that was the version that I got with installing php-pgsql. However, I'm now using php56-pgsql and all is working fine (after some effort in getting it configured right).


(18 Jan '17, 15:00) Hayo Baan
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Jan '17, 13:42

question was seen: 1,034 times

last updated: 18 Jan '17, 15:00

powered by OSQA