Language Switcher Module and plugin ERROR
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Aug 10, 2011 9:39 pm
Language Switcher Module and plugin ERROR
I think I have followed all steps in tutorial (info-graf.fr, step by step) and even although I read it and read it now and again, i do not see where my mistake is. I do not see the language module and when i try to enable the Language System Filter (plugin) the following error appears:
Invalid argument supplied for foreach in.... htdocs/libraries/joomla/language/helper.php on line 86
I think part of the problem could be I am using a template with data sample on it. I have changed all the articles to each language, also set the category roots in each language, i have changed each module language. But it just DOES NOT WORK!... i am so frustrated!
please help! I would really appreciate it!
Invalid argument supplied for foreach in.... htdocs/libraries/joomla/language/helper.php on line 86
I think part of the problem could be I am using a template with data sample on it. I have changed all the articles to each language, also set the category roots in each language, i have changed each module language. But it just DOES NOT WORK!... i am so frustrated!
please help! I would really appreciate it!
- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
Are the Content languages published?
Are the site packs for these languages installed?
Are the site packs for these languages installed?
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Aug 10, 2011 9:39 pm
Re: Language Switcher Module and plugin ERROR
Yes to both questions.
And even although i have the main menu ALL assigned to a module that is not published, it is the only Home ALL that appears!
I do not know what else to do!
And even although i have the main menu ALL assigned to a module that is not published, it is the only Home ALL that appears!
I do not know what else to do!
-
- Joomla! Intern
- Posts: 71
- Joined: Thu Apr 10, 2008 5:22 am
- Location: Perth, Western Australia
- Contact:
Re: Language Switcher Module and plugin ERROR
I feel I have the same problem.
Language file installed for the site, content file created.
Language plugin enabled with association for menus
Language Switcher module enabled
I have created several articles in englisch and german and have them linked in menu in for the two languages.
I do not get the language switcher module to show anywhere and I do not have a german browser to see if german visitors actually would get the german content ....
Thanks for help. Petra
Language file installed for the site, content file created.
Language plugin enabled with association for menus
Language Switcher module enabled
I have created several articles in englisch and german and have them linked in menu in for the two languages.
I do not get the language switcher module to show anywhere and I do not have a german browser to see if german visitors actually would get the german content ....
Thanks for help. Petra
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Aug 10, 2011 9:39 pm
Re: Language Switcher Module and plugin ERROR
At least you have the language plugin enable. Every time i try to enable it, gives ERROR. I am totally desperate about this as i really need to have this website working soon.
Please help.
Please help.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Aug 10, 2011 9:39 pm
Re: Language Switcher Module and plugin ERROR
Should i disabled all modules, articles and categories that my template has as sample and start from the very beginning? do you think this would help?
- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
I do not understand what a template has to do with sample data.
These are unrelated.
Check that your template styles do not force the site to use the default Home page set to ALL menu item, i.e. the default mainmenu. This is the case for some Yootheme templates.
These are unrelated.
Check that your template styles do not force the site to use the default Home page set to ALL menu item, i.e. the default mainmenu. This is the case for some Yootheme templates.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Jun 09, 2010 5:44 pm
Re: Language Switcher Module and plugin ERROR
I have the same issue with my Artisteer template.
But where to look for this issue, Jean-Marie?
Thanks in advance,
Klaas
But where to look for this issue, Jean-Marie?
Thanks in advance,
Klaas
- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
Difficult to help without checking the sites and templates used.
I suggest you test first if all is OK by using the core Joomla templates, after following precisely the tutorial.
http://info-graf.fr/trunk/en/multi-ling ... s-by-steps
I suggest you test first if all is OK by using the core Joomla templates, after following precisely the tutorial.
http://info-graf.fr/trunk/en/multi-ling ... s-by-steps
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
I find the step-by-step guide hard to follow, as it links to the admin area of that particular site, and I can't seem to find anywhere stating the admin password ...infograf768 wrote:Difficult to help without checking the sites and templates used.
I suggest you test first if all is OK by using the core Joomla templates, after following precisely the tutorial.
http://info-graf.fr/trunk/en/multi-ling ... s-by-steps
In Extension Manager -> Manage I find:
Language Manager 1.7.0
Language Switcher 1.7.0
Norwegian Bokmål Language Pack 1.7.1 (date unknown)
System - Language Filter 1.7.0
Only the Language Pack Entry is not sort of greyed out.
I can still enable and disable the others, and when I enable System - Language Filter, the error appears:
Code: Select all
Warning: Invalid argument supplied for foreach() in …/libraries/joomla/language/helper.php on line 86
flips 

- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
The login credentials are in the first article of the tutorial, towards the end
Read the pdf in my sig.
Publish the new admin multilanguage status module in 1.7.1 and post here a capture of the results.
Read the pdf in my sig.
Publish the new admin multilanguage status module in 1.7.1 and post here a capture of the results.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
Ah, yes, it was there, my "visual grep" totally failed me. And the PDF is very nice, I didn't see that either until you mentioned it.infograf768 wrote:The login credentials are in the first article of the tutorial, towards the end
Read the pdf in my sig.
Publish the new admin multilanguage status module in 1.7.1 and post here a capture of the results.

I can't however seem to find the Multilanguage Status Module, only User Status is available at the status position. (Tried following this:
http://community.joomla.org/blogs/commu ... odule.html)
It should be installed when I upgraded to 1.7.1?
Oh, and after following the easy-to-follow PDF and restructuring my site to match the requirements, I now seem to have hit another error: Redirect loop
("Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.")
Maybe I should get some sleep ...

flips 

- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
I seem to have fixed the redirect problem. Found this thread:
http://forum.joomla.org/viewtopic.php?p=2608359
Which suggested I should update my database, like mentioned at the end of this page,
http://docs.joomla.org/Upgrade_1.6.5_to_1.7
So, I just logged in and ran "mysql -u username -p", entered my password, "use db-name;" and then
That put my site back into non-redirect-loop working order.
It still remains to be seen if my effort was any good, or just bad (I did backup.)
Now, if I select my second site language, the ALL homepage appears, and I have this nice error:
That status plugin is still missing, of course. Maybe I should try reinstalling the update to 1.7.1 now?
(Had some issues there, ref. this thread: http://forum.joomla.org/viewtopic.php?f=625&t=660661)
http://forum.joomla.org/viewtopic.php?p=2608359
Which suggested I should update my database, like mentioned at the end of this page,
http://docs.joomla.org/Upgrade_1.6.5_to_1.7
So, I just logged in and ran "mysql -u username -p", entered my password, "use db-name;" and then
Code: Select all
ALTER TABLE `jos_languages` ADD COLUMN `ordering` int(11) NOT NULL DEFAULT 0 AFTER `published`;
ALTER TABLE `jos_languages` ADD INDEX `idx_ordering` (`ordering`);
CREATE TABLE IF NOT EXISTS `jos_associations` (
`id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.',
`context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.',
`key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.',
PRIMARY KEY `idx_context_id` (`context`, `id`),
INDEX `idx_key` (`key`)
) DEFAULT CHARSET=utf8;
It still remains to be seen if my effort was any good, or just bad (I did backup.)
Now, if I select my second site language, the ALL homepage appears, and I have this nice error:
Code: Select all
Warning: Invalid argument supplied for foreach() in (…)/components/com_content/models/articles.php on line 483
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in (…)/libraries/joomla/database/database/mysqli.php on line 305
(Had some issues there, ref. this thread: http://forum.joomla.org/viewtopic.php?f=625&t=660661)
flips 

- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
Just for comparison I setup a fresh 1.7.1 installation, and that has the multilanguage status module installed, and ordering for Languages is available. (So it differs from my current installation.)
Any way I can just export categories and articles from the old site and import into this fresh db/installation?
(Or maybe I should rebuild it all manually ...)
Any way I can just export categories and articles from the old site and import into this fresh db/installation?
(Or maybe I should rebuild it all manually ...)

flips 

- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
Try this first:
http://forum.joomla.org/viewtopic.php?p ... 9#p2631529
http://forum.joomla.org/viewtopic.php?p ... 9#p2631529
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
Ok, great. I'm thankful for all the help!infograf768 wrote:Try this first:
http://forum.joomla.org/viewtopic.php?p ... 9#p2631529

It ran without error, and now I see the multilanguage status module.
I attached the report. No problems according to that module: But I still have some issues, when I select English, I get this:
Code: Select all
Warning: Invalid argument supplied for foreach() in (...)/components/com_content/models/articles.php on line 483
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in (...)/libraries/joomla/database/database/mysqli.php on line 305
You do not have the required permissions to view the files attached to this post.
flips 

- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
I think it would indeed be better to rebuild on your clean install as it looks like you have a db corruption.
The module looks OK indeed.
The module looks OK indeed.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
Great, thanks anyway!
Doing some research, it seems something weird happened upgrade-wise. I think an update reported successfully applied (from 1.6.3 to 1.7.0) that shouldn't have reported successful. It seems my DB wasn't up to 1.7 standard before applying the 1.7.1 update. (Which was troublesome.) Or something like that.
Anyway, now I kinda like the idea of fixing all my initial errors by rebuilding the site from scratch after grasping more of the Joomla structure/workflow.
Doing some research, it seems something weird happened upgrade-wise. I think an update reported successfully applied (from 1.6.3 to 1.7.0) that shouldn't have reported successful. It seems my DB wasn't up to 1.7 standard before applying the 1.7.1 update. (Which was troublesome.) Or something like that.
Anyway, now I kinda like the idea of fixing all my initial errors by rebuilding the site from scratch after grasping more of the Joomla structure/workflow.

flips 

- flips01
- Joomla! Apprentice
- Posts: 22
- Joined: Wed Sep 28, 2011 10:38 pm
Re: Language Switcher Module and plugin ERROR
Note to self: ALWAYS run the "mysqldump" and "tar jcvf" backups before upgrading. 

flips 

-
- Joomla! Apprentice
- Posts: 10
- Joined: Wed Dec 19, 2012 3:07 am
- Location: India
Re: Language Switcher Module and plugin ERROR
A question, sorry if am out of context. Is there any language pack for arabic? I mean it is written from right to left and so is the site orientation changes in wordpress when i install it. Is it possible to use both english and arabic and keeping the alignment to left?
- infograf768
- Joomla! Master
- Posts: 19070
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Language Switcher Module and plugin ERROR
Please do not hijack topics.pbbiet wrote:A question, sorry if am out of context. Is there any language pack for arabic? I mean it is written from right to left and so is the site orientation changes in wordpress when i install it. Is it possible to use both english and arabic and keeping the alignment to left?
I have replied to you on the topic you started.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group