1
Install & Configure jDiction / Re: Problems with Joomla 3.8.3
« on: October 14, 2018, 05:48:25 pm »
I am having the same issue with Joomla 3.8.13 and Jdiction 2.2.2
This is happening with a fresh installation of Joomla on a ubuntu 16.04 LTS
Current PHP version is 7.0.32-0ubuntu0.16.04.1
The jdlanguage module generates broken links to the different translations of the currently displayed article, which all result in a 404 error.
This is reproducible on this system with a fresh installation of only Joomla and jdiction with as little as one article and 3 languages
IMPORTANT DETAIL: The error does not appear if the Joomla installation is directly in the document root, so with a site url of
http://localhost/index.php
visiting the site under
http://localhost/index.php/de/
everything works fine! The links to the translated versions get correctly generated as
http://localhost/index.php/en/
http://localhost/index.php/de/
...etc
however if Joomla is installed in a subfolder such as
http://localhost/test/index.php
the first page view works, redirecting to
http://localhost/test/index.php/de/
but the links to the translated version of the article are broken such as
http://localhost/test/index.php/en/p/de/
http://localhost/test/index.php/he/p/de/
the link always consists of the correct URL suffixed by garbage that was part of the originating article's URL - with its length depending on the URL length:
another example:
If the joomla installation is in
http://localhost/thisisareallylongtestwithareallylongname/index.php
then the translation links on
http://localhost/thisisareallylongtestwithareallylongname/index.php/en/
link towards
http://localhost/thisisareallylongtestwithareallylongname/index.php/de/longtestwithareallylongname/index.php/en/
generated html code:
Hope that helps in reproduction and fixing this.
This is happening with a fresh installation of Joomla on a ubuntu 16.04 LTS
Current PHP version is 7.0.32-0ubuntu0.16.04.1
The jdlanguage module generates broken links to the different translations of the currently displayed article, which all result in a 404 error.
This is reproducible on this system with a fresh installation of only Joomla and jdiction with as little as one article and 3 languages
IMPORTANT DETAIL: The error does not appear if the Joomla installation is directly in the document root, so with a site url of
http://localhost/index.php
visiting the site under
http://localhost/index.php/de/
everything works fine! The links to the translated versions get correctly generated as
http://localhost/index.php/en/
http://localhost/index.php/de/
...etc
however if Joomla is installed in a subfolder such as
http://localhost/test/index.php
the first page view works, redirecting to
http://localhost/test/index.php/de/
but the links to the translated version of the article are broken such as
http://localhost/test/index.php/en/p/de/
http://localhost/test/index.php/he/p/de/
the link always consists of the correct URL suffixed by garbage that was part of the originating article's URL - with its length depending on the URL length:
another example:
If the joomla installation is in
http://localhost/thisisareallylongtestwithareallylongname/index.php
then the translation links on
http://localhost/thisisareallylongtestwithareallylongname/index.php/en/
link towards
http://localhost/thisisareallylongtestwithareallylongname/index.php/de/longtestwithareallylongname/index.php/en/
generated html code:
Code: [Select]
<a href="http://localhost/thisisareallylongtestwithareallylongname/index.php/de/longtestwithareallylongname/index.php/en/" target="_self" class="jDlang lang de-DE" title="Deutsch (Deutschland) - Pagetitile" style="background-image: url(/thisisareallylongtestwithareallylongname/media/mod_languages/images/de_de.gif);"></a>
Hope that helps in reproduction and fixing this.