This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Multiple errors with Nominatim 2.5.1 installation

0

I just upgraded Nominatim to 2.5.1 from 2.4.0. Reverse geocoding works properly but I'm getting errors when I hit the details.php page PHP Parse error: syntax error, unexpected '[' in .../website/details.php on line 93 which keeps the page from rendering. Further, the map does not load on the search page and gives me Uncaught ReferenceError: nominatim_map_init is not defined. Both would seem like permissions errors but the permissions seem fine to access files. Further, as mentioned, reverse geocding works fine. Any help is appreciated, thanks.

asked 15 Oct '16, 17:54

cswrsinc's gravatar image

cswrsinc
61224
accept rate: 50%


One Answer:

0

This could be a mismatch of files in the /website and build/website directory. Try running the create-website setup step in https://wiki.openstreetmap.org/wiki/Nominatim/Installation again.

answered 17 Oct '16, 16:30

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

(17 Oct '16, 17:54) mtmail

I'm using these directions, https://wiki.openstreetmap.org/wiki/Nominatim/Installation_on_CentOS and don't see a build directory.

(17 Oct '16, 18:18) cswrsinc

Also, don't see anything in setup.php related to a builds directory related to web site creation.

(17 Oct '16, 18:21) cswrsinc

Source code available on GitHub .