<p>I have accidentally add "return array.." two times in my config/general.php file. I removed one and its working fine now. </p>

CC BY-SA 3.0
2015-03-31T13:31:25.797Z
2015-03-31T13:31:25.797Z
imnotsure
<p>I've tried the LanguageLink and the last solution described here: <a href="https://craftcms.stackexchange.com/questions/44/how-can-i-build-a-language-switcher/6611#6611">How can I build a language switcher?</a> but it never returns any URI. I'm not using translated slugs.</p>

<p>As setup I've used: <a href="http://buildwithcraft.com/docs/localization-guide" rel="nofollow noreferrer">http://buildwithcraft.com/docs/localization-guide</a>. The language dropdown is part of top.html which I've included in each page</p>

<p>Things I have checked:</p>

<ul>
<li>/config/general.php and that looks fine</li>
<li>index.php in public_html/stagingtest/ (for english) and public_html/stagingtest/es/ and public_html/stagingtest/nl/ and appears to be ok</li>
<li>when I go to www.example.com/stagingtest/es/report/ its loading fine. craft.locale appears to be ok, but the language uri's are still blank. I can see siteUrl is displaying the correct uri. </li>
</ul>

<p>Any suggestions?</p>

<config><language>
Language link not working for me
# Language link not working for me

(Asked by: username_0 on 2015-03-31)

I've tried the LanguageLink and the last solution described here: [How can I build a language switcher?](https://craftcms.stackexchange.com/questions/44/how-can-i-build-a-language-switcher/6611#6611) but it never returns any URI. I'm not using translated slugs.

As setup I've used: <http://buildwithcraft.com/docs/localization-guide>. The language dropdown is part of top.html which I've included in each page

Things I have checked:

* /config/general.php and that looks fine
* index.php in public\_html/stagingtest/ (for english) and public\_html/stagingtest/es/ and public\_html/stagingtest/nl/ and appears to be ok
* when I go to www.example.com/stagingtest/es/report/ its loading fine. craft.locale appears to be ok, but the language uri's are still blank. I can see siteUrl is displaying the correct uri.

Any suggestions?

**Tags:** config, language


---

## 1 answers

### Answer by username_0 on 2015-03-31. Score: 2 | Accepted answer

I have accidentally add "return array.." two times in my config/general.php file. I removed one and its working fine now.


---

