Topic on Extension talk:SpamBlacklist

errore http 500 SpamBlacklist

1
Michele.Fella (talkcontribs)

MW 1.39.3 HTTP 500 - MWExceptionHandler on edit submit

Fresh update:

MediaWiki 1.39.3
PHP 7.4.33 (apache2handler)
MariaDB 10.1.48-MariaDB-0ubuntu0.18.04.1
ICU 65.1
Lua 5.1.5
Pygments 2.11.2

Version of SpamBlackList is the one bundled MW release.

SpamBlacklist ā€“ GPL-2.0-or-later Strumento antispam basato sulle espressioni regolari per bloccare URL e indirizzi email di utenti registrati Tim Starling, John Du Hart e Daniel Kinzler

On action=sumbit (with or without VisualEditor), receiving HTTP 500, from debug it seems exception has been throwned after retrieving (and i assume execting) spam regex from https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1

For the moment I've disabled the extension, and everything works fine. Any advice?

..
[objectcache] fetchOrRegenerate(<wiki_path>:pageimages-denylist): miss, new value computed
[objectcache] fetchOrRegenerate(<wiki_path>:spamblacklist:spam:blacklist-regex): miss, new value computed
[SpamBlacklist] Loading spam regex...
[SpamBlacklist] Constructing spam blacklist
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
[DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT  keyname,value,exptime  FROM `objectcache`    WHERE keyname = 'global:blacklist_file_spam:https%3A//meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1' AND (exptime >= '20230607074741')
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: reused a connection for localAutoCommit/0
[DBQuery] SqlBagOStuff::fetchBlobs [0s] localhost: SELECT  keyname,value,exptime  FROM `objectcache`    WHERE keyname = '<wiki_path>:filewarning_spam:https%3A//meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1' AND (exptime >= '20230607074741')
[SpamBlacklist] Loading spam blacklist from https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1
[http] GET: https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1
[exception] [4e67fd69d9fa28d9bf4cb940] /api.php   PHP Fatal Error from line 49 of /var/www/<wiki_path>/includes/http/MWCallbackStream.php: Declaration of MWCallbackStream::write($string) must be compatible with Psr\Http\Message\StreamInterface::write(string $string): int
#0 [internal function]: MWExceptionHandler::handleFatalError()
#1 {main}
[session] Saving all sessions on shutdown
Reply to "errore http 500 SpamBlacklist"