After updating from Download File version 7.x.1.1 to 7.x.2.1 I receive the following error when I try to download files from my site
Recoverable fatal error: Argument 1 passed to download_file_direct_download() must be an instance of stdClass, string given in download_file_direct_download() (line 145 of /path/to/my/website/sites/all/modules/contrib/download_file/download_file.module).
I am running this on Drupal 7.54.
Please let me know if you need any further information.
Thanks.
Comments
Comment #2
bnjmnmLet me know
- the exact URL of the file you're attempting to download
- the formatter used to display the download_file field
- if this is being rendered via a node page template, view, or something else.
Comment #3
sgtsaughter commentedComment #4
bnjmnmApologies in advance for additional questions, but this should get us closer. I'd like to replicate your scenario as closely as possible so I can provide you with a fix.
Comment #5
oliverpolden commentedA cache clear fixed this for me.
Comment #6
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.