Topic on Project:Support desk

AccessLog error when saving a page

5
212.92.17.49 (talkcontribs)
Access Log 2.0

MediaWiki       1.24.2

PHP 5.6.19

212.92.17.49 (talkcontribs)
( ! ) Warning: Missing argument 12 for accessLogEditAction() in wiki\extensions\UMEduWiki\AccessLog\AccessLog.php on line 104
87.123.37.221 (talkcontribs)

According to their documentation pages, the package UMEduWiki and the AccessLog extension both are not compatible with MediaWiki 1.24.

AccessLog\AccessLog.php on line 104 defines a function called accessLogEditAction(). This function has exactly 12(!) arguments, the 12th one being $redirect. This function gets executed from the ArticleSaveComplete hook. This hook, according to our documentation only has 11 arguments, not 12.

Since $redirect is not even used inside accessLogEditAction(), the fix might be as simple as to just remove this this 12th argument from accessLogEditAction(), so that this function only has 11 arguments just as it should have.

1.175.57.106 (talkcontribs)

same warning applies for  maintenance/Edit.php

[/share/Web/VHost_qbox4u/conf/abc/mwk/maintenance]# php edit.php -s "Quick edit" -m School:Bp3 < /share/Web/tst/boilerpage_01.txt

Saving...

Warning: Missing argument 12 for accessLogEditAction() in /share/MD0_DATA/Web/VHost_qbox4u/conf/abc/mwk/extensions/UMEduWiki/AccessLog/AccessLog.php on line 104

done

87.123.57.253 (talkcontribs)

Please see my answer above!

Since $redirect is not even used inside accessLogEditAction(), the fix might be as simple as to just remove this this 12th argument from accessLogEditAction(), so that this function only has 11 arguments just as it should have.

Reply to "AccessLog error when saving a page"