Weird multilingual after adding custom module

General project discussion. NOT for help questions.
Post Reply
skyler
New Member
New Member
Posts: 1
Joined: Wed Aug 27, 2025 10:01 am

Weird multilingual after adding custom module

Post 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.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1807
Joined: Wed Feb 25, 2009 4:25 am

Re: Weird multilingual after adding custom module

Post 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.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “General Discussion”