Ok, I've fixed the proximate problem by finding an old backup that
fortunately had the "right" SRF version (which is now listed on
Special:Version if anyone is interested).  The most recent commit on the
SRF version I have that renders my tree properly is
0eafd7c7a350759f225401de6ab2652598b1dd52 on 10/26/2013.  As mentioned
previously, the most up-to-date 1.8.x branch does not render the tree
properly.

The problem that prompted my action that caused the breakage was that my
Special:Ask page doesn't work.  I asked about this previously on this list
and it was pointed out that SRF 1.9 is not compatible with my older SMW
version.  I was attempting to downgrade my SRF version to fix the
Special:Ask page, and that's what caused this problem.  Does anyone have
any ideas on how to fix this, or should I just forget about it until I
upgrade?  This is a much lower-priority question.

If this looks like a legitimate bug, I can try to track down which
changeset introduces it.  If that would be useful, just let me know.

Thanks,
Ben


On Tue, May 20, 2014 at 11:13 AM, Benjamin Pelletier
<bjpcalt...@gmail.com>wrote:

> I have a form I've been using on my SMW installation for a while, but I
> recently broke it.  I would like to figure out how to un-break it, but so
> far I've been unsuccessful.  This is pretty high priority for me, so any
> help would be appreciated.
>
> The error message can be seen 
> here<http://stg.ropewiki.com/index.php/Special:FormEdit/Canyon/asdf>;
> it is:
> Notice: Undefined property: stdClass::$mParent in /var/www/
> stg.ropewiki.com/extensions/SemanticResultFormats/formats/tree/SRF_Tree.phpon 
> line 146 Notice: Undefined property: stdClass::$mParent in /var/www/
> stg.ropewiki.com/extensions/SemanticResultFormats/formats/tree/SRF_Tree.phpon 
> line 146 Catchable fatal error: Argument 2 passed to
> SRFTree::printElement() must be an instance of SRFTreeElement, instance of
> stdClass given, called in /var/www/
> stg.ropewiki.com/extensions/SemanticResultFormats/formats/tree/SRF_Tree.phpon 
> line 156 and defined in /var/www/
> stg.ropewiki.com/extensions/SemanticResultFormats/formats/tree/SRF_Tree.phpon 
> line 162
>
> When things were working properly, I was on some unknown changeset of the
> master branch of Semantic Results Formats because the way I obtained SRF
> was to simply do a git clone
> https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticResultFormats.gitand
>  nothing else.  I recently changed SRF versions by doing a git checkout
> on the REL1_21 branch because I thought that might fix a different problem.
>  Unfortunately, by the time I noticed this problem, I had lost any
> indication as to what changeset I used to be on.  I've tried switching to
> the 1.8.x branch, the REL1_21 branch, and the master branch.  The first two
> have the same problem and the master is totally fubar (as expected, because
> my MW and SMW versions are too low for the latest).
>
> The problem appears to be a format=tree #ask query I have in the form
> input.  The pertinent line is:
> {{#ask: [[Category:Regions]] |format=tree |parent=Located in region
> |limit=1000 }}
>
> When I change that line to:
> {{#ask: [[Category:Regions]] |format=list |parent=Located in region
> |limit=1000 }}
>
> ...the problem resolves.  You can see the results of the latter query 
> here<http://stg.ropewiki.com/index.php/Sandbox>,
> but it seems I can't save a page containing the former query (though it
> already exists embedded within the Form:Canyon page).
>
> Any ideas would be greatly appreciated.
>
> Thanks!
> --Ben
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to