Page MenuHomePhabricator

Serialization of 'Closure' is not allowed
Closed, InvalidPublic

Description

On very specified page edition (only the one) the following exception "hides" another MWException:

[89112a6d] [no req] Exception from line 447 of /var/www/html/site/extensions/SemanticForms/includes/SF_FormPrinter.php: Serialization of 'Closure' is not allowed
Backtrace:
#0 /var/www/html/site/extensions/SemanticForms/includes/SF_FormPrinter.php(447): serialize(Parser)
#1 [internal function]: SFFormPrinter->formHTML(string, boolean, boolean, integer, string, string, NULL)
#2 /var/www/html/site/includes/StubObject.php(99): call_user_func_array(array, array)
#3 /var/www/html/site/includes/StubObject.php(119): StubObject->_call(string, array)
#4 /var/www/html/site/extensions/SemanticForms/includes/SF_AutoeditAPI.php(769): StubObject->__call(string, array)
#5 /var/www/html/site/extensions/SemanticForms/includes/SF_AutoeditAPI.php(769): StubObject->formHTML(string, boolean, boolean, integer, string, string, NULL)
#6 /var/www/html/site/extensions/SemanticForms/includes/SF_AutoeditAPI.php(115): SFAutoeditAPI->doAction()
#7 /var/www/html/site/extensions/SemanticForms/specials/SF_FormEdit.php(79): SFAutoeditAPI->execute()
#8 /var/www/html/site/extensions/SemanticForms/includes/SF_FormEditAction.php(196): SFFormEdit::printForm(string, string)
#9 /var/www/html/site/extensions/SemanticForms/includes/SF_FormEditAction.php(32): SFFormEditAction::displayForm(SFFormEditAction, Article)
#10 /var/www/html/site/includes/Wiki.php(441): SFFormEditAction->show()
#11 /var/www/html/site/includes/Wiki.php(305): MediaWiki->performAction(Article, Title)
#12 /var/www/html/site/includes/Wiki.php(596): MediaWiki->performRequest()
#13 /var/www/html/site/includes/Wiki.php(460): MediaWiki->main()
#14 /var/www/html/site/index.php(49): MediaWiki->run()

Versions of MediaWiki, Semantic extensions (incl. forms end other) are up to date.


Version: unspecified
Severity: normal

Details

Reference
bz57831

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:36 AM
bzimport set Reference to bz57831.

Stephan - I don't understand this, but hopefully you do. :)

Could you please explicitly identify which version of SF you are running? Because this sounds like a bug fixed more than 6 months ago.

I used the GIT HEAD versions by 2013-12-02 for MediaWiki, Semantic Wiki, Semantic Forms, etc.

Sergey - are you sure about that? I just looked through the code history, and as far as I can tell the call to serialize() in SF_FormPrinter.php was commented out in May 2013:

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

Maybe you're on some tag/branch and not aware of it? What actual version of SF are you running? (See Special:Version.)

I'm setting this to "invalid" - I simply don't see any way that this could be due to anything other than using old code.