Viewing 8 replies - 1 through 8 (of 8 total)
  • Which localization plugin are you using? The problem is the difference between the language bases; /en/ and /nl/. If you can, I’d recommend excluding /download/ paths from being rewritten by your translation plugin.

    Thread Starter LordLiverpool

    (@lordliverpool)

    @nekvt

    Thanks for replying so quickly.

    I’m using WPML – https://wpml.org/

    OK I’ll check WPML’s settings to see if I can simplify the URL.

    And I’ll update this thread with my findings.

    Thanks.

    Thread Starter LordLiverpool

    (@lordliverpool)

    @nekvt

    Here a screenshot of the WPML Options:
    https://i1091.photobucket.com/albums/i395/LordLiverpool/WPML%20options_zpstu9htro3.jpg

    I picked:

    Language name added as a parameter e.g. https://culturalheritagetourism.training/en/?lang=da

    See Here:
    https://i1091.photobucket.com/albums/i395/LordLiverpool/WPML%20options%202_zpspghzm7tf.jpg

    It told me I needed to update the WordPress Permalinks, so I did.

    Now when I go to:
    https://culturalheritagetourism.training/roots-manuals/

    And choose the Dutch flag once again, I’m redirected to here:
    https://culturalheritagetourism.training/roots-handleidingen/?lang=nl

    This is as expected. The URL format has indeed changed. But when I click the Download Monitor button to get the PDF, I get the same original error message. See Here:
    https://i1091.photobucket.com/albums/i395/LordLiverpool/WPML%20options%202_zpspghzm7tf.jpg

    Do you know if I picked the right WPML option to work with Download Monitor?
    Or to get this to work do I need to delete and re-upload the PDFs again?

    Thanks very much.

    Thread Starter LordLiverpool

    (@lordliverpool)

    @nekvt

    Your thoughts are appreciated.

    Thanks.

    Unfortunately, I can’t test WPML compatibility personally because it’s a premium plugin. I can’t yet provide a configuration that is known to be compatible with Download Monitor.

    If you could maybe pull your PHP/server error logs and see which file path is actually being requested when this error is thrown, it would be another puzzle piece to work with.

    Glancing at the WPML documentation, something else to try might be directly managing translations of your Download posts: Getting Started Guide – WPML – How to translate pages, posts and custom posts

    I’m only guessing, having no hands-on experience, but it seems like selecting ‘do nothing’ or making sure that there’s translated content in each language for each of your downloads (even if the file is actually the same) should ensure that the URLs resolve correctly.

    Thread Starter LordLiverpool

    (@lordliverpool)

    @nekvt

    Thank you for replying, it’s really appreciated.

    OK, I checked the error_log and couldn’t find anything of significance. Definitely nothing for my IP Address and nothing at all in the last 8 hours.

    I checked the access_log

    I can see my IP address requesting the Page:
    92.251.235.157 - - [25/Jun/2019:11:03:26 +0100] "GET /download/708/?lang=nl HTTP/1.1" 200 2818 "https://culturalheritagetourism.training/roots-handleidingen/?lang=nl" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" culturalheritagetourism.training

    And then when I click the download button:
    92.251.235.157 - - [25/Jun/2019:11:03:31 +0100] "GET /favicon.ico HTTP/1.1" 200 - "https://culturalheritagetourism.training/download/708/?lang=nl" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" culturalheritagetourism.training

    There are no errors reported in the error log at these times.

    Does the URL:

    https://culturalheritagetourism.training/download/708/?lang=nl

    Look valid to you?

    If I copy and paste it straight into chrome I get your error message:

    No file path defined. Go to the homepage →

    Do you think I should open a ticket with WPML?

    Thanks.

    Hello,

    I apologize for the delay in replying.

    I regret to say we do not have any compatibility with “WPML” yet.

    I tested the link https://culturalheritagetourism.training/download/708/?lang=nl and the download work. So is this issue resolved?

    Thread Starter LordLiverpool

    (@lordliverpool)

    @hchouhan My apologies for not updating this thread.

    The issue is resolved.

    I opened a ticket with WPML. In the end it was a really simple answer.
    All we need to do to get it to work was to give each page a unique slug.
    I assumed the slug would be auto-translated by WPML. It wasn’t.
    When I manually changed the slug to something unique then bingo the page/course/pdf appeared.

    Thanks for you invaluable help resolving this. Its appreciated.

    Thank You.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No file path defined. Go to the homepage →’ is closed to new replies.