Page MenuHomePhabricator

Page Forms undefined error when using #formlink
Open, Needs TriagePublic


After clicking the save button when using the #formlink parser function, there is always a white box with the word undefined that flashes on the screen for about 1-2 seconds

. Is there a way to suppress this message?

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 26 2020, 3:16 AM

Do you mean, when saving a page that happens to contain a call to #formlink?

Yes, that is correct when saving a page using #formlink

Do you mean, when saving a page that happens to contain a call to #formlink?

Do you mean, when saving a page that happens to contain a call to #formlink?

@Madrigal84: I see that you assigned this task. Did you talk to Yaron before, and did Yaron agree to work on this task? (Also, exact version information is always welcome in bug reports.) Thanks!

Sorry about that; I didn't mean to assign the task.

MediaWiki 1.31.1
PHP 7.2.11 (apache2handler)
Page Forms 4.6 (71f42d6) 10:08, September 4, 2019

I tried to recreate the error by using #formlink parser function as mentioned in, but I couldn't experience that error. I am using the same query as in the first example of the given link.
@Madrigal84 @Yaron_Koren Could you please help me if I might be missing some parameters?

I, too, am curious about this - I don't think I tried reproducing this problem.

@Yaron_Koren I have written a statement as : -
{{#formlink:form=Gadgets|link text=Edit gadget|link type=button|query string=Gadgets[model]={{PAGENAME}} }}
Template: Gadgets
Structure is something like

When I click the Edit gadget button it takes me to the following page:-

Can you please help me with what am I doing wrong?

@Sahajsk - you need to specify "target=" also.

Sahajsk added a comment.EditedMar 29 2020, 5:55 AM

I know it works with "target" but on the wiki it says
target= - shouldn't usually be used, but it sets the "target" page to be edited if you want to link to the editing of a specific page.
That is why I asked if I was doing something wrong

Right. Yes, that's true. #formlink is usually used for forms that have a "page name formula", and don't require a page name ahead of time. So it might help if you tried it that way. See

Thanks @Yaron_Koren
I have tried a few variants with #formlink and tried what was mentioned in the task description, but couldn't experience this.
@Madrigal84 I suggest you, please try this once again as this issue might be fixed.

@Yaron_Koren I upgraded to Page Forms 4.9.5 and following a save action with a #formlink that uses popup + reload, the undefined message is still appears for a split second right before the page refreshes.

Click button to access form --> #formlink (|popup|reload) --> Save --> undefined --> page refresh successful