IkBenBen Posted January 11, 2015 Share Posted January 11, 2015 Hi all, I built a multi-langual Processwire (2.5.2) site 3 months ago and it was recently brought to my attention that the other languages for the homepage are not working anymore (showing a 404 not found). website.com <-- works website.com/en/ <-- does not work website.com/de/ <-- does not work website.com/anypagehere/ <-- works website.com/en/anypagehere/ <-- works website.com/de/anypagehere/ <-- works The problem is only on the homepage. If you go to any other page and select a different language from there it shows the right page (although when you click from another language on home, you're being redirected to the homepage in the default language with the default url: website.com/ ).I haven't changed anything since I built the site. I noticed that when I change the language under the homepage to anything but en or de, it works. For example website.com/en/ doesn't work, but website.com/e/ or website.com/sdksdssd/ does work (and shows the English translation). The problem lies with the en and de names. Does anyone know how to fix this? Link to comment Share on other sites More sharing options...
Pierre-Luc Posted January 12, 2015 Share Posted January 12, 2015 Try clearing the cache under Modules > Page Render. Does it change anything? Link to comment Share on other sites More sharing options...
IkBenBen Posted January 12, 2015 Author Share Posted January 12, 2015 Thanks for your reply. Unfortunately there are no files in that cache. Link to comment Share on other sites More sharing options...
Jan Romero Posted January 12, 2015 Share Posted January 12, 2015 Hmm, have you checked the settings of your frontpage? Are the language paths set and active? Could it be the frontpage has a child by the name “en” that gets precedence over the language prefix and throws a 404 (for example, if there is no template file)? edit: actually, nevermind. I tested this and it doesn’t fail the way you described. At least for me. Link to comment Share on other sites More sharing options...
IkBenBen Posted January 12, 2015 Author Share Posted January 12, 2015 To answer your question anyway: Language paths are set and active and frontpage also has no child with the name "en". Link to comment Share on other sites More sharing options...
suntrop Posted January 12, 2015 Share Posted January 12, 2015 I had similar effects about a year ago. It wasn't clear what the problem was, but I had to put in some content in all language fields (content in my case). Perhaps, try to change/add content. Is there anything inside your error log about the homepages? Link to comment Share on other sites More sharing options...
IkBenBen Posted January 15, 2015 Author Share Posted January 15, 2015 Thanks. I tried adding/changing the content, but it also doesn't help. Where can I find the error log about the homepages? Link to comment Share on other sites More sharing options...
Nico Knoll Posted January 16, 2015 Share Posted January 16, 2015 You find it in /site/assets/logs/errors.txt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now