I installed the latest version of SuiteCRM (8.9.0).
I installed a language pack (italian language)
I created a custom module. The custom module appeared as the latest one in the list.
I logged as admin in in english language
I changed the ordering of the menu by using Admin/Module Setting/Display Modules and Subpanels, putting the title of my module around the top of the list
I logged in again in Italian language
Result: all SuiteCRM is italian, except the top menu, which is now in english (except the word “Plus”, which is still translated in Italian).
I tried uninstalling the custom module, rebuilding the index, and so on… but the menu seems to stick to english language (like the customization of the ordering impacted somehow the system and cannot be reverted).
Question: How I can “reset” the top menu to the one which was present at installation time? (I see no option to reset the menu to the original shape in the Admin/Module Setting/Display Modules and Subpanels view.
[added after sending:
I somehow solved the issue by:
recovering an old snapshot of SuiteCRM from backup, before I started adding the module
recreating the new module by editing in the italian language, with same fields
After deployment, the system recognized previous data entered, and the top menu stayed in Italian
The strange thing in all this seems to be the fact that editing modules/menus in one language and afterwards switching the language may not work as expected.
]
Hi Paolo, don’t worry: there can be multiple reasons for such behaviour.
Are you installing your SuiteCRM instance on any hosting service like SiteGround, or on Bitnami or on your own server?
Please check: File Permissions
cd /var/www/html/{your suitecrm 8 folder} # adjust path as needed
Cache folder
Empty the cache folder so it can be rebuilt.
To ran a Quick Repair will work as well
config.php or config_override.php
change this block on public/legacy/config.php
// Default permissions for new files and directories if your user/group are www-data:www-data
'default_permissions' => array(
'dir_mode' => 1533,
'file_mode' => 436,
'user' => 'www-data',
'group' => 'www-data',
),
or add this block to public/legacy/config_override.php:
<?php
// Default permissions for new files and directories if your user/group are www-data:www-data
$sugar_config['default_permissions'] = array(
'dir_mode' => 1533,
'file_mode' => 436,
'user' => 'www-data',
'group' => 'www-data',
);
I have some issues with the menu after installing a lang pack as well.
However, I have a hard time reproducing the issue:
It happens sometimes / randomly.
I will play around with your described steps and see whether I can reproduce the issue.
What I’ve done is to translate the modules.
So basically:
Install lang pack
Everything is fine / translated
Something happens and the menu items are back to EN
I go to Admin - Developer Tools - Rename modules and there, I translate the modules again and the menu items will take those translations.
Not sure, whether the permissions are the issue, but it sounds a bit like it.
In which order do you see the issue arise and when do you re-apply the permissions (incl. PHP)?
Btw, Bastian, thanks for your video on the module creation. It was really useful!!!
Thanks for the suggestions on the file permissions. I applied them. I am running the CRM on a NAS container locally at home.
So yes, after I created a new module, I tried to rearrange the menu on the top and I did it in English (not in Italian).
Another source of problem that may caused the issue was a weird thing. I created the module erroneously with an initial space. That is, my module was called “Training” and not “Training”. This may have created issues, as many files in the filesystem were created with that initial space (in general I think the system should prevent these names as module names to avoid problems with the filesystem).
Currently I solved it by:
keeping the DB as it is (I inserted some data)
restoring a backup done just before starting the new module
recreate the Training module without the initial space in the name, and putting back all the fields/relationships/modules/…
at that point, I changed the ordering in the user preferences (and not in the admin panel / show modules and subpanels)
I hope it helps, and thanks for your time spent to answer me!