This is a fresh install of [OJS 3.1.1-4. I fresh reinstalled it several times on empty databases to make sure problem persists.
Turkish language navigation menu items never loads. It always says “Yükleniyor…” (meaning Loading…) . Other languages (English, Deutsch) does not have such problem.
I suspect it’s because Turkish language is not complete. Am I right?
If yes I’m more than happy to contribute and help to complete translations.
It no, then what might be the problem that menu items are not loading?
If the locale was not complete, you would see untranslated locale keys instead, like ##some.key##. If you’re getting a persistent “loading…” message, it may be something server side. The JavaScript error you posted is cosmetic, but if you can check your apache error logs there may be something more concrete.
These are the access logs. The second line from bottom (which happened when I selected turkish navigation) gives 404 error which does not make sense because the others before which I selected for english gives response 200.
And these are error logs the time when 404 error occurs
[Thu Jan 24 19:29:24.311609 2019] [proxy_fcgi:error] [pid 7004:tid 139640971413248] [client xxx.xxx.xxx.xxx:32591] AH01071: Got error 'PHP message: PHP Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/clients/client3/web3/web/test/lib/pkp/lib/adodb/adodb-time.inc.php on line 1073\n', referer: https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website
[Thu Jan 24 19:29:24.567516 2019] [proxy_fcgi:error] [pid 4561:tid 139641038554880] [client xxx.xxx.xxx.xxx:32585] AH01071: Got error 'PHP message: PHP Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/clients/client3/web3/web/test/lib/pkp/lib/adodb/adodb-time.inc.php on line 1073\nPHP message: PHP Warning: assert(): Assertion failed in /var/www/clients/client3/web3/web/test/lib/pkp/classes/core/PKPComponentRouter.inc.php on line 179\nPHP message: ojs2: 404 Not Found\n', referer: https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website
[Thu Jan 24 19:29:24.609993 2019] [proxy_fcgi:error] [pid 7004:tid 139640971413248] [client xxx.xxx.xxx.xxx:32591] AH01071: Got error 'PHP message: PHP Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/clients/client3/web3/web/test/lib/pkp/lib/adodb/adodb-time.inc.php on line 1073\n', referer: https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website
I bet that if you look very closely at the 404 URL versus the same URL when the locale UI is English, you will see that the word “Items” is not capitalized as it is there.
I installed two locales on my test install (english and french) and I was able to switch between them.
Can you confirm that the word “items” is lower case if you look at English and we can proceed further?
Hi @jnugent,
That worked like a charm. Some wierd bug and shocking it’s still around. Seems fixing that bug will cause bigger troubles for PHP so they keep it there