News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Download article Routing on Linux Servers - [Problem solved]

Started by Gratia-Mira, 28.11.2022 11:16:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gratia-Mira

  - Joomla Version: latest (4.2.5)
  - PHP Version: 8.1.12
  - It is a new Joomla 4 installation? No - 1. Update Joomla 2. Update JDownloads.
  - Server Linux.
  - Live Site: https://www.edition-nehemia.ch/j3/mehr-top/downloads.html?view=download&id=142:berge-in-der-bibel-und-ihre-bedeutung&catid=3:power-point-praesentationen

Hi Arno,

On Windows servers (xampp), when routing download items, the parameters are resolved correctly. But this does not happen on Linux servers.

Link on Windwos (xampp): http://localhost/n-edne/index.php/mehr-top/downloads/power-point-praesentationen/download/3-power-point-praesentationen/142-berge-in-der-bibel-und-ihre-bedeutung.html
Link on Linux: https://www.edition-nehemia.ch/j3/mehr-top/downloads.html?view=download&id=142:berge-in-der-bibel-und-ihre-bedeutung&catid=3:power-point-praesentationen

I checked all the settings and did not notice any difference. Sometimes with such errors it is due to the lower case not being applied during the update.

Do you have an idea?

Liebe Grüsse
Christoph
  •  

ColinM

Hi
Thanks for the report.  Will look into it.
I downloaded AOK from your live site
The actual link is
<div><a href="/j3/component/jdownloads/?task=download.send&amp;id=142&amp;catid=3&amp;m=0" class="jdbutton jorange ">Download</a></div>
Also the Linux link seems OK
When I try on my  XAMPP test site downloading from a menu item the link is
<a href="/abcde/index.php/list-pdf-files-cat?task=download.send&amp;id=85&amp;catid=36&amp;m=0" target="_blank" title="Start downloading" class="jdbutton jblue ">Download</a>
And it works OK - so to me it look like the one on your XAMPP site is the odd one.

 Did you use com_jdownloads_pre_beta_4_0_2.zip ?

Colin
Colin M
  •  

Gratia-Mira

Hi Colin,

thanks for the quick feedback!

Test site (XAMPP) and live site use exactly the same software com_jdownloads_pre_beta_4_0_2.zip). Also the downloads are working.

What doesn't work on the live site (Linux) is the page link (not the download link). This is clumsy because the internal links are broken.

The parameters (?view=download&id=142:berge-in-der-bibel-und-ihre-bedeutung&catid=3:power-point-praesentationen) are not converted to a clean path.

Kind regards
Christoph
  •  

ColinM

Gratia-Maria
Think you should completely uninstall jd4.0.2 and then reinnstall with jD4.0.5 pre beta ( due later today or tomorrow)

Colin
PS most of my testining is on XAMPP
Colin M
  •  

Gratia-Mira

Hello,

i have found the "issue". You just have to rename the file "legacyrouter.php" to "LegacyRouter.php". The file is located in the folder: components/com_jdownloads/src/Helper.

Another solution was described like this:
https://www.jdownloads.com/forum/index.php?topic=13784.msg48943#msg48943

"JRequest Issue is in this file: com_jdownloads.php in the Komento components subfolder '/komento_plugins'

Deleting this file solved the problem. "

Thanks and greetings
Christoph
  •  

Arno

Hi,
thanks for the hint. You have right this was still wrong.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •