Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We can't use module_load_include() inside hook_requirements().
That is why while installation the module within installation profile (install.php) a fatal error appears.
Comment | File | Size | Author |
---|---|---|---|
#3 | plupload-1487558-3.patch | 523 bytes | hlykos |
#2 | hook_requirements-1487558-5744140.patch | 741 bytes | danylevskyi |
Comments
Comment #1
danylevskyiHere is a patch.
Comment #2
danylevskyi:)
Comment #3
hlykos CreditAttribution: hlykos commentedWhen installing through a profile "Call to undefined function plupload_library_path()..." appears. With the above patch fixing the hook requirements it solves it but there is a"Call to undefined function db_result()..." error because the database does not exist yet.
The patch below bypasses the requirement if it is installed through a profile.
Comment #4
slashrsm CreditAttribution: slashrsm commentedCan you conbine bot patches in one?
Comment #5
danylevskyi#3 works great!
Comment #6
slashrsm CreditAttribution: slashrsm commentedCommited. Thanks!
Comment #7.0
(not verified) CreditAttribution: commentedno patch currently :(