• Hello everyone,

    I have successfully set up the DHL Plugin, DHL labels can be generated and this can also be seen in the DHL customer portal. Currently I cannot download the generated labels (Chrome & Firefox). There is always the error message ( error – no file ).
    I’m on the latest WordPress version, the DHL Plugin also on its latest version.
    I have updated the permalinks, but that didn’t help either.
    I hope you can help me

    Many greetings
    Fabian

    Translated with https://www.DeepL.com/Translator (free version)

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had this exact same problem when they first made this horrid plugin and no one helped me. I spent hours looking at their PHP code and finally I found what I needed to change. What I did was I just ditched their method of attempting to save files and used my own hardcoded paths.

    Look in the file “class-pr-dhl-api-rest-label.php” which can be found under “includes/pr-dhl-api” for these lines:

    $label_path = PR_DHL()->get_dhl_label_folder_dir() . $label_name;
    $label_url = PR_DHL()->get_dhl_label_folder_url() . $label_name;

    And replace them with this (edit the paths as required for your server):

    $upload_path = '/websites/mysite.com/wp-content/uploads';
    $upload_path2 = 'https://mysite.com/wp-content/uploads';
    $label_path = $upload_path . '/DHL/'. $label_name;
    $label_url = $upload_path2 . '/DHL/'. $label_name;

    This will put all the generated labels into “C:/websites/mysite.com/wp-content/uploads/DHL”.

    Also, make sure you have your read/write permissions on your server setup correctly.

    Plugin Author Shadi Manna

    (@shadim)

    @f03rb Please email us at “dhlsupport [at] progressusmarketing.com” so we can review the issue together.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Label is created – cant be downloaded’ is closed to new replies.