https://bugzilla.wikimedia.org/show_bug.cgi?id=52396

Gabriel Glachant <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Gabriel Glachant <[email protected]> ---
Hi,

I was getting this same error while following the tutorials on
http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Quick_start_guide, on
the 'Create forms' step using the Special:CreateForm page.

2013/09/05 11:35:44 [error] 1146#0: *426 FastCGI sent in stderr: "PHP message:
PHP Fatal error:  Call to a member function getDBkey() on a non-object in
/srv/www/<redacted>/htdocs/w/extensions/SemanticMediaWiki/includes/BasePropertyAnnotator.php
on line 108" while reading response header from upstream, client: <redacted>,
server: <redacted>, request: "POST /wiki/Special:CreateForm HTTP/1.1",
upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "<redacted>",
referrer: "http://<redacted>/wiki/Special:CreateForm"

The following patch *does indeed* solve the issue.
---
diff --git a/includes/BasePropertyAnnotator.php
b/includes/BasePropertyAnnotator.php
index dc9289f..4734ca9 100644
--- a/includes/BasePropertyAnnotator.php
+++ b/includes/BasePropertyAnnotator.php
@@ -105,7 +105,7 @@ class BasePropertyAnnotator extends ObservableSubject {
         * @return BasePropertyAnnotator
         */
        public function addDefaultSort( $defaultSort ) {
-               $sortkey = $defaultSort ? $defaultSort : str_replace( '_', ' ',
$this->semanticData->getSubject()->getTitle()->getDBkey() );
+               $sortkey = $defaultSort ? $defaultSort : str_replace( '_', ' ',
$this->semanticData->getSubject()->getDBkey() );
                $this->semanticData->addPropertyObjectValue(
                        new DIProperty( DIProperty::TYPE_SORTKEY ),
                        new SMWDIBlob( $sortkey )
---

I am running MediaWiki from git branch REL1_21 and latest extensions also out
of git.

Tell me if you need any further information.

Regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to