HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Language Display Options Bug

Login / Search

 [ Join | More ]
 Add topic 
#72467 (In Topic #15202)

Fan in action

Site: Installation Options::default_lang is set to JA.
My Member Account: site language is set to EN.

In Site Options, I checked "Detect Language From Account" and saved. When I went back, the site was still in JA. When I returned to the Site Options, "Detect Language From Acccount" was still unchecked. I tried it a couple of times but the option wont save correctly. Somtimes happens for "Detect Language From Browser" too.

Can you have "Detect Language From Account" AND "Detect Language From Browser" enabled at the same time ? Not sure why this bug is popping up. Is there a workaround ?

I am going over the database and looking at the "detect language" entries in the config table.

DETECT_LANG_BROWSER11tickreturn '0';

DETECT_LANG_FORUM0 tickreturn (get_forum_type()=='ocf')?NULL:'1';

Does the Detect_Lang_Forum entry say that if the forum isn't type ocf to return NULL (0) ?
We made a few Admin accounts but we have not created any forums yet.
That could be why the option won't save when I checkmark it. Can this language option be used without creating a forum ?

Last edit: by samurai_jack
Back to the top


I just tested this on the latest version and was able to save okay. There's no special code in the config system that limits what you can set like this, so it sounds like either an old bug (upgrading may help) or something like a suhosin limit on the number of allowed form fields resulting in some of the options not saving through (if your PHP-info says you have suhosin, consult with your web host).

Sorry I am not able to tell exactly. If you'd like me to look directly, please submit a free support ticket with FTP access details.

Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: