Issue with Module Plugin Language?

Hi,
I was wondering if someone can lend me a hand on the issue im having. Im trying to add the spanish language. I download the zipfile from this site https://crowdin.com/project/suitecrmtranslations the ES. then uploaded it though the module section of the admin page. Put it wont load it. i check the NGINX logs and found this.

2018/02/04 21:35:04 [error] 1009#1009: *154 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of ListViewPackages::setup($data, $file, $where, $params = Array, $offset = 0, $limit = -1, $filter_fields = Array, $id_field = 'id') should be compatible with ListViewDisplay::setup($seed, $file, $where, $params = Array, $offset = 0, $limit = -1, $filter_fields = Array, $id_field = 'id', $id = NULL) in /var/www/html/suitecrm/ModuleInstall/PackageManager/ListViewPackages.php on line 42
PHP message: PHP Notice:  A non well formed numeric value encountered in /var/www/html/suitecrm/include/utils.php on line 3576
PHP message: PHP Notice:  Use of undefined constant JSON_LOOSE_TYPE - assumed 'JSON_LOOSE_TYPE' in /var/www/html/suitecrm/include/ytree/Tree.php on line 76" while reading response header from upstream, client: 192.168.3.2, server: 192.168.3.198, request: "POST /index.php?module=Administration&view=module&action=UpgradeWizard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "192.168.3.198", referrer: "http://192.168.3.198/index.php?module=Administration&view=module&action=UpgradeWizard"

any ideas?

Thank you

You can go here and change this


function setup($data, $file, $where, $params = Array(), $offset = 0, $limit = -1, $filter_fields = Array(), $id_field = 'id'){

into this


function setup($data, $file, $where, $params = Array(), $offset = 0, $limit = -1, $filter_fields = Array(), $id_field = 'id', $id = NULL) {

It should work.

Please come back here and tell me if it did, so I can change it in the code for everyone. Thanks

Thanks for the quick reply, as i think it seems to fix that error but still cant upload the language, im getting another error

2018/02/05 23:28:26 [error] 1009#1009: *200 FastCGI sent in stderr: "PHP message: PHP Notice:  A non well formed numeric value encountered in /var/www/html/suitecrm/include/utils.php on line 3576
PHP message: PHP Notice:  Use of undefined constant JSON_LOOSE_TYPE - assumed 'JSON_LOOSE_TYPE' in /var/www/html/suitecrm/include/ytree/Tree.php on line 76" while reading response header from upstream, client: 192.168.3.2, server: 192.168.3.198, request: "POST /index.php?module=Administration&view=module&action=UpgradeWizard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "192.168.3.198", referrer: "http://192.168.3.198/index.php?module=Administration&view=module&action=UpgradeWizard"

What i did i went to /var/www/html/suitecrm/ModuleInstall/PackageManager then found the listviewpackages.php edit the line you told to replace saved then retried to upload the es_ES and it just shows blank.

Thank you

Just to be sure please download again the latest language pack.
Enter ES Spain language and downlaod ZIP
Older versions: 7.8.x and 7.9.x versions needs to download language packs from sourceforge.net: https://sourceforge.net/projects/suitecrmtranslations/files/

1 Like

Thanks for the reply im running Version 7.9.11
Sugar Version 6.5.25 (Build 344)

I use the https://sourceforge.net/projects/suitecrmtranslations/files/7.9.x_versions/es-ES.zip/download

im getting this error

2018/02/06 21:35:52 [error] 1009#1009: *386 FastCGI sent in stderr: "PHP message: PHP Notice:  A non well formed numeric value encountered in /var/www/html/suitecrm/include/utils.php on line 3576
PHP message: PHP Notice:  Use of undefined constant JSON_LOOSE_TYPE - assumed 'JSON_LOOSE_TYPE' in /var/www/html/suitecrm/include/ytree/Tree.php on line 76" while reading response header from upstream, client: 192.168.3.24, server: 192.168.3.198, request: "POST /index.php?module=Administration&view=module&action=UpgradeWizard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "192.168.3.198", referrer: "http://192.168.3.198/index.php?module=Administration&action=UpgradeWizard&view=module"

any ideas?

Thank you

Have you also downloaded the latest language pack for your language?
https://sourceforge.net/projects/suitecrmtranslations/files/
Even if i don’t think this is language pack related.

Please include the PHP and Mysql version used

For others: found an error like this: https://github.com/salesagility/SuiteCRM/issues/4136

Thanks for the reply
PHP version 7.1
mysql Ver 15.1 Distrib 10.0.33-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
I saw was looking at the link for the github, but steps 3 and 4 does not show nothing

Thank you