Query returns 'Call to a member function transliterate() on null" #2977
-
I have been working through trying to install Nominatim on an Amazon Linux 2 instance. It is finally installing successfully, and I have imported an osm file and hooked everything up with nginx and php-fpm, but when I either run I'm using ICU version 68.1, and I have the polyglot, PyICU, pycld2, and icu-tokenizer packages installed. I saw that someone got the same error here: fisharebest/webtrees#3066, ran
But I'm at a loss for what might be going wrong. Any help or ideas would be very appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It looks like the PHP Transliterator class is not working as expected. What is the output for If the import was successful then the ICU version should be sufficient. |
Beta Was this translation helpful? Give feedback.
-
Ok, php.ini already contained 'default_charset = "UTF-8"'. When I initially ran with the additional lines, I got NULL for each. I found that if I removed all rules involving ascii from each I'm now getting:
for each, so.. will I be safe if I just remove those before running from the original? Or is there something I need to update elsewhere for ASCII usage? Thank you so much for your help-- I'm sure you can tell, I am not a PHP user, so this would have taken a thousand times longer without you. |
Beta Was this translation helpful? Give feedback.
Ok, php.ini already contained 'default_charset = "UTF-8"'. When I initially ran with the additional lines, I got NULL for each. I found that if I removed all rules involving ascii from each I'm now getting:
for each, so.. will I be safe if I just remove those before running from the original? Or is there something I need to update elsewhere for ASCII usage?
Thank you so much for your help-- I'm sure you can tell, I am not a PHP user, so this would have taken a thousand times longer without you.