-
Search Results
-
I place links to package documents on my site using the Download Manager short codes. Each package contains only a single PDF. I want a link template that points directly to the PDF on the server, e.g. the link should be “…/myurl/wp-content/uploads/download-manager-files/mypackagedocument.pdf”. Instead, the link is the Download Manager short code, e.g. “…/myurl?wpdmdl=16123&ind=17150293486941”, and each time the link is accessed a new url is created with a unique ?refresh parameter added. Can I easily create a template (or does one exist) that would allow me to link directly to the PDF on the server?
If using the “file cart add-on” with “form lock” (in our case contact form 7) it is not possible to see who downloaded what. In our case we want to see the data that the user filled out in the form (name, e-mail, terms of use) and the files they downloaded. It is possible to send an E-Mail Notification via Contact form 7 with all the data to our admin but the files that have been downloaded are not shown there.
Our File Cart with Form Lock
https://tinyurl.com/2bhx5rk8Topic: Embed Download Links
I’m having an issue with the embedded links to a download. When I put the link to a download onto a post, it embeds it, however when you try and go to the download or click he download button, nothing happens and it doesn’t go to the Download page.
Below is the Chrome console errors when I click either of the links to go to the download page and I’ve included a post URL as an example:
Post Page with link to download page: https://techygeekshome.info/2024/04/java-8-411/
Download Page: https://techygeekshome.info/wpdm-package/java-8-update-411/
Error Log:
wp-embed.min.js?screx=1&sxcb=280a&ver=6.5.2:2 Uncaught TypeError: Failed to construct ‘URL’: Invalid URL
at l.querySelector.d.addEventListener.d.wp.receiveEmbedMessage.d.wp.receiveEmbedMessage (wp-embed.min.js?screx=1&sxcb=280a&ver=6.5.2:2:659)
l.querySelector.d.addEventListener.d.wp.receiveEmbedMessage.d.wp.receiveEmbedMessage @ wp-embed.min.js?screx=1&sxcb=280a&ver=6.5.2:2
postMessage (async)
b @ embed/?ez_iframe=1:9
(anonymous) @ embed/?ez_iframe=1:9I’m currently using Download Manger Pro 6.5.3. When I add more than 10 short codes to any page to embed the download links the page will then time out and I give a 502 error. When I deactivate the Plugin the page loads without issue. What could be causing this? See URL for affected page.
https://www.alvaradomfg.com/resources/sec-resources/.I’m using Stripe Add-on for WP Download Manager Pro. After successfully paying for an item, I am returned to the cart where it says the “Order Status: Processing” and “If you still want to complete the order, Pay Now (with green button).”
Endpoint URL seems connected. And webhooks are listening for payment_intent.payment_failed and payment_intent.succeeded
How can I get WPDM to recognize successful payment?
I’m posting this comment to help those who may encounter the same issues I did using WPDM (free or pro) on an OVH mutualized hosting and WP-Rocket as a caching plugin. If it can save someone from wasting hours like I did…
Problem description: when clicking on the “download” button in WPDM documents page, the file download starts but stops and ends in failure.
Cause: the Gzip rules added by WP-Rocket to the htaccess file are incompatible with those of OVH. In some cases, this doesn’t cause any visible problems, but if you install WPDM, downloads don’t work.
Resolution: install the “WP Rocket | Remove GZIP (mod_deflate) rules” plugin proposed by WP-Rocket on this URL : https://docs.wp-rocket.me/article/1790-erreur-blank-response-from-server-ovh-locotranslate page.
They offer this solution for Locotranslate, but it also covers the WP-ROCKET/OVH problem.
Hope that helps !
Topic: Bearer Token Authentication
Hello,
I am currently testing the WPDM API before purchasing the pro version.
After some struggles, I have managed to authenticate using Basic Authentication. To make it work I had to make changes to the htaccess file.
Now I want it to work using Bearer Token.
I am running the following command:
curl -X GET \
https://host.com/wp-json/wpdm/v1/packages \
-H ‘Authorization: Bearer 65d67afbbXXXX’ \I get the following response:
{“code”:”rest_forbidden”,”message”:”You cannot view the post resource.”,”data”:{“status”:401}}%
A few questions:
– Is bearer token authentication still supported?
– If so, do I need to download additional plugins for it to work? I only have the WPDM plugin and the WPDM Rest API addon
– Why is it not working? Could it also be a problem with the htaccess file? If so in what way should I modify it?I saw one the moderators suggest the following:
“REST API is working now. Some Apache module was removing the authorization header from the request. I had to add CGIPassAuth On in your .htaccess file to allow the bearer token in the header.”
I tried adding “CGIPassAuth On” but it made no difference.
Please help! 🙂
Hi,
we develop our projects under a temporary development URL (http) before they go online under their final domain name. During the development phase, downloads are created via “Select from media library” and work flawlessly. As soon as the project goes online and the live URL is defined for the WordPress and website address (https), everything works fine… except for all previously defined downloads, whose URL still refers to the previously used development URL. Logically, visitors then receive a security warning. In short: the newly defined URL is not taken into account for the created downloads. Am I missing something? What should I do? In the past, it was sufficient to recreate the downloads manually, but a current website in the development stage already has 450 previously created downloads…
Thank you very much for hints!I use CookieYes for my cookie management and on a scan it finds the wpdm cookie but can’t identify it correctly. What should the following entries be:
Cookie Id: __wpdm_client
Description :Description is currently not available.
Script URL pattern: Not availableThis cookie does not have a script URL pattern. It is required for blocking the cookie prior to obtaining user consent
Hello,
I am working on link template that will display a PDF in a modal popup. At the same time, if there is a video associated with that same package, it will show another button to view the training video. For testing purposes, I am putting the youtube video URL in the Link Label field, just to test this out. I would be interested in knowing if there is a way to add a video URL to a package in addition to the PDF so that I can reference each item independently?
Aside from that, how can I modify my template so that the View Training Video button only shows up if the Link Label (or whatever actual custom video URL field might be available to use instead)?
<!-- Button trigger modal --> <div align="center"> <button type="button" class="btn btn-primary" style="width: 75%;" data-toggle="modal" data-target="#exampleModal-[ID]"> [title] </button> <!-- Check if link_download has content before displaying the button --> <?php if (!empty([link_label])) { ?> <button type="button" class="btn btn-primary" style="width: 75%;" data-toggle="modal" data-target="#exampleVidModal-[ID]"> View Training Video </button> <?php } ?> </div> <br /> <!-- Doc Modal --> <div class="modal fade modal-lg" id="exampleModal-[ID]" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-modal="true" aria-hidden="true"> <div class="modal-dialog" role="document" style="width: 1040px;max-width: 100%;"> <div class="modal-content"> <div class="modal-header"> <h5>[title] <button class="btn btn-primary"><a href="[download_url]" title="Download [title]"><i class="fa fa-download" style="color:#FFF;"></i></a></button></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> [doc_preview] </div> <!-- div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div --> </div> </div> </div> <!-- Doc Modal --> <div class="modal fade modal-lg" id="exampleVidModal-[ID]" tabindex="-1" role="dialog" aria-labelledby="exampleVidModalLabel" aria-modal="true" aria-hidden="true"> <div class="modal-dialog" role="document" style="width: 1040px;max-width: 100%;"> <div class="modal-content"> <div class="modal-header"> <h5>[title] Training Video</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <iframe width="1280" height="853" src="[link_label]" title="[title]" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> </div> <!-- div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div --> </div> </div> </div>Thanks,
-Scott



