После перехода на PHP 7 седьмой друпал стал жаловаться на модуль Video Filter:
Warning: preg_match(): Compilation failed: invalid range in character class at offset 30 in _video_filter_process() (Line 175 of sites/all/modules/video_filter/video_filter.module)
Warning: preg_match(): Compilation failed: invalid range in character class at offset 27 in _video_filter_process() (Line 175 of sites/all/modules/video_filter/video_filter.module)
Пока обновления модуля нет, можно пропатчиться:
https://www.drupal.org/project/video_filter/issues/3040969
Ленивые могут исправить баг ручками.
video_filter-3.x-patterns-php72.patch
diff --git a/video_filter.codecs.inc b/video_filter.codecs.inc
index 2bd40ca..9b2587a 100644
--- a/video_filter.codecs.inc
+++ b/video_filter.codecs.inc
@@ -16,7 +16,7 @@ function video_filter_codec_info() {
'sample_url' => '//www.archive.org/details/DrupalconBoston2008-TheStateOfDrupal',
'callback' => 'video_filter_archive',
'html5_callback' => 'video_filter_archive',
- 'regexp' => '/archive\.org\/details\/([\w-_\.]+)/i',
+ 'regexp' => '/archive\.org\/details\/([\w\-_\.]+)/i',
'ratio' => 4 / 3,
);
@@ -349,8 +349,8 @@ function video_filter_codec_info() {
'sample_url' => '//www.whatchado.com/en/stories/some-title',
'callback' => 'video_filter_whatchado',
'regexp' => array(
- '/whatchado\.com\/[a-z]{2}\/stories\/([\w-_]+)/i',
- '/whatchado\.com\/[a-z]{2}\/([\w-_]+)/i',
+ '/whatchado\.com\/[a-z]{2}\/stories\/([\w\-_]+)/i',
+ '/whatchado\.com\/[a-z]{2}\/([\w\-_]+)/i',
),
'ratio' => 960 / 540,
);