Last modified: 2014-02-27 16:18:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63963, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61963 - Enabling SemanticForms extension generates a database query error
Enabling SemanticForms extension generates a database query error
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
REL1_22-branch
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-26 21:34 UTC by Daniel Vu
Modified: 2014-02-27 16:18 UTC (History)
0 users

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


Attachments

Description Daniel Vu 2014-02-26 21:34:13 UTC
When the SemanticForms extension is enabled, no content isn’t being retrieved at all from the database, and all that is displayed is this error message: 

"A database query error has occurred. This may indicate a bug in the software."

When using the PHP debugging tools, these notices appear as well:

• "Notice: Uncommitted DB writes (transaction from DatabaseBase::query (WikiPage::pageData)). in /usr/opspedia/gsddtovsdvap014/var/www/html/wiki/includes/db/Database.php on line 3944"

• "Notice: DB transaction callbacks still pending (from Title::invalidateCache). in /usr/opspedia/gsddtovsdvap014/var/www/html/wiki/includes/db/Database.php on line 3953"

For what it's worth, we are upgrading our MediaWiki installation from version 1.17 to 1.22, and no other extensions besides SemanticMediaWiki have been installed or enabled.
Comment 1 Yaron Koren 2014-02-26 21:45:29 UTC
Please add "$wgShowSQLErrors = true;" to your LocalSettings.php, so you can see the actual SQL error.
Comment 2 Daniel Vu 2014-02-27 15:34:39 UTC
I've done that, and received new messages, which I've copy-pasted below.

-------------------------------------------------------------------------------

A database query error has occurred. This may indicate a bug in the software.

Query:
SELECT smw_id,smw_sortkey FROM `mw_smw_object_ids` WHERE smw_title = 'August_sdnotices' AND smw_namespace = '0' AND smw_iw = '' AND smw_subobject = '' LIMIT 1 

Function: SMWSql3SmwIds::getDatabaseIdAndSort

Error: 1146 Table 'gsddtovsdvap014.mw_smw_object_ids' doesn't exist (10.77.8.118)
Comment 3 Yaron Koren 2014-02-27 15:41:58 UTC
It looks like you didn't update, or didn't fully update, the database after upgrading SMW - you should run update.php, or run the update from Special:SMWAdmin.
Comment 4 Daniel Vu 2014-02-27 15:54:08 UTC
Running the update from Special:SMWAdmin worked! We had previously tried running update.php several times, and I remember thinking about how odd it was that the update script didn't initialize or upgrade any tables at all at the time.

Thanks very much for your time. I'll close this ticket as resolved now.
Comment 5 Yaron Koren 2014-02-27 16:18:49 UTC
Cool! I'm changing this to "invalid", though, just for record-keeping purposes.

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


Navigation
Links