News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

JDownloads 4.0.40 Stable SEF issue - [Not a bug!]

Started by DesMas, 10.02.2024 17:25:07

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

DesMas

Hello,

i migrated a Joomla 3 Site to 4 but when i turn on SEF i only receive a 404 page for the JDownloads links to categories.

Tests:
  • replaced the .htaccess file with the default one in the root folder, but no effect.
  • tried SEF without mod rewrite, but no effect.
  • switched to the default theme, but no effect.



Specs:
  • Joomla:4.4.2
  • PHP: 8.2
  • JDownloads new installed
  • Template: Helix 3
  •  

Arno

Hi,
so normally jDownloads works with SEF without any problems. This can also be seen on our Joomla 4 test installation (demo).

After an update from 3.x there are unfortunately a variety of possible causes. Above all from third-party extensions. Therefore, troubleshooting is often difficult and does not necessarily have to be due to jDownloads.

Can I take a look at the backend?
Data via PM.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

DesMas

#2
Moin Arno,

bisher hattest du  offenbar noch keine Zeit, sich mit den dir per PN zugesandten Daten das Problem anzuschauen.
Daher habe ich zum Test eine neue Installation der Version 5 auf einer Sub-Domain aufgesetzt und komme dort interessanter Weise auf den gleichen Fehler.

Es reicht bereits, wenn "Suchmaschinen-freundliche URL" ohne "URL-Rewrite nutzen" aktiviert ist, um den Fehler zu produzieren.

irgendwie ist das schräg.
------------------------------------------Edit by ColinM
Hello Arno,

So far you obviously haven't had time to look at the problem using the data sent to you via PM.
Therefore, to test it, I set up a new installation of version 5 on a subdomain and, interestingly, I got the same error there.

It is enough if "Search engine friendly URL" is activated without "Use URL rewrite" to produce the error.

somehow that's weird.
  •  

Arno

#3
Moin,
entschuldige, zuletzt hatte ich viele Useranfragen, da ist deine wohl irgendwie untergegangen.  :-\  ::) 

Leider funktionieren die Daten nicht für dein backend. Im Frontend sehe ich nur den test2 link, der mir aber nicht weiterhilft.

Funktionieren andere Links in jDownloads?
Und wie sieht es im Backend aus?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

DesMas

#4
Moin Arno,

habe das Passwort überprüft und zurückgesetzt.
Es betrifft die Links im Menü, oben rechts unter "Dokumente"
---------------------------------------- erdit by ColinM
Hello Arno,

I checked and reset the password.
It affects the links in the menu, top right under "Documents"
  •  

Arno

#5
Okay, aber das hilft mir nicht. Was soll ich denn da außer der Fehlermeldung sehen?

Und noch einmal:

Funktionieren andere Links (z.B. Menü typen) in jDownloads?
Und wie sieht es im Backend aus?

Quotei migrated a Joomla 3 Site to 4
Könnte es sein, dass dich das auch betrifft?
https://www.jdownloads.com/forum/index.php?topic=14214.msg50839;topicseen#msg50839
----------------------------------------edit by ColinM

Hello Arno,

the other general links work.
There are no links from JDownloads to categories
The backend looks good.

In my opinion, the post named by doesn't fit, because I set up a new Joomla 5 at the same time and can recreate the same problem there. (development sub-domain, you can log in there with the same access data).

To be on the safe side, I uninstalled the Helix3 template/framework and the SP Page Build, but the problem still persists.

Specification:
Under the development URL there is a link to a category and a link to a file in the menu.
both throw a 404 error
SEF is active there, without mod_rewrite
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

DesMas

#6
Moin Arno,

die anderen allgemein links Links funktionieren.
Links von JDownloads auf Kategorien nicht
Das Backend sieht gut aus.

Der von benannte Post passt m.E. nicht, denn ich habe parallel ein neues Joomla 5 aufgesetzt und kann dort das gleiche Problem nachstellen.(development Sub-Domain, kannst dich dort mit den gleichen Zugangsdaten einloggen).

Zur Sicherheit hab ich dort das Helix3 Template/Framework und den SP Page Build wieder deinstalliert, dennoch bleibt das Problem bestehen.

Konkretisierung:
unter der development URL ist im Menü je ein link zu einer Kategorie und einer zu einer Datei.
 -------------------------edit by ColinM
Hello Arno,

the other general links work.
There are no links from JDownloads to categories
The backend looks good.

In my opinion, the post named by doesn't fit, because I set up a new Joomla 5 at the same time and can recreate the same problem there. (development sub-domain, you can log in there with the same access data).

To be on the safe side, I uninstalled the Helix3 template/framework and the SP Page Build, but the problem still persists.

Specification:
Under the development URL there is a link to a category and a link to a file in the menu.
both throw a 404 error
SEF is active there, without mod_rewrite
beide werfen einen 404 Fehler
SEF ist dort aktiv, ohne mod_rewrite
  •  

DesMas

#7
Moin Arno,

Nachtrag.
Auf der development Seite hab ich den obligatorischen Menülink "Alle Kategorien anzeigen (Standard)" in einem nicht angezeigten Menü platziert und das die Zugriffsebene auf "Super User" gestellt. -> das dürfte das Problem sen, denn wenn die Stufe "öffentlich" ist, funktionieren die Links zu JDownloads Kategorien

Allerdings kommt es beim Aufruf einer Datei zu einem Fehler "Fehler: Gesicherte Verbindung fehlgeschlagen"
-----------------------------------------Edit by ColinM
Hello Arno,

Addendum.
On the development page I placed the mandatory menu link "Show all categories (default)" in a non-displayed menu and set the access level to "Super User". -> That should be the problem, because if the level is "public", the links to JDownloads categories work

However, when opening a file, an error occurs: "Error: Secured connection failed"
-----------------------------------------------------------------

  •  

Arno

#8
Quote from: DesMas on 18.02.2024 19:49:46Moin Arno,

Nachtrag.
Auf der development Seite hab ich den obligatorischen Menülink "Alle Kategorien anzeigen (Standard)" in einem nicht angezeigten Menü platziert und das die Zugriffsebene auf "Super User" gestellt. -> das dürfte das Problem sen, denn wenn die Stufe "öffentlich" ist, funktionieren die Links zu JDownloads Kategorien

Allerdings kommt es beim Aufruf einer Datei zu einem Fehler "Fehler: Gesicherte Verbindung fehlgeschlagen"
Das kann so natürlich nicht funktionieren mit den User Rechten.
Schau mal in unsere Dokumentation, dort ist ein Beispiel mit der richtigen Verwendung von hidden menu in jDownloads.

Quote from: DesMas on 18.02.2024 19:49:46Addendum.
On the development page, I have placed the obligatory menu link "Show all categories (default)" in a menu that is not displayed and set the access level to "Super User". -> this should solve the problem, because if the level is "public", the links to JDownloads categories work

However, when calling up a file, an error "Error: Secured connection failed" occurs
Of course this cannot work with the user rights.
Have a look at our documentation, there is an example with the correct use of hidden menu in jDownloads.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

DesMas

#9
Moin Moin,

für die Nachwelt eine Information seitens des Providers.
Die eigentliche Ursache, warum der Zugriff auf die Dateien fehlschlägt liegt darin begründet, dass die .htaccess des Servers um "RequestHeader unset Range" erweitert werden muss.

QuoteWir haben so eben die .htaccess Ihrer Webseite um die Zeile

RequestHeader unset Range

ergänzt. Damit funktioniert z.B. der Download wieder.

Durch diese Zeile werden die RangeRequests zum Server unterbunden, und die Datei in einem Stück, anstatt mehrere kleinerer Teile heruntergeladen. Gerade bei Joomla gibt es recht häufig dieses Problem, das beim Download die tatsächliche Dateigröße von der die von der Anwendung als content-length zurückgeben wird abweicht und dadurch der Webserverprozess beim lesen der "Stücke" nichts mehr erhält, was zu dem Fehler 502 führt.
---------------------------------------------------------------------------------------------------------
Good Morning,

For posterity, information from the provider.
The actual reason why access to the files fails is that the server's .htaccess needs to be expanded to include "RequestHeader unset Range".

QuoteWe just added the .htaccess of your website to the line

RequestHeader unset Range

added. This means, for example, that the download will work again.

This line stops the RangeRequests to the server and downloads the file in one piece instead of several smaller parts. Especially with Joomla, there is this problem quite often: when downloading, the actual file size differs from that returned by the application as content-length and as a result the web server process no longer receives anything when reading the "pieces", which leads to error 502.
  •  

Arno

Danke für das Update.  ;)

Thanks for the update ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •