Invalid Language File

Get help from the community here.

Moderator: Developers

Hundubalar
Posts: 7
Joined: Tue Jul 31, 2018 3:12 pm

Invalid Language File

Postby Hundubalar » Tue Nov 13, 2018 10:21 am

Hey,

if i try to view the modules-overview in GO, i got the error:
Invalid language file /pathtogroup/modules/notes/language/en.php

Image

Maybe i don't get the point at the moment "I cannot see the wood for the trees"

Thank you very much in advance.
johnnyb
Posts: 2
Joined: Mon Jan 28, 2019 5:28 pm

Re: Invalid Language File

Postby johnnyb » Mon Jan 28, 2019 5:33 pm

I have the same problem.

Group Office v. 6.3.58
PHP 7.3

The modules screen returns the error, (Date and time) and
"Invalid language file (full path)/modules/admin2userlogin/language/en.php"

The file referred to is there, but I don't know what I might need to fix to get this going.

Appreciate any help.

Thanks

John
Hundubalar
Posts: 7
Joined: Tue Jul 31, 2018 3:12 pm

Re: Invalid Language File

Postby Hundubalar » Mon Feb 11, 2019 9:36 am

I've solved the Problem.
Maybe it's been fixed in one of the last updates. Try to update to the actually Version 6.3.63

Otherwise you have to modifiy the language file by hand. You have to do it for all language files, which attemps an error.
I will show you on the notes-module.

The loaded languagefile for the notes-module looks like this and occure an error:
<?php

$l["category_id"]="Note book";
$l["content"]="Content";
$l["manageCategories"]="Manage note books";
$l['name']='Notes';
$l['description']='A module to make to notes';
$l['category']='Note book';
$l['categories']='Note books';
$l['note']='Note';
$l['notes']='Notes';
$l['general'] = 'General';
$l['incomplete_delete']='You don\'t have permission to delete all selected notes';
$l['multipleCategoriesSelected']='Multiple note books selected';
$l['encryptedContent']='Content is encrypted';
If you have knowlege in programming, you see an associative array with the tranlations. It seems to be the old structure for a languagefile. But meanwhile GroupOffice expect a other structure for the files.
<?php
return array (
'category_id' => 'Note book',
'content' => 'Content',
'manageCategories' => 'Manage note books',
'name' => 'Notes',
'description' => 'A module to make to notes',
'category' => 'Note book',
'categories' => 'Note books',
'notes' => 'Notes',
'general' => 'General',
'incomplete_delete' => 'You don\'t have permission to delete all selected notes',
'multipleCategoriesSelected' => 'Multiple note books selected',
'note' => 'Note',
'encryptedContent' => 'Content is encrypted'
);
The associative array has changed to a function which returns a associative array. If you replace the old structure with the new one no error should attemp. But first try to update to the newest version. And don't forget to backup :)
johnnyb
Posts: 2
Joined: Mon Jan 28, 2019 5:28 pm

Re: Invalid Language File

Postby johnnyb » Tue Feb 19, 2019 4:58 pm

Hundubalar thank you for the reply.

The file referenced in the error I see is not the same as either of the examples you give in your reply. I am not a programmer/coder, so I don't know which of those should be the correct one.

The error I see does not refer to the Notes module. Just that the admin language file has an error of some kind. Meanwhile I cannot see an overview of modules, or add new modules, etc.

John
Hundubalar
Posts: 7
Joined: Tue Jul 31, 2018 3:12 pm

Re: Invalid Language File

Postby Hundubalar » Wed Feb 20, 2019 8:33 am

I have no module with the name admin2userlogin, but the problem could be the same. You have to trasmit the principle.
To modify the language-file without programming knowledge could be an adventure :D
You can maybe setup a test installation of GroupOffice. There you can modify the file in a protected area and fiddle about.
Or you have to wait until the module files getting updated.

Who is online

Users browsing this forum: Bing [Bot] and 7 guests