Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _filefield_paths_replace_path() (line 328 of /www/html/sites/all/modules/contrib/filefield_paths/filefield_paths.module).

Comments

StephenRobinson’s picture

line 328 and 330 need updating:

328:  $item['value'] = preg_replace("/$regex/e", $replacement, $item['value']);
replace with...
328:  $item['value'] = preg_replace_callback('/$regex/', function ($m) { return $replacement, $item['value']);
  
 
  
330: $item['summary'] = preg_replace("/$regex/e", $replacement, $item['summary']);
replace with...
330: $item['summary'] = preg_replace_callback('/$regex/', function ($m) { return $replacement, $item['summary']);

Deciphered’s picture

StephenRobinson’s picture

Issue summary: View changes