Page MenuHomePhabricator

After upgrading to MW 1.23 forms fail to open properly
Closed, DeclinedPublic

Description

Author: antti.kanner

Description:
Form page gives out warning, that the page already exists and instead of form fields there are strings such as:

UNIQa693e03b123ceddd-item-0--QINU

php-debugging gives warnings:

Warning: Missing argument 2 for SFFormUtils::minorEditInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 296 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 85
Warning: Missing argument 3 for SFFormUtils::minorEditInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 296 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 85
Notice: Undefined variable: is_disabled in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 103
Warning: Missing argument 2 for SFFormUtils::watchInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 300 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 115
Notice: Undefined variable: is_disabled in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 140
Warning: Missing argument 2 for SFFormUtils::minorEditInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 296 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 85
Warning: Missing argument 3 for SFFormUtils::minorEditInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 296 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 85
Notice: Undefined variable: is_disabled in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 103
Warning: Missing argument 2 for SFFormUtils::watchInputHTML(), called in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 300 and defined in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 115
Notice: Undefined variable: is_disabled in /var/www/mediawiki/extensions/SemanticForms/includes/SF_FormUtils.php on line 140

MediaWiki version is 1.23, SMW 1.9.1.1 and Semantic Forms 2.7


Version: master
Severity: normal

Details

Reference
bz64049

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:13 AM
bzimport set Reference to bz64049.

I don't think any of those warnings/notices are related to this problem, although it's strange that they're showing up.

Is this happening on a public wiki? If not, could you try to replicate it on a public wiki, like http://scratchpad.referata.com ? It's fine if the bug doesn't show up - I really just want to see the form definition.

Also, does this happen when creating new pages, or editing existing pages, or both?

antti.kanner wrote:

(In reply to Yaron Koren from comment #1)

I don't think any of those warnings/notices are related to this problem,
although it's strange that they're showing up.

Okay.

Is this happening on a public wiki? If not, could you try to replicate it on
a public wiki, like http://scratchpad.referata.com ? It's fine if the bug
doesn't show up - I really just want to see the form definition.

Yes, this happens on public wiki:

for example:

http://tieteentermipankki.fi/mediawiki/index.php?title=Nimitys:A&action=formedit

shows the problem, and:

http://tieteentermipankki.fi/mediawiki/index.php?title=Lomake:Nimitys&action=edit

shos the form definition.

Also, does this happen when creating new pages, or editing existing pages,
or both?

both

Thanks

Antti

Oh, it's great that the wiki is public. My guess is that the error is caused by a change that Stephan Gambke made last month to the SF code, here:

https://git.wikimedia.org/commitdiff/mediawiki%2Fextensions%2FSemanticForms.git/753fea55bc768d039dc12b2e4ef0a15f77f0f016

If it's not too much trouble, could you revert to the older version of the code - either via Git, or just by changing that file manually - and see if the problem goes away?

(This is for the UNIQ/QINU issue - I don't know if the "This page already exists, but it does not use this form" error is related.)

antti.kanner wrote:

It seems that reverting back versions did not fix the problem.

I try it again tomorrow.

Thanks for help

Antti

a5npmp wrote:

I'm getting the same error in MW 1.23, SF 2.7, SMW 1.9.2. Saving the edit seems to work fine though. Any update for this bug?

Thanks,

Long

The wiki that I was getting this on has been decommissioned. :-(

So, nope, all good!

Unfortunately closing this report as no further information how to reproduce has been provided.
Anyone please reopen this report (by changing its status) after providing the information asked for and if this still happens. Thanks!