MediaWiki:Compilation failed: group name must start with a non-digit at offset 4 in: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
(Новая страница: «=== MediaWiki: Compilation failed: group name must start with a non-digit at offset 4 in === Ошибка: [20-Jan-2016 14:34:20 UTC] PHP Warning: preg_match()…»)
 
(нет различий)

Текущая версия на 22:13, 8 ноября 2019

MediaWiki: Compilation failed: group name must start with a non-digit at offset 4 in

Ошибка:

[20-Jan-2016 14:34:20 UTC] PHP Warning:  preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: group name must start with a non-digit at offset 8 in /home/user/public_html/includes/MagicWord.php on line 860
[20-Jan-2016 14:34:20 UTC] PHP Warning:  preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Compilation failed: group name must start with a non-digit at offset 4 in /home/user/public_html/includes/MagicWord.php on line 834
[20-Jan-2016 14:34:20 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/user/public_html/includes/MagicWord.php on line 835
[20-Jan-2016 14:34:20 UTC] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: group name must start with a non-digit at offset 4 in /home/user/public_html/includes/MagicWord.php on line 839
[20-Jan-2016 14:34:20 UTC] PHP Warning:  preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Compilation failed: group name must start with a non-digit at offset 4 in /home/user/public_html/includes/MagicWord.php on line 834


Решение - обновить mediawiki до 1.19.24 или выше ветку:

Обновляем до 1.19.24 через ssh:

# cd /home/user/public_html
# wget -c https://releases.wikimedia.org/mediawiki/1.19/mediawiki-1.19.24.tar.gz
# tar xvzf mediawiki-1.19.24.tar.gz -C ./ --strip-components=1
# chown -R user:user *
# cd maintenance/
# php update.php



Концовка:

rev_len population complete ... 1 rows changed (0 missing)
Populating rev_sha1 column
...doing rev_id from 1 to 200
...doing rev_id from 201 to 400
...doing rev_id from 401 to 600
...doing rev_id from 601 to 800
...doing rev_id from 801 to 1000
...doing rev_id from 1001 to 1200
...doing rev_id from 1201 to 1400
...doing rev_id from 1401 to 1600
...doing rev_id from 1601 to 1800
...doing rev_id from 1801 to 2000
...doing rev_id from 2001 to 2200
...doing rev_id from 2201 to 2400
Populating ar_sha1 column
...doing ar_rev_id from 284 to 483
...doing ar_rev_id from 484 to 683
...doing ar_rev_id from 684 to 883
...doing ar_rev_id from 884 to 1083
...doing ar_rev_id from 1084 to 1283
Populating ar_sha1 column legacy rows
rev_sha1 and ar_sha1 population complete [2176 revision rows, 33 archive rows].
Populating img_sha1 field
Done 0 files in 0.0 seconds
Fixing protocol-relative entries in the externallinks table...
Done, 0 rows updated.
Done.