We’ve worked with you guys quite a bit on getting out settings and permissions set so that our users can download large files. And it has been working really well.
Until we installed the update.
Now the large downloads timeout at 3.5 minutes.
We have a 100MB file. I tried downloading it on 3 different machines with different connection speeds multiple times each. Sometimes it downloaded 30MBs of the file and and I got ‘download was interrupted’ at 3.5 minutes. Sometimes it downloaded 80MBs of the file and I got ‘download was interrupted’ at 3.5 minutes.
I had one successful download where the it finished in 2:45 minutes.
I then put the same file on a server and tested a direct link download and was successful 3 times in a row and each download took around 10 minutes.
I am fully aware that our internet here is painfully slow, but it was working before the update and now it’s not?
Did something change in this update or did something get over-written somewhere?
Hello WPDM Support,
We’d like to supply you with some further information about an issue reported to you before Xmas last year about your Download Manager Plug In. Yesterday we updated your plugin and the following issue (included below) and previously reported to you occurred again. This time after applying our fix to your code the issue was not resolved with our fix. Therefore, we would like to tell you about our second fix to your code and ask if you can please investigate this issue which is causing your plug n to be incompatible with our WordPress / Themify installation.
Fix 2
——
This fix is similar to the first one but has been applied in this file: class.Package.php.
Around line 1319/1320 we have removed the call to wp_reset_query() and replaced it with: wp_reset_post_data().
The previous reported fault and our fix which incidentally still needs to be applied in addition to this new one follows:
Previously Reported Issue
———————————–
We have identified a fault with Download Manager and are sending you this short report to assist you in resolving the issue which starts with some background information about how it used to work and how we are using WPDM with Themify theme, finally we have fixed the problem but would like to know if our fix is compatible with a future update to WPDM.
1) The expected & actual behaviour prior to a recent update of Themify / WordPress
1.1) We add the [wpdm_package] shortcode in this form: [wpdm_package id="6239" template="55c1e8d58c991”] to posts.
Inline image 2
1.2) We then set Themify to include posts to a page using the Query Posts facility.
Inline image 3
1.3) What we expect to happen.
Prior to a recent update to Themify or WPDM (we’re unsure which one has caused the problem) the short code that was added to the post using the Query Posts facility would render the download package to the screen and the page content would finish. Obviously, because the shortcode is the last item of content in the included post.
The issue
————-
2) After a recent update the content no longer finishes at the end of the last included post and the additional content included via the embedded short code. Instead the content of the page that includes the posts is added to the end of the page after the last post / embedded shortcode.
2.1) Our FIX!
We’ve replaced the call to wp_reset_query() with wp_reset_postdata() and the duplicate page content is no longer added at the end of the page. See below for reference to approx line 360 in class.ShortCodes.php
function Package($params)
{
extract($params);
if(!isset($id)) return ”;
$id = (int)$id;
if(get_post_type($id) != ‘wpdmpro’) return ”;
$postlink = site_url(‘/’);
if (isset($pagetemplate) && $pagetemplate == 1) {
$template = get_post_meta($id,’__wpdm_page_template’, true);
$wpdm_package[‘page_template’] = stripcslashes($template);
$data = wpdm_fetch_template($template, $id, ‘page’);
$siteurl = site_url(‘/’);
return “<div class=’w3eden’>{$data}</div>”;
}
$template = isset($params[‘template’])?$params[‘template’]:get_post_meta($id,’__wpdm_template’, true);
if($template == ”) $template = ‘link-template-calltoaction3.php’;
$html = “<div class=’w3eden’>” . \WPDM\Package::fetchTemplate($template, $id, ‘link’) . “</div>”;
wp_reset_postdata();
//wp_reset_query();
return $html;
}
If this was the source of the problem please can you update your source code so that your next update to WPDM doesn’t remove our fix.
Thanks in advance.
—
Not happy with this, pay good money to get a feature, and the instructions are really, really sparse.
I thought it would work like WP All import, where you map fields to the CSV details.
The sample CSV file, where are details of all the column headings?
Icon? path to the icons.. ? (where is that? Should it be left at localhost?)
Preview? Is this a link to the image for the file? Or..?
Category ID ? where do we get that from?
Indvidual File Download ? what is that ?
This is torture trying to work out and fill in these details from a file list, and I’m not prepared to pay extra to get an advanced version of the import, this stuff, especially the documentation is a basic requirement.
Hi,
I am scoping for a new web project and need to know if there is any way in which the Subscriber emails for download packages can be linked up to use the email from an already logged in user?
We are using Woocommerce to sell physical products on the website, but will have trade accounts using this wholesale plugin.
The downloads will only be available to trade customers who have signed up with this specific user level.
I would like to know if there is any way in which your Newsletters plugin can work with this, automatically using the users email address when logged in to add them as a subscriber to the package and get notifications when the files are updated within this package.
We want the process to be as automatic as possible and don’t really want an already signed in user to have to input their email address again once they have registered or signed in.
Do you think there is any way in which this can be done? Or will users have to put in their email address in order to get notified with the Newsletters plugin?
Many Thanks,
Nick
Hi,
We have experience two strange issues with the download manager plugin at the moment.
1. If we update the plugin to the latest version it will display that its updated, but after that if we check the dashboard then the plugin no longer in the system.
2. We then re-uploaded the plugin to the system again, but in the front end short codes are displaying for the download. No download links displaying. But if you are logged in the system, it will show the download links. ie. its showing the shortcode for users but for admin its showing the download links correctly.
Between, we are using Version 4.6.7
Can you explain whats the issue here?