-
Search Results
-
This started happening around the 3.1.0 update.
The setup:
To restrict downloads to our “valid” users, we assign a specific role to most of them and allow access to files by adding that role to certain categories.
On those restricted files, I clear out the “All Visitors” entry in the “Allow Access” field and leave the field blank. Then I add the category to the file.
I have also tested this adding the administrator role to the “Allow Access” field so that the field is not blank with the same results.
If I add the same user role to the file that is allowed in the category, the file works as before, but if I had to choose a role for each file, it would defeat the purpose of using categories.The behaviour:
The download page (using [wpdm_all_packages]) now displays a red “Access Denied” button for each file that uses this config, but if you click on the title and go to it’s page, you are greeted with the ability to download it. Also, where the shortcode is used for the individual file, the download button works as expected.
When not logged in, all pages correctly show the please log in message for restricted files.This behavior seems to have changed with recent updates. At some point, only the site admin saw the problem, but users with the other valid role did not. Now it affects all users in a role with permission to a category.
Hello,
I found conflict between directorist plugin (https://wordpress.org/plugins/directorist/) and wpdm-archive.
How reproduce ?
Install plugin directorist
Install plugin wpdm-archiveCreate page with [directorist_search_result] and go to this page.
Make a search in directorist plugin.Error -
[You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND wp_posts.post_type = 'at_biz_dir' AND ((wp_posts.post_status = 'publish...' at line 1]The problem
The wpdm-archive catch my directorist WP_Query in this file (wordpress/wp-content/plugins/wpdm-archive-page/wpdm-archive-page.php)function Where($where){ ... }Multiple replace add wrong parentheses and failed my WP_Query.
My workaround
Addif (strpos($where, 'at_biz_dir') !== false) return $where;infunction Where($where)Example :
function Where($where){ global $wpdb; // print_r($wpdb->prefix); // Directorist workaround if (strpos($where, 'at_biz_dir') !== false) return $where; if( (!isset($_GET['wpdmtask']) || $_GET['wpdmtask'] != 'get_downloads') && !isset($_GET['q']) ) return $where; if( (!isset($_GET['search']) || $_GET['search'] == '') && !isset($_GET['q']) ) return $where; // Return because advanced search does not have a search keyword if( isset($_GET['q']) && $_GET['q'] == '') return $where; $where = str_replace(array("\n", "\r",""), "", $where); $where = str_replace("AND ( ( ".$wpdb->prefix,"OR ( ( ".$wpdb->prefix, $where); $where = str_replace(")) AND ".$wpdb->prefix, ") ) ) AND ".$wpdb->prefix, $where); if(strpos($where, "post_type = 'wpdmpro'")) $where = str_replace("(((".$wpdb->prefix,"((((".$wpdb->prefix, $where); return $where; }I hope this explains well.
Sorry for my english (French level)
Regards,
Hi there,
Could you explain how the category permissions work? I created a category and ticked a specific role under ‘Access’.
I then created a package and placed it in this category, but when I view the package in an incognito window (not logged in), I can still view all the package details and download button.
Does access have to be specified for each individual package? It cannot be controlled for a whole category, and affect all packages in that category?
Thanks,
LutherTopic: download link not working
Hi –
I have just update my clients site to the latest versions of wordpress and updated all plugins. However now, the download links on the downloads page are not working. Clicking on the link does nothing, whereas it was opening/downloading a pdf.
This is a paid service for very urgent.
Thanks in advance for any help you can give me.
Barry
Please see the data table here – Download button doesn’t appear to non-logged in users and it’s good because I want only logged in users to download the file. However, when the user click on the file name on the left side, it goes to file details page which is allowing the users to download the file without logging in. How to solve this issue? Please help. Thank you.
Hi
I’ve just noticed that all of my dowlonad links have stopped working. Where they used to point correctly to the downloads, I now just get dummy (#) links. I’ve just uploaded some new documents and get the same error. I updated to the latest version of the plugin earleir today.
Any help gratefully received.
All the best
Jez
Hi
All the previously working download buttons are broken in google chrome in a large professional site I manage. This happened after the latest update that I installed this morning. This is very urgent, as downloads are a major part of my clients site.
The download buttons still work in Microsoft edgeFor example, you can see the issue here – https://governance4fe.co.uk/knowledge-bank/challenge-support/
THIS IS VERY URGENT!! PLEASE ROLL BACK TO THE PREVIOUSLY WORKING VERSION!!
Hi,
Is there a simple way to add a product to a client’s account without having the client going through the steps of buying it?
I want to migrate my client list from an external digital download delivery system and manage everything from my own website. But I already have 300+ clients who have collectively bought 1000+ products. Once the client have registered on the website, is there a way for me to easily ad the products they already purchased so that they can have access to downloads and updates right from they account page?
Ideally I would like to import the clients + their purchases from CSV. Is that possible?
Thanks,
I have created a clone of the default link extended template and added some css, no changes to any of the code.
The categories display shows my downloads and all the info correctly but when I click on the download button for any of the downloads, it doesn’t actually download the file, instead the link is only for a #, so the button doesn’t do anything. I checked the code and it is correct:<div><strong>[download_link_extended]</strong></div>so why isnt it downloading the file that is uploaded to each of the packages?





