Navigation Menu Items are not loading in Turkish language

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?

ojs

Hi @ergec,

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.

Cheers,
Jason

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.

xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:11 +0200] "GET /test/index.php/test/user/setLocale/en_US?source=%2Ftest%2Findex.php%2Ftest%2F%24%24%24call%24%24%24%2Fpage%2Fpage%2Fuser-nav-backend%3F_%3D1548350349783 HTTP/1.1" 302 842 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:11 +0200] "GET /test/index.php/test/management/settings/website HTTP/1.1" 200 26310 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:13 +0200] "GET /test/index.php/test/$$$call$$$/page/page/user-nav-backend?_=1548350954771 HTTP/1.1" 200 4299 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:13 +0200] "GET /test/index.php/test/$$$call$$$/tab/settings/website-settings-tab/show-tab?tab=appearance&_=1548350954772 HTTP/1.1" 200 16538 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:13 +0200] "GET /test/index.php/test/$$$call$$$/page/page/tasks?_=1548350954773 HTTP/1.1" 200 1957 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:13 +0200] "POST /test/index.php/test/notification/fetchNotification HTTP/1.1" 200 721 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:14 +0200] "GET /test/index.php/test/$$$call$$$/grid/notifications/task-notifications-grid/fetch-grid?_=1548350954774 HTTP/1.1" 200 7086 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:14 +0200] "GET /test/index.php/test/$$$call$$$/listbuilder/settings/block-plugins-listbuilder/fetch?_=1548350954775 HTTP/1.1" 200 13225 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:15 +0200] "GET /test/index.php/test/$$$call$$$/tab/settings/website-settings-tab/show-tab?tab=navigationMenus&_=1548350954776 HTTP/1.1" 200 3092 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:15 +0200] "POST /test/index.php/test/notification/fetchNotification HTTP/1.1" 200 721 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:15 +0200] "GET /test/index.php/test/$$$call$$$/grid/navigation-menus/navigation-menus-grid/fetch-grid?_=1548350954777 HTTP/1.1" 200 13237 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:15 +0200] "GET /test/index.php/test/$$$call$$$/grid/navigation-menus/navigation-menu-items-grid/fetch-grid?_=1548350954778 HTTP/1.1" 200 61791 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:19 +0200] "GET /test/index.php/test/user/setLocale/tr_TR?source=%2Ftest%2Findex.php%2Ftest%2F%24%24%24call%24%24%24%2Fpage%2Fpage%2Fuser-nav-backend%3F_%3D1548350954771 HTTP/1.1" 302 704 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:20 +0200] "GET /test/index.php/test/management/settings/website HTTP/1.1" 200 26359 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:20 +0200] "GET /test/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_tr.js HTTP/1.1" 200 1787 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:21 +0200] "GET /test/index.php/test/$$$call$$$/page/page/user-nav-backend?_=1548350963088 HTTP/1.1" 200 4279 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:21 +0200] "GET /test/index.php/test/$$$call$$$/page/page/tasks?_=1548350963090 HTTP/1.1" 200 1978 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:21 +0200] "GET /test/index.php/test/$$$call$$$/tab/settings/website-settings-tab/show-tab?tab=appearance&_=1548350963089 HTTP/1.1" 200 17212 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:22 +0200] "GET /test/index.php/test/$$$call$$$/grid/notifications/task-notifications-grid/fetch-grid?_=1548350963091 HTTP/1.1" 200 7145 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:22 +0200] "POST /test/index.php/test/notification/fetchNotification HTTP/1.1" 200 721 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:22 +0200] "GET /test/index.php/test/$$$call$$$/listbuilder/settings/block-plugins-listbuilder/fetch?_=1548350963092 HTTP/1.1" 200 13419 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:23 +0200] "GET /test/index.php/test/$$$call$$$/tab/settings/website-settings-tab/show-tab?tab=navigationMenus&_=1548350963093 HTTP/1.1" 200 3121 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:24 +0200] "POST /test/index.php/test/notification/fetchNotification HTTP/1.1" 200 721 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:24 +0200] "GET /test/index.php/test/$$$call$$$/grid/navigation-menus/navigation-menu-Items-grid/fetch-grid?_=1548350963095 HTTP/1.1" 404 700 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"
xxx.xxx.xxx.xxx - - [24/Jan/2019:19:29:24 +0200] "GET /test/index.php/test/$$$call$$$/grid/navigation-menus/navigation-menus-grid/fetch-grid?_=1548350963094 HTTP/1.1" 200 13606 "https://xxx.xxx.xxx.xxx/test/index.php/test/management/settings/website" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0"

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

Hey @ergec

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?

Cheers,

I just noticed that too. Yes English url has “items” with lowercase but “Turkish” requests url “Items” with uppercase which cause 404 error.

Hi @ergec,

This appears to be a symptom of maybe a bigger problem. Please jump over to this thread: "Failed Ajax request or invalid JSON returned" errors on Turkish backend - #3 by drugurkocak

Cheers,

1 Like

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 :slight_smile:

Thanks a lot

ojs2

1 Like