localsettings php mediawiki

localsettings php



Todas mis páginas de MediaWiki están en blanco (3)

Debes cambiar includes / MagicWord.php como se muestra aquí: here

Reemplazar

$group = "(?P<{$i}_{$name}>" . preg_quote( $syn, ''/'' ) . '')'';

Con

$it = strtr( $i, ''0123456789'', ''abcdefghij'' ); $group = "(?P<{$it}_{$name}>" . preg_quote( $syn, ''/'' ) . '')'';

Después de reemplazar esto tienes que purgar todos los sitios. Esto se puede hacer en páginas individuales agregando "? Action = purge" a la URL de la página o para todos los sitios ejecutando esto en la línea de comandos desde el directorio de mantenimiento:

php purgeList.php --purge --all

De repente, todas mis páginas de Mediawiki están en blanco. Si hago clic en el campo de edición, el contenido sigue ahí. He comprobado el archivo sqlite y se ve bien. He activado la salida de depuración y obtengo lo siguiente:

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 881 Warning: Invalid argument supplied for foreach() in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 882 Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 886 Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 881 Warning: Invalid argument supplied for foreach() in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 882 Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 886 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 881 Warning: Invalid argument supplied for foreach() in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 882 Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 886 Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 881 Warning: Invalid argument supplied for foreach() in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 882 Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 886 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907 Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /usr/share/webapps/mediawiki/includes/MagicWord.php on line 907

¿Es probable que estos errores sean la causa del problema? Si es así, ¿cómo lo resuelvo? Y si no, ¿alguien tiene alguna idea sobre cuál podría ser el problema?


Encontré el problema. Se describe en este informe de error . Aparentemente está arreglado en el maestro de Mediawiki. Las versiones publicadas no son compatibles con PCRE 8.34.


Tuve los mismos síntomas después de actualizar de Trusty a Xenial (Ubuntu), pero no fue un problema de PCRE. en mi caso, se resolvió deshabilitando la extensión Widgets, lo que hice al comentar esta línea en LocalSettings.php ...

require_once("$IP/extensions/Widgets/Widgets.php");

Tengo la v1.0 de Widgets en v1.28.0 de Mediawiki.