English > Install & Configure jDiction
Links to other languages
hosstapio:
Hi
I have a problem with links. Normal Index is like index.php/fi-FI/ but when I try to change language the link is index.php/de-DE/fi-FI/ and gives me following 404 error:
Die Seite kann nicht angezeigt werden, weil:
Ein veraltetes Lesezeichen
Eine Suchmaschine hat einen veralteten Index der Website
Eine falsche Adresse
Kein Zugriff auf diese Seite!
Die angefragte Quelle wurde nicht gefunden!
Während der Anfrage ist ein Fehler aufgetreten!
Harald Leithner:
2 possible reasons,
the language has not the correct access rights
or jdiction doesn't support xx-XX urls, if you change this to xx it should work.
hosstapio:
Hi and thanks for answer.
I think access rights are ok, all languages are set to public in Language manager -> Content languages. Should I change them in some other palce?
Now if I go to front page and click flag I get URL like index.php/de/fi/ (fi is default, de and en are others). If I disable SEO URLs the links are allright but there seems to be something conflicting with component SWMenu Pro:
Fatal error: Uncaught exception 'UnableToCalculatePositionException' with message 'cannot calculate position of '88' within '88'OR jos_swmenu_extended.moduleID IS NULL) WHERE jos_categories.published =1 AND jos_categories.extension='com_content' ORDER BY jos_categories.lft' in /home/basaarif/public_html/virrilaw/libraries/jdiction/database/parser/classes/position-calculator.php:188 Stack trace: #0 /home/basaarif/public_html/virrilaw/libraries/jdiction/database/parser/classes/position-calculator.php(204): PositionCalculator->lookForBaseExpression('SELECT jos_cate...', 338, Array, 2, Array) #1 /home/basaarif/public_html/virrilaw/libraries/jdiction/database/parser/classes/position-calculator.php(204): PositionCalculator->lookForBaseExpression('SELECT jos_cate...', 338, Array, 'sub_tree', Array) #2 /home/basaarif/public_html/virrilaw/libraries/jdiction/database/parser/classes/position-calculator.php(204): PositionCalculator->lookForBaseExpression('SELECT jos in /home/basaarif/public_html/virrilaw/libraries/jdiction/database/parser/classes/position-calculator.php on line 188
Harald Leithner:
hmm, the sql parser is not perfect and has some Problems and the bigger problem the projects seams to be dead
http://code.google.com/p/php-sql-parser/
maybe we need a new one.
at the moment the best way is to ask the author of swmenu if he could rewrite the query to use JDatabaseQuery.
hosstapio:
Hi
I changed the menu system and now the parser works. But still there's some problems with links. You can see it yourself http://109.163.208.5/~basaarif/virrilaw/index.php
Navigation
[0] Message Index
[#] Next page
Go to full version