Clicking a download link produces the following error:
Recoverable fatal error: Argument 1 passed to pubdlcnt_is_valid_file_url() must be an instance of string, string given, called in /sites/all/modules/pubdlcnt/pubdlcnt.php on line 87 and defined in pubdlcnt_is_valid_file_url() (line 122 of /sites/all/modules/pubdlcnt/pubdlcnt.php).
Same error on views fields or regular node fields
Same result with and without patch from https://www.drupal.org/project/pubdlcnt/issues/3031319 applied.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pubdlcnt-type-hints-3032147-4-D7.patch | 1.19 KB | chalpin |
Comments
Comment #2
chalpin commentedWhat version of PHP are you running?
Comment #3
masher commentedPHP version 5.6.32
Comment #4
chalpin commentedAh... yes, that would do it. I had forgotten that PHP5.x didn't support scalar type hints. The attached patch fixes the issue for me when I test with PHP 5.6.40. Can you confirm if it works for you as well?
Comment #5
masher commentedYes, that's now working 5.6.32 and 5.6.24.
Many thanks
Comment #7
chalpin commented