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.
When try to enable the Audit filter logging module on php less than 5.5 version the fatal error is appear:
"Fatal error: Can't use function return value in write context in audit_log/modules/audit_log_filter/audit_log_filter.module on line 11"
From empty() function description:
"Note:
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false."
Here is a patch which will prevent this error.
Comment | File | Size | Author |
---|---|---|---|
audit_log_filter_error.patch | 740 bytes | dmytro-aragorn | |
Comments
Comment #2
joshmillerHa, didn't see this error until I tried to enable in on Platform.sh. Added this patch and the error is gone. It's a one-liner and no formatting issues that I can see.
Josh
Comment #4
Jelle_SFixed in latest dev. Will create a new release soon. Thanks for the patch!