-
Search Results
-
I have some password-protected documents that won’t download on a site I’m managing. The documents are uploaded to the website through Add Media and then chosen from the Media Library in Download Manager. I then set a password for each document.
When I enter the password, it opens up the URL of the document in browsers Firefox, Chrome, and Brave but it is only a blank page and not displayed. Some users are starting to email us about this problem.
We use Pressidium Hosting and their engineers found this problem:
“We have proceeded to exclude /webinars from our caching engine, to no avail.
After performing this check, we have observed the following warning messages appearing in your installation’s error log:
May 15 22:26:13 192.168.192.118 apache2[11368]: [u1195] [hedberginstit.onpressidium.com] [4a804b77a13a5be6] [107.182.237.18] [error] [client 192.168.200.145:33418] AH01071: Got error ‘PHP message: PHP Warning: array_intersect(): Argument #2 is not an array in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80\nPHP message: PHP Warning: include(/hedberginstit-www/wp-content/plugins/download-manager/tpls//media-download.php): failed to open stream: No such file or directory in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\nPHP message: PHP Warning: include(/hedberginstit-www/wp-content/plugins/download-manager/tpls//media-download.php): failed to open stream: No such file or directory in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\nPHP message: PHP Warning: include(): Failed opening ‘/hedberginstit-www/wp-content/pl ugins/download-manager/tpls//media-download.php’ for inclusion (include_path=’.:’) in /hedberginstit-www/wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 87\n’
This indicates a code issue with the ‘download-manager’ plugin. Specifically, on line 87 of wp-content/plugins/download-manager/libs/class.MediaAccessControl.php , the file media-download.php is invoked, which does not seem to appear in the path specified (nor anywhere in your wp-content/plugins directory, as far as I’ve seen).”
It looks like there is an issue with the plugins code but it is beyond my understanding. Thanks for any help you can give to resolve this issue.
Can you point me in the right direction for being able to embed a vimeo video into a page template if I were to input a URL as the package file and choose that template?
I know there is a YouTube player but YT just isn’t the best option for my project nor is the regular video_player as it is unstable across platforms and slow to load.
Hi!
I am building a grid of downloads using a featured image and title / download link.
My shortcode is…
[wpdm_category id="brochures" title="Brochures & Flooring Guides" template="5eb2d25e265b5" order_by="title" order="asc" cols=3 colspad=2 colsphone=1 download_link=1]My custom template is…
<div class="knowledge-base-download"><a href="[download_url]">[thumb_200x200] <b><a href="[download_url]" class="knowledge-base-download-heading" style="text-decoration: none;">[title]</b></div>Two problems…
- The first element after the wpdm_category shortcode is affected by this code. It looks like it’s throwing everything into a strange column layout, so I’m guessing it’s something to do with the columns.
- Second, less critical problem, is that the title doesn’t appear. Any obvious issues? I don’t mind adding this manually, but while I’m here 🙂
Any ideas or fixes would be massively appreciated.
Thanks so much in advance!
Hi there,
My client would like the option to filter packages by tags in the ‘wpdm_all_packages’ shortcode.
I’ve managed to add tag support by copying the ‘wpdm-all-downloads.php’ file to a ‘download-manager’ folder in my child theme and adding the following code:// CUSTOM ADDITION: TAGS $tags = get_the_tags(get_the_ID()); $ftags = array(); if (!empty($tags)) { foreach($tags as $tag){ //$taglink = get_tag_link($tag->term_id); $ftags[] = "<a class='sbyc' href='{$cfurl}{$tag->slug}'>{$tag->name}</a>"; } $tags = @implode(", ", $ftags); }and
case 'tags': echo "<span class='__dt_categories {$cxc}'>".$tags."</span>"; break;This works fine as far as displaying the tags in the table, but it does not allow us to filter the results using the tags.
When we click on a tag, the table shows ‘No results’.
I’m assuming that the dataTables files have to be edited in some way to add tag support there? Or is there another solution?
Could you point me in the right direction to get this to work?Hi
I’m using the free version of Download Manager plus WP Pro Membership. All plugins up-to-date.
I have a couple of pdfs that are restricted and can only be used by one user (as well as by admin) who has to be logged in.
It worked fine for a couple of time but now I get error messages as soon as I try do download (see below) … what am I doing wrong? Thanks a lot!
Warning: array_intersect(): Expected parameter 2 to be an array, string given in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 81
When logged in as admin I get an additional error message:
Headers already sent in /homepages/ … /wp-content/plugins/download-manager/libs/class.MediaAccessControl.php on line 80line 80 and 81 both in this file are:
$user_allowed = array_intersect($user_roles, $access);
$user_allowed = count($user_allowed);with in the function:
function protectMediaLibrary(){
if(isset($_REQUEST[‘wpdmmediaid’])){
global $wpdb, $current_user;
$media = get_post($_REQUEST[‘wpdmmediaid’]);
$media_meta = wp_get_attachment_metadata($_REQUEST[‘wpdmmediaid’]);
//wpdmdd($media_meta);
//wpdmdd($media);
$media->path = str_replace(home_url(‘/’), ABSPATH.’/’, $media->guid);
$media->filesize = wpdm_file_size($media->path);$access = get_post_meta($media->ID, ‘__wpdm_media_access’, true);
$password = get_post_meta($media->ID, ‘__wpdm_media_pass’, true);
$private = get_post_meta($media->ID, ‘__wpdm_private’, true);
if(current_user_can(‘manage_options’)) $private = false;
$user_roles = is_user_logged_in() ? $current_user->roles + array(‘public’) : array();
$user_roles[] = ‘public’;
$user_allowed = array_intersect($user_roles, $access);
$user_allowed = count($user_allowed);
if( $private && ( $password || !$user_allowed ) ) {
$picon = wp_get_attachment_image($media->ID, ‘thumbnail’, true);
$keyvalid = true;
$__hash = Crypt::encrypt($media->ID);
$download_url = “”;
include wpdm_tpl_path(“media-download.php”);
die();
}$upload_dir = wp_upload_dir();
$file_path = $upload_dir[‘basedir’].’/’.$_REQUEST[‘wpdmmedia’];
$file_path = apply_filters(“wpdm_media_download”, $file_path, $media->ID);
FileSystem::downloadFile($file_path, basename($file_path), 10240, 0, array(‘play’ ► 1));
die();
}Thanks in advance!
Topic: Error in categories
Hi,
When you add a file in a new topic, and search for available download categories, the window appears without the categories.
Can someone help me?
Thank you.[url=https://ibb.co/j46GbdW][img]https://i.ibb.co/12vK73d/2020-04-15-22-04-30-Greenshot.png[/img][/url]
[url=https://ibb.co/M6Q5XcW][img]https://i.ibb.co/q5VFZNX/2020-04-15-21-57-50-Greenshot.png[/img][/url]
I intend to purchase the “pro” version but may have the same problem.
Thank you.


