gesinn-it-pub / mediawiki-extensions-PageForms

Fork of MediaWiki extension PageForms that aims to simplify contribution through hosting on GitHub instead of Gerrit, improved quality through better test coverage (to be done) and continuous integration.
Other
2 stars 4 forks source link

Error with Upload Form #56

Closed krabina closed 7 months ago

krabina commented 9 months ago

Klicking on the "upload" button immediately shows the following error:

[ed2364dc32082e8ba59fc66e] /index.php?title=Spezial:Hochladefenster&pfInputID=input_31 TypeError: HTMLForm::__construct(): Argument #2 ($context) must be of type IContextSource, string given, called in /extensions/PageForms/specials/PF_UploadForm.php on line 45

Backtrace:

from includes/htmlform/HTMLForm.php(374)
#0 /extensions/PageForms/specials/PF_UploadForm.php(45): HTMLForm->__construct()
#1 /extensions/PageForms/specials/PF_UploadWindow.php(221): PFUploadForm->__construct()
#2 /extensions/PageForms/specials/PF_UploadWindow.php(179): PFUploadWindow->getUploadForm()
#3 /includes/specialpage/SpecialPage.php(701): PFUploadWindow->execute()
#4 /includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#5 /includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#6 /includes/MediaWiki.php(904): MediaWiki->performRequest()
#7 /includes/MediaWiki.php(562): MediaWiki->main()
#8 /index.php(50): MediaWiki->run()
#9 /index.php(46): wfIndexMain()
#10 {main}

Am using latest master with MW 1.39.6.

krabina commented 9 months ago

Happens only if $wgPageFormsSimpleUpload = false; The simple upload works.

krabina commented 8 months ago

@gesinn-it-gea so this is not fixed in 5.3.4.7?

krabina commented 7 months ago

Thank you, I can confirm this is working now!