Topic on Project:Support desk

Upgrading 1.26.3 to 1.27.0 > Error

Vincent Eisfeld (talkcontribs)

After the upgrade to MW 1.27.0 I get the Error Exception encountered, of type "Wikimedia\Assert\ParameterAssertionException" (talkcontribs)

Wikimedia\Assert is part of the vendor/ folder of your MediaWiki instalation. Please make sure that you have uploaded all files of the MediaWiki tarball, including vendor/Wikimedia/assert.

If you used composer to install MediaWiki, you still have to get the dependencies, which will bring you the missing Wikimedia/assert library as well.

Manbu (talkcontribs)

I have this error on a " SunOS localhost 5.10 Generic_150401-49 i86pc " from provider Strato with php 5.6.31

Exception encountered, of type "Wikimedia\Assert\ParameterAssertionException"

[WfRzK8CoKrMAAGjHP0AAAADB] /mw-config/index.php Wikimedia\Assert\ParameterAssertionException from line 70 of /mnt/web020/a1/95/51478895/htdocs/wiki127/vendor/wikimedia/assert/src/Assert.php: Bad value for parameter maxKeys: must be above zero

Perhaps there is aa workaround with a wrapper for the faulty php-function

Ciencia Al Poder (talkcontribs)

Somewhere in your code there's a parameter "maxKeys" set to 0 or a value less than 0. Be sure it's not something that you've configured in LocalSettings.php.

Also, having a stack trace of the error would be great, since it can give us hints about what component may be giving this error.

Creting custom log groups with error and exception is useful, they usually give backtraces of the exceptions. See Manual:How to debug#Creating custom log groups

Manbu (talkcontribs)

My installation is on  : -> Please set up the wiki first. - then long errors shows 25 maxkey-apearances im mw127

Perhaps it has something to do with and

$inf = INF; var_dump($inf); gives me float(0) instead of float(INF)


Perhaps it is possible to replace or redefine this function...?

Ciencia Al Poder (talkcontribs)

Ugh, that's a nasty bug then. However I'm not sure this could be fixed easily, you should point your hosting provider to those bugs so they can fix them.