Hello –
I’m experiencing and issue with a Gravity Forms submission where the form is filled out and upon submission, I get a download button. When the button is clicked, nothing is downloaded and the page just reloads. I have placed the [wpdm_package_id] tag in a hidden field on the form. Does the Download Manager shortcode “[wpdm_package id='36365']” need to be in its place?
Attached is a link to a video to show the issue. Download Manager Issue
Im using DM Pro with Amazon S3 addon. Im using sync function to upload old files to amazon but now, any file that originally contained a space is being double encoded as %2520 which is breaking the download link.
In admin, under Attached Files, I see the link as file%20name%20etc.pdf but when I click download on the frontend, the url is showing up as file%2520name%2520etc.pdf and i get an xml error screen that shows
NoSuchKey
<key>downloads/wp-content/uploads/download-manager-files/file%20name%20etc.pdf</key>
going forward, i can ensure that there are no spaces in filenames but i have thousands of old files that need to be fixed.
solution?
Hello.
We are running a shop at WordPress.
Shop link: blackvue.com
We are using WP-DM to provide and optimize manuals and firmware for our customers.
The download page of our shop is blackvue.com/downloads/.
When entering the page, data takes at least 20 seconds to be loaded for a longer period of time largest 2 minutes.
In this process, a server delay of 504 error appears in countries with slow network.
(ex. blackvue.com/zh-TW/downloads/)
Therefore, customers are expressing their discomfort in our shop.
We would like to shorten the wp-dm loading time on this page and load it within 10 seconds like other pages.
Could you tell me how to optimize the download data?
Hi
my website is https://www.colorfillo.com
go this page
https://www.colorfillo.com/birds-coloring-page/
sometimes 404 Error page found. i mean page Template section is not working, when i click any download category thumbnails ( Refer Image )
404 image link:
this issue happens because WordPress auto update.
Let me know the solution
My site is built using Elementor Pro, Custom Post Types, and Advanced Custom Fields. I have a single post template built in Elementor for a custom post type. The template has buttons for downloading files. The button links are currently set up to dynamically pull in a URL from a custom field.
The download URL editing process is as follows:
1. User clicks to edit or add a new post. This takes place in the WP editor, not in Elementor (the post is connected to the custom post type configured in CPT UI plugin)
2. User enters a URL for the download button into the custom field (field has been configured using ACF Pro plugin)
My issue is that WPDM uses shortcodes to link to the download package but I need a URL in this case. Do you know of a solution for my scenario? I want to keep my button designs within the Elementor template, and use ACF Pro to dynamically connect the download to the button.
I am getting the same error message as listed here.
https://www.wpdownloadmanager.com/support/topic/wpdm_accordion_gbblock-php-on-line-52-and-53-2
Which is listed as resolved but the resolution is set as private. So here we go.
The plugin appears to work on the frontend but it crashes the backend/admin side.
[Thu Sep 01 16:12:32.787361 2022] [php:error] [pid 10475] [client 10.1.100.15:50368] PHP Fatal error: Uncaught TypeError: basename(): Argument #1 ($path) must be of type string, array given in /var/www/html/cms/wp-content/plugins/wpdm-accordion/libs/GutenbergBlock/WPDM_Accordion_GBBlock.php:52\nStack trace:\n#0 /var/www/html/cms/wp-content/plugins/wpdm-accordion/libs/GutenbergBlock/WPDM_Accordion_GBBlock.php(52): basename()\n#1 /var/www/html/cms/wp-includes/class-wp-hook.php(307): WPDM_Accordion_GBBlock->linktemplatesJSON()\n#2 /var/www/html/cms/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#3 /var/www/html/cms/wp-includes/plugin.php(476): WP_Hook->do_action()\n#4 /var/www/html/cms/wp-admin/admin-header.php(163): do_action()\n#5 /var/www/html/cms/wp-admin/index.php(137): require_once(‘…’)\n#6 {main}\n thrown in /var/www/html/cms/wp-content/plugins/wpdm-accordion/libs/GutenbergBlock/WPDM_Accordion_GBBlock.php on line 52
The Function in question
function linktemplatesJSON()
{
$templates = WPDM()->packageTemplate->getTemplates('link', true);
$_templates = [];
foreach ($templates as $templateID ► $template) {
$template = WPDM()->packageTemplate->getInfo(basename($template), 'link');
$_templates[] = ['label' ► $template['name'], 'value' ► $templateID];
}
?>
<script>
var __wpdmacrd_link_templates = <?= json_encode($_templates); ?>;
</script>
<?php
}
The specific line
$template = WPDM()->packageTemplate->getInfo(basename($template), ‘link’);
If I comment out that line then it hops to the next line
[Thu Sep 01 16:19:00.782022 2022] [php:error] [pid 10057] [client 10.1.100.15:50797] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cms/wp-content/plugins/wpdm-accordion/libs/GutenbergBlock/WPDM_Accordion_GBBlock.php:53\nStack trace:\n#0 /var/www/html/cms/wp-includes/class-wp-hook.php(307): WPDM_Accordion_GBBlock->linktemplatesJSON()\n#1 /var/www/html/cms/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#2 /var/www/html/cms/wp-includes/plugin.php(476): WP_Hook->do_action()\n#3 /var/www/html/cms/wp-admin/admin-header.php(163): do_action()\n#4 /var/www/html/cms/wp-admin/index.php(137): require_once(‘…’)\n#5 {main}\n thrown in /var/www/html/cms/wp-content/plugins/wpdm-accordion/libs/GutenbergBlock/WPDM_Accordion_GBBlock.php on line 53
If I comment out that line then it allows me to continue and I get no further errors.
I do have some custom accordian templates. I am on php 8.1 and can give you more details if you need them.
Brian
Is there a way to display the URL from the page the download link is executed from? We have the same file that will be downloadable from multiple pages, and the page the file is downloaded from helps us understand the customer’s interests. Is there a template variable for this?
Hello,
We use this plugin to provide visitors a unique URL for downloading pdf’s from our site. I’m attempting to upgrade from (very old) version 4.6.8 to the current version. Most of the configuration come across fine, but after the upgrade when a user get the download email the link contains only the section after “/?post_type”. The new link is missing the https://yyy.com
Example:
before update: https://yyy.com/?post_type=wpdmpro&p=2515&wpdmdl=2515&_wpdmkey=asdfasfasd
after update: /?post_type=wpdmpro&p=2515&wpdmdl=2515&_wpdmkey=asdfasfasd&subscriber=adsfasdfasdfas
How can I fix this? Where should I be looking to update this information?
Thanks!