Page MenuHomePhabricator

Semantic Forms $sfgCacheFormDefinitions causing exception
Closed, ResolvedPublic

Description

I recently tried to enable $sfgCacheFormDefinitions and $sfgFormCacheType to speed up forms:

$sfgCacheFormDefinitions = true;
$sfgFormCacheType = CACHE_ANYTHING;

After enabling trying to edit with this form:

http://wikiapiary.com/w/index.php?title=WikiApiary&action=formedit

Started throwing an exception (full message here, paths truncated):

2013/06/26 09:01:44 [error] 13514#0: *3293810 FastCGI sent in stderr: "PHP message: PHP Notice: Trying to get property of non-object in .../extensions/Variables/Variables.php on line 208
PHP message: PHP Catchable fatal error: Argument 2 passed to SMW\ParserData::__construct() must be an instance of ParserOutput, null given, called in .../extensions/SemanticMediaWiki/SemanticMediaWiki.hooks.php on line 688 and defined in .../extensions/SemanticMediaWiki/includes/ParserData.php on line 177" while reading response header from upstream, client: 173.165.236.113, server: wikiapiary.com, request: "GET /w/index.php?title=WikiApiary&action=formedit HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "wikiapiary.com", referrer: "http://wikiapiary.com/wiki/WikiApiary"

None of those errors are in Semantic Forms code, but the error seems to be caused by these settings.

Note that if I resaved Form:Website and then did Edit with Form, it would work on the first request. All subsequent requests then generated the exception.

Also, this error was true for all forms on the site, not just this one example.


Version: master
Severity: normal

Details

Reference
bz50236

Event Timeline

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

I don't know if any of this is still happening, but in any case, I'm re-assigning this to Stephan - which is probably what I should have done at the very beginning.

@Foxtrott: Do you (still) work (or plan to work) on this issue? If you do not plan to work on this issue anymore, please remove yourself as assignee (via Add Action...Assign / Claim in the dropdown menu) to avoid cookie-licking. Thanks a lot!

Foxtrott subscribed.
Krinkle subscribed.

The code in question no longer exists in the current stable version of SMW.
For future issues, report instead to https://github.com/SemanticMediaWiki/SemanticMediaWiki#contribution-and-support.