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.