Last modified: 2007-07-27 10:34:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9857 - After Semantic MediaWiki setup fatal error occures on every edit
After Semantic MediaWiki setup fatal error occures on every edit
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
Macintosh Mac OS X 10.4
: Highest major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-09 15:18 UTC by Andrew Kir
Modified: 2007-07-27 10:34 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Andrew Kir 2007-05-09 15:18:00 UTC
I have a default installation of MediaWiki 1.9.3 and default installation of 
SMW 0.7 atop of it. After setup each edit crashes with:
Fatal error: Call to a member function getSubject() on a non-object in /var/www/
wiki/extensions/SemanticMediaWiki/includes/SMW_Factbox.php on line 376

However edit completes successfully.
Comment 1 amy! 2007-05-14 13:44:15 UTC
I am just installing MediaWiki and Semantic MediaWiki from the latest onto a new
database.  I'm seeing this bug too.  And it seems to be creating template pages
for me when I encounter it, but not basic article pages (so I can't do SMWTest).
Comment 2 amy! 2007-05-14 15:31:34 UTC
Update, it did create SMWTest eventually, but the Factbox does not appear.
Comment 3 S Page 2007-05-16 23:10:08 UTC
This error implies something unexpected happened during the parseHook, so when the saveHook was called, it failed.

I couldn't reproduce with various combinations of $smwgEnableTemplateSupport and $smwgShowFactbox in SMW_Settings.php., but it seems it would be good to somehow test for errors in parsing and somewhere report them to users.  I don't know whether it's worth having additional error checking in the saveHook.
Comment 4 Neil Davies 2007-05-31 23:57:52 UTC
i get a similar problem on my installation of SMW 0.7 on MediaWiki 1.9.3 MySQL 5.0.37, PHP 5.2.1). If I edit content using the inline edit links by a header I get an error on save, however not when editing by clicking the edit tab at the top of the page.
Comment 5 Nick Roux 2007-07-03 13:03:53 UTC
Experienced the same problem with:
 * MediaWiki: 1.9.2
 * PHP: 5.2.0 (apache2handler)
 * MySQL: 5.0.27 

then I noticed point (2) == Installation == in the INSTALL.TXT and added
wfRunHooks( 'InternalParseBeforeLinks', array( &$this, &$text ) );
to Parser.php

Problem gone and all seems to work well.
Comment 6 julian 2007-07-26 19:23:25 UTC
Fatal error: Call to a member function getSubject() on a non-object in /home/lesouq86/public_html/lesouq/extensions/SemanticMediaWiki/includes/SMW_Factbox.php on line 376

This is the error I get when testing the extension.

please help!
Comment 7 julian 2007-07-27 10:34:28 UTC
i just realized that nick's comment is correct.  the info.doc that came in my mediawiki says to fix the parser.php for mediawiki 1.9 and earlier.  But it ought to say all 1.9 versions, because 1.9.2 was also fixed by running the fix.

Note You need to log in before you can comment on or make changes to this bug.