Hi – I think I have a related problem. Using the latest version of Download Manager (3.2.90), all links to protected files (MP3s and PDFs) give an ‘Invalid file path!’ error, even if the user is a member of the group with access.
Requesting the file URL gives the following errors. This is resolved by reverting to version 3.2.89 of the plugin.
[24-Apr-2024 18:54:20 UTC] PHP Warning: Undefined array key “file” in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 143
[24-Apr-2024 18:54:20 UTC] PHP Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 143
[24-Apr-2024 18:54:20 UTC] PHP Warning: Undefined array key “sizes” in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 144
[24-Apr-2024 18:54:20 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 144
[24-Apr-2024 18:54:20 UTC] PHP Warning: Undefined array key “file” in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 148
[24-Apr-2024 18:54:20 UTC] PHP Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 148
[24-Apr-2024 18:54:20 UTC] PHP Warning: Undefined array key “file” in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 148
[24-Apr-2024 18:54:20 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-content/plugins/download-manager/src/MediaLibrary/MediaAccessControl.php on line 148
We are also using Ultimate Member, in case that’s useful, but the files are only protected with Download Manager.
Many thanks.