Page MenuHomePhabricator

[Secure HTML extension] 2 warnings: Undefined index, non-static
Open, Needs TriagePublic

Description

I guess this is related to https://phabricator.wikimedia.org/T180857

There are 2 issues when generating a new secure HTML code via Special:SecureHTML.

  • When calling Special:SecureHTML this warning appears:

Notice: Undefined index: in /mediawiki/extensions/SecureHTML/SpecialSecureHTML.php on line 40

  • After entering a HTML code the Secure HTML code is parsed and shown. However there is a warning:

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method SpecialSecureHTML::trySubmit() should not be called statically in /mediawiki/includesformForm.php on line 613

Tried both the REL_1_27 and master version of https://www.mediawiki.org/wiki/Extension:Secure_HTML and MediaWiki 1.27.4.

Event Timeline

Stefahn created this task.Nov 26 2017, 6:27 PM
Reedy removed a subscriber: Reedy.Nov 26 2017, 6:41 PM
TTO added a comment.Nov 26 2017, 10:51 PM

You'd be advised to download the 1.27 version of the extension from https://www.mediawiki.org/wiki/Special:ExtensionDistributor/SecureHTML if you are on MediaWiki 1.27.

Stefahn added a comment.EditedNov 27 2017, 10:07 AM

I tried with the 1.27 version and it throws the same errors.

This comment was removed by Stefahn.

Is it only the 3rd issue that requires the presence of Page Forms to happen, or all of them?

This comment was removed by Stefahn.
This comment was removed by Stefahn.

I think a new bug report is the way to go, yes. Hopefully there you can clarify exactly how to reproduce this issue.

Okay, added a new bug report: https://phabricator.wikimedia.org/T181903.
I will update the description of this bug report and delete my unrelated comments.

Stefahn renamed this task from SecureHTML: Undefined index, non-static, DBUnexpectedError to 2 warnings in SecureHTML: Undefined index, non-static.Dec 2 2017, 10:01 PM
Stefahn updated the task description. (Show Details)
Stefahn removed a subscriber: Yaron_Koren.

https://www.mediawiki.org/wiki/Extension:SecureHTML told me: This extension has been archived.

But there's a problem to be clarified: Is this about Secure_HTML?

Aklapper renamed this task from 2 warnings in SecureHTML: Undefined index, non-static to [Secure HTML extension] 2 warnings: Undefined index, non-static.Sep 20 2018, 8:55 AM