Page MenuHomePhabricator

Page using FormWizard parser function results in errors
Closed, ResolvedPublic

Description

https://collaborationkit.wmflabs.org/w/index.php/FormWizard?action=purge

Page contents:

{{#formwizard:Test.json}}

Shows these errors:

Warning: Missing argument 3 for FormWizardHooks::showProjectButton(), called in /var/www/html/w/includes/parser/Parser.php on line 3442 and defined in /var/www/html/w/extensions/FormWizard/Hooks.php on line 72

Warning: Missing argument 4 for FormWizardHooks::showProjectButton(), called in /var/www/html/w/includes/parser/Parser.php on line 3442 and defined in /var/www/html/w/extensions/FormWizard/Hooks.php on line 72

Warning: Missing argument 5 for FormWizardHooks::showProjectButton(), called in /var/www/html/w/includes/parser/Parser.php on line 3442 and defined in /var/www/html/w/extensions/FormWizard/Hooks.php on line 72

Warning: Missing argument 6 for FormWizardHooks::showProjectButton(), called in /var/www/html/w/includes/parser/Parser.php on line 3442 and defined in /var/www/html/w/extensions/FormWizard/Hooks.php on line 72

Notice: Undefined variable: action in /var/www/html/w/extensions/FormWizard/Hooks.php on line 81

Notice: Undefined variable: config in /var/www/html/w/extensions/FormWizard/Hooks.php on line 84

Notice: Undefined variable: pageName in /var/www/html/w/extensions/FormWizard/Hooks.php on line 85

Notice: Undefined variable: pageType in /var/www/html/w/extensions/FormWizard/Hooks.php on line 86

Event Timeline

According to documentation, I could have the button from the below image @Harej

Screen Shot 2018-08-26 at 6.38.44 AM.png (263×886 px, 41 KB)

Primarily I can say that the log shows that all the arguments were not given to the parser function as required.

In the event of missing fields, the error should be handled through an error message generated by MediaWiki. It should not result in PHP-level exceptions.

Change 482303 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[mediawiki/extensions/FormWizard@master] Page using FormWizard parser function results in errors.

https://gerrit.wikimedia.org/r/482303

Change 482303 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[mediawiki/extensions/FormWizard@master] Page using FormWizard parser function results in errors

https://gerrit.wikimedia.org/r/482303

Change 482303 merged by jenkins-bot:
[mediawiki/extensions/FormWizard@master] Page using FormWizard parser function results in errors

https://gerrit.wikimedia.org/r/482303

@Eugene233: The patch in Gerrit was merged, so I am assuming that this task can be resolved. If not and there is more work to do, then please reopen. Thanks.