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:
can anyone, I am really stuck here?
Thanks,
Mark
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
Could you post the file at /srv/web_apps/www/application/languages/ko_KR/LC_MESSAGES/messages.mo ?
There is not content in that file at the moment
Is this file empty in your dev/staging server too?
Yes it is empty
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
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?
I meant to upload just that single .mo file.
BTW you can get it fromhttp://www.concrete5.org/developers/translate/... too
BTW you can get it fromhttp://www.concrete5.org/developers/translate/... too
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.