ProfessionalWiki / AutomatedValues

Wikibase extension that allows defining rules to automatically set labels or aliases based on Statement values
https://wikibase.consulting/automating-values-in-wikibase
GNU General Public License v2.0
6 stars 3 forks source link

Error when a conflict occurs when editing a page #18

Closed mzeinstra closed 2 years ago

mzeinstra commented 2 years ago

The following error is displayed after an editing conflict occurs on a regular wiki page:

[f906ef7f1d0fefb60ec2cac1] /wiki/Main_Page?action=submit&veswitched=1 TypeError from line 44 of /var/www/html/extensions/AutomatedValues/src/Hooks.php: Argument 3 passed to ProfessionalWiki\AutomatedValues\Hooks::onEditFilter() must be of the type string, null given, called in /var/www/html/includes/HookContainer/HookContainer.php on line 329

Backtrace:

#0 /var/www/html/includes/HookContainer/HookContainer.php(329): ProfessionalWiki\AutomatedValues\Hooks::onEditFilter(EditPage, string, NULL, string, string)
#1 /var/www/html/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#2 /var/www/html/includes/HookContainer/HookRunner.php(1520): MediaWiki\HookContainer\HookContainer->run(string, array)
#3 /var/www/html/includes/EditPage.php(2101): MediaWiki\HookContainer\HookRunner->onEditFilter(EditPage, string, NULL, string, string)
#4 /var/www/html/includes/EditPage.php(1726): EditPage->internalAttemptSave(NULL, boolean)
#5 /var/www/html/includes/EditPage.php(680): EditPage->attemptSave(NULL)
#6 /var/www/html/includes/actions/EditAction.php(71): EditPage->edit()
#7 /var/www/html/includes/actions/SubmitAction.php(38): EditAction->show()
#8 /var/www/html/includes/MediaWiki.php(532): SubmitAction->show()
#9 /var/www/html/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
#10 /var/www/html/includes/MediaWiki.php(945): MediaWiki->performRequest()
#11 /var/www/html/includes/MediaWiki.php(548): MediaWiki->main()
#12 /var/www/html/index.php(53): MediaWiki->run()
#13 /var/www/html/index.php(46): wfIndexMain()
#14 {main}
Screenshot 2022-04-28 at 13 27 12