Over at Wikia we've been getting issues with SMW. Sometimes on
undeletion a blank page (ie: php fatal error) is given making it
impossible to undelete a page.
Aug 25 04:04:31 10.8.2.55 httpd[6273]: PHP Fatal error: Call to a
member function getSubject() on a non-object in
/usr/wikia/source/releases_200808.3/extensions/3rdparty/SemanticMediaWiki/includes/SMW_Factbox.php
on line 326
This appears to be the |$this_ns =
SMWFactbox::$semdata->getSubject()->getNamespace(); call inside of
|SMWFactbox::addImportedDefinition.
This would be caused because SMWFactbox::$semdata is not checked to see
if it's set before making that call.
Could someone else handle this one? Unfortunately I don't know what that
function should output if there is a failure in getting the namespace.
Also, there may be an issue with the whole namespace stuff.
FWIW, last page I had issues undeleting was a user talkpage. Annotations
should actually be off. Perhaps actual annotating is disabled, but for
some reason the factbox is being called, and causing an error because no
annotating was done and thus no title is set for it to use.
Oh, btw... I kinda find (SMWFactbox::$semdata === NULL) to be quite
ugly. !isset(SMWFactbox::$semdata) works fine, and it's more
understandable when you read it.
--
~Daniel Friesen(Dantman, Nadir-Seen-Fire) of:
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
--Games-G.P.S. (http://ggps.org)
-And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel