Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

multilanguage site: deleting language dobbles admin settings in DB

Asked Modified Viewed 1,611 times
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Started this discussions
  • Answered 1 question
asked
Senior Member

I have several times installed v8 with 2 languages: Danish and English

If i delete English or Danish from settings_languages.php it results every time in dobbling of the admin settings in the DB but without the text describing the links
0 replies

2 posts

M
Mickelvlm
M
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

On my installation it doubles as well. The double in the navigation are missing its description:
i.imgur.com/ZGosfAn.png


but not the one on the index:
i.imgur.com/oaWP6U3.png


I think the problems is in this

What ~194-~256 does is that it inserts new entries every time you press submit, whether or not you change the enabled locales. There are two issues in this:
1) It doesn't delete anything, which means creating doubles.
2) It uses the presumed array $enabled_languages to import the right locale, but $enabled_languages is only an array if the enabled locales has been changed - if not, it's a string, and the include fails, creating empty values for the locales used for inserting.
Edited by Mickelvlm on 09-01-2019 15:18,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Yeah. I see it now. Esp as said with pressing with no change. A fast and easy fix if Admin is bad is to switch back to a new default and back again. It will sort the layout it until we patch it.
0 replies

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
H
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Started this discussions
  • Answered 1 question
M
M
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 6 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet