Page MenuHomePhabricator

PF forminput parser function not working in system messages
Closed, DeclinedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

This worked in MW 1.31, but does not work anymore in MW 1.35.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

PF 5.2.1, MW 1.35

Event Timeline

@Krabina - sorry for the very long delay on this. The issue here is that the #forminput display is now done via JavaScript and not just PHP/HTML - so the right HTML is being printed, but the JavaScript that would actually display the form input is not being called.

One option is to use hooks to load this JavaScript in Special:Upload, or maybe in other special pages as well. Why do you want #forminput to be displayed in Special:Upload, by the way? Or maybe you don't need this feature any more?

Marking this as "Declined" - putting interface elements into system messages doesn't seem like a generally good idea anyway.

Well the use case is that I don't want users to use the Special:Upload, but want them to use e form with additional fields for uploading documents.
As MediaWiki is pointing a lot of things to this special page, it seemed like a good idea to be able to embed (not only link) a form on special:upload.

Maybe you can just put a note/box at the top of Special:Upload like, "You should probably go to this form instead"?

sure, that's what I did. Just was wondering why embedding it here did now work when it works everywhere else...