• Resolved mihue

    (@mihue)


    I don’t know when this happened, but translated downloads are not working anymore and give a “file not found” error. I notice that if I manually add a language code to the URL it works: For instance, the generated URL “…mysite.com/download/mytranslatedfile/?tmstv=0000” does not work, while “…mysite.com/fr/download/mytranslatedfile/?tmstv=0000” will then work again. The problem is that I cannot manually change the URLs of the download files. I have the same issue in several sites! Any clues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mihue

    (@mihue)

    Correction: The error message is “Download doesn’t exist > to homepage”
    I also have found out that all sites using Download Monitor and WPML are affected, independent from the Version of WPML or other surrounding plugins – but only from DLM Version 5.0.0 (21. August) on. Before that (up top 4.9.14) the language code was being normally appended to the URL. There was a double slash issue, but that didn’t affect the downloading.

    Plugin Author Razvan Aldea

    (@raldea89)

    Hello @mihue ,

    Could you please add the following PHP snippet in your child theme’s functions.php file, or using a plugin for adding PHP snippets, and let me know if the problem still persists?

    add_filter( 'dlm_wpml_home_url_filter', '__return_false' );

    Warmly,
    Razvan

    Thread Starter mihue

    (@mihue)

    Yes, it worked great and all translated downloads are functioning again, the problem really was that the language code was not being appended anymore since Version 5.0.

    Thank you for the fast support!
    Cheers
    Mihue

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.