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.
Line 328 in the module file filefield_path.module
$item['value'] = preg_replace("/$regex/e", $replacement, $item['value']);
This needs to be replaced/updated with preg_replace_callback apparently.
Comments
Comment #2
tarik.cipix CreditAttribution: tarik.cipix commentedComment #3
tarik.cipix CreditAttribution: tarik.cipix commentedComment #4
oadaeh CreditAttribution: oadaeh at Hook 42 commentedThis is a duplicate of #2103151: Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead, which has been committed: #2103151-54: Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead.