Jump to content

Topic on Project:Support desk

[RESOLVED] Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 i

6
118.173.173.56 (talkcontribs)

Just noticed today lots of errors: http://www.speedsolving.com/wiki/index.php/Main_Page

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 851

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 846

Warning: Invalid argument supplied for foreach() in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 847

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 851

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 872

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 872

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/patjk/public_html/speedsolving/wiki/includes/MagicWord.php on line 872

Just started today. PHP version 5.4.30 MySQL version 5.6.16 Mediawiki: not sure, maybe 8 months ago (can't find it with these errors)

What do I need to do?

Thanks.

1.46.211.163 (talkcontribs)
217.41.67.251 (talkcontribs)

Happened to my site too. Why do these errors suddenly appear?

Ciencia Al Poder (talkcontribs)

Because the server where your MediaWiki is running upgraded the PCRE package to a newer version, introducing this breaking change. Please, upgrade MediaWiki to solve the issue (latest releases of MediaWiki 1.19 and newer versions have fixed this issue)

69.128.30.210 (talkcontribs)

I applied this hack and when I'm logged into my wiki page, I see the content without errors, but when I'm not logged in, there is no content, any easy fox on this? Sounds like a permissions thing...

69.128.30.210 (talkcontribs)

I simply edited nothing and saved my main pages and now they show up for non-logged in users, however my actual main wiki db is still not showing up and it errors out when I try to save an edit of the main page.

Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

   (SQL query hidden)

from within function "Revision::insertOn". MySQL returned error "1048: Column 'old_text' cannot be null (localhost)".