Page 1 of 1

Weird multilingual after adding custom module

Posted: Wed Aug 27, 2025 10:08 am
by skyler
Hi everyone,
I’m Skyler, new here and still learning CMS Made Simple. I’ve been building a small site with multilingual support, and after about a month of experimenting, I ran into a really strange issue.
I’m using CMSMS 2.2.20 with the LISE module for a custom “Projects” section. The site has English and French using the CMSMS built-in language tags. Everything works fine at first, but once I enable browser caching in the admin settings, my custom LISE templates randomly switch languages — sometimes the English menu loads on a French page, or the LISE items appear untranslated. If I clear cache manually, it works again for a while, but then the mismatch returns. Debug mode shows no fatal errors, but I do see a lot of repeated warnings like:

Code: Select all

Smarty error: [in module_db_tpl:LISE::Projects::default] undefined index: lang
PHP version is 8.2, MySQL 8.0.27.
I can’t tell if this is a bug in LISE, a misconfiguration in how I set up the language tags, or some kind of Smarty variable conflict when cache is enabled.
Has anyone else seen multilingual + caching behave like this?
Would love to know if there’s a known workaround, or if I need to rethink how I structured the templates.

Re: Weird multilingual after adding custom module

Posted: Wed Aug 27, 2025 1:54 pm
by DIGI3
I don't have a lot of experience with multilingual sites not using a module (e.g. Eridu) but one thing to make sure is that you have Smarty caching turned off in the admin prefs. Enabling that requires a lot of careful exclusions in your templates, especially for something like this.