Serious error on site with gettext in translations

Permalink
Hi,

The site I had added to a staging server was working fine and then all of a sudden stopped working and gave this error in the apache logs:

PHP Fatal error:  Uncaught exception 'Zend\\I18n\\Exception\\InvalidArgumentException' with message '/srv/web_apps/www/application/languages/ko_KR/LC_MESSAGES/messages.mo is not a valid gettext file' in /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php:75\nStack trace:\n#0 /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Translator.php(701): Zend\\I18n\\Translator\\Loader\\Gettext->load('ko_KR', '/srv/web_apps/w...')\n#1 /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Translator.php(573): Zend\\I18n\\Translator\\Translator->loadMessagesFromFiles('default', 'ko_KR')\n#2 /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Translator.php(441): Zend\\I18n\\Translator\\Translator->loadMessages('default', 'ko_KR')\n#3 /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Translator.php(354): Zend\\I18n\\Translator\\Translator->getTranslatedMessage('An unexpected e...', 'ko_KR', 'defaul in /srv/web_apps/webroot-GnF/concrete/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php on line 75


can anyone, I am really stuck here?

Thanks,
Mark

View Replies:
mlocati replied on at Permalink Reply
mlocati
Could you post the file at /srv/web_apps/www/application/languages/ko_KR/LC_MESSAGES/messages.mo ?
mdunbavan replied on at Permalink Reply
There is not content in that file at the moment
mlocati replied on at Permalink Reply
mlocati
Is this file empty in your dev/staging server too?
mdunbavan replied on at Permalink Reply
Yes it is empty
mlocati replied on at Permalink Reply
mlocati
It shouldn't. Why is this empty? You could try to download the concrete5 installation zip file and upload that file again to the server
mdunbavan replied on at Permalink Reply
Really don't want to try that, theres too much going on in the site for that to be an option. Can i get it from somewhere else?
mlocati replied on at Permalink Reply
mlocati
I meant to upload just that single .mo file.
BTW you can get it fromhttp://www.concrete5.org/developers/translate/... too
mdunbavan replied on at Permalink Reply 1 Attachment
Okay yeah tried that but now figured it out. The file looks like an exec file thats only executable in pc, all other messages.mo files in other folders dont have that extension.