Page 1 of 1

Fatal error when the locale is set in config - CMSMS v.1.8.1

Posted: Mon Jul 26, 2010 8:53 am
by vilkis
Hi,
I get Fatal error: Using $this when not in object context in /srv/www/gelesinternetu.lt/public_html/lib/translation.functions.php on line 153 if I set locale in config.php

CMSMS v.1.8.1

If I replace all occurrences of $this by $gCms in translation.functions.php it solves the issue.

vilkis

Re: Fatal error when the locale is set in config - CMSMS v.1.8.1

Posted: Tue Jul 27, 2010 10:56 am
by vilkis
I found why I get the error mentioned above. Normally, every module sets variable curlang and a function cms_current_language is never called. One of my modules reset variable curlang, so when a function cms_module_Lang is called it calls a function cms_current_language and then error occurs.

vilkis