Hello Nayeem,
Ok I found what was wrong. It was related to the setting “Sanitize Filename”.
I didn’t know that there was this setting for this plugin and even less that my colleagues had activated this 😄.
So without this feature, the generated file keep the same name as expected ✅
Regards,
Loïc
Hello Nayeem,
Thank you for your reply 🙂
I just tried to reproduce this issue on another server and there is no error so I suppose this is related to the server configurations. I will see with the server manager and let you know if necessary.
Regards,
Loïc
Thank you!
But don’t you have a “migration” doc from “older” version to the newest one? Thats’s a little bit weird to have changed you code without telling us some major updates in the code was made 🙂
Hi Nayeem,
Unfortunately, this is not really hat I want. In these 3 docs, you don’t talk about WPDM\Packages …
Could you ask a dev to answer me?
Kind regards,
Cedric
Hello Nayeem 🙂
Thank you! Where is the documentation for this API?
Is this correct:
$data['download_link'] = WPDM()->package->downloadLink($data['ID'], 0, array(
'template_type' ► 'url'
));
And this ?
$data['files'] = WPDM()->package->getFiles(get_the_ID());
Kind regards,
Cedric
Hello Nayeem,
Thank you, but I’m a developer and I don’t need a shortcode that will echo some formatted values. I need to use functions, methods, … to get the values and format them like I want.
Thank you in advance,
Cedric
Hello Nayeem 🙂
No problem. I have backups yes, but I don’t want to use the default template file. In fact, I only need to know by which function you have replace \WPDM\Package::downloadLink()
, as it seems it’s not available anymore 🙂
I’m a developer, so you can be techy 😉
Kind regards,
Cedric
Thank you for your answer!
Unfortunately, I can’t give you an access to the admin :s
Hello there 🙂
Have you been able to fix this? I have the same “Network error” problem…
Hello there,
I have the exact same error here… Also since mid-march :s
Kind regards,
Cedric
Thank you Shahjada :)!
Hi there,
I think this feature is useful for all your users, not just me… I think when it comes to user authentication, 2FA is a must in 2020…
Hi Nayeem,
Thank you for your answer.
You hope this will be fixed :p ? If this is a bug you were aware of, you should know if this will be fixed with the updates :p !
I’ve checked the changelogs (https://www.wpdownloadmanager.com/wordpress-download-manager-change-log/) and you don’t mention anything related to this bug so this will not be fixed 😀
Thank you,
Cedric
Hi Shahriar,
Thank you,
Cedric
Thank you Shariar,
Cedric
Hi,
Please, could you please answer something ? Even just saying “Hello”, or that you’ll never fix this, but you can’t let your customer with no informations…
Thank you,
Kind regards,
Cedric
????????????
Hi there!
Could you please answer me…?
????????????
Shahriar,
How can I modify this function? Or how can I filter it?
Hi Shahriar!
In fact, that would be as simple as that:
function wpdm_login_url($redirect = ''){
$id = get_option('__wpdm_login_url', 0);
if($id > 0) {
if(function_exists('pll_get_post')) {
$url = get_permalink(pll_get_post($id));
} else {
$url = get_permalink($id);
}
if ($redirect != '')
$url .= (strstr($url, '?') ? '&' : '?') . 'redirect_to=' . $redirect;
}
else $url = wp_login_url($redirect);
return $url;
}
Hi Shahriar,
Where are you with this bug?
Thank you,
Cedric
Hi Shariar,
Would you be kind enough to answer my many unanswered messages …?
It’s been 3 months and a half now that this bug has been reported and 2 months and a half without answer from your side…
Thank you in advance,
Cedric
Hi Steve,
Yes, it’s only on Edge on my side.
Hi Shariar,
Could you please answer me?
It’s been 3 months since I reported this bug and almost 2 months without answer… I think that since the time, this bug should have been solved…
Thank you,
Cedric
Perfect thank you ! This is resolved !
Hi Shahriar,
Thank you !
Before receiving your answer, I ended up using this code :
$data['url'] = wpdm_download_url($data['ID']);
Is this better or not than the code you gave me ? Which one is the best in term of performance ?
Thank you !
Cedric