Last modified: 2011-04-11 19:17:53 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 T26939, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24939 - Installation of MW using SQLite db throws 'Database returned error "19: interwiki.iw_api may not be NULL' error
Installation of MW using SQLite db throws 'Database returned error "19: inter...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.17.x
All All
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2010-08-25 22:50 UTC by Dan Nessett
Modified: 2011-04-11 19:17 UTC (History)
3 users (show)

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


Attachments

Description Dan Nessett 2010-08-25 22:50:12 UTC
I am attempting to install MW using SQLite (3.4.2). I am using r71491. After filling in the appropriate information, the installation falls over with the error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: 

INSERT INTO interwiki(iw_prefix,iw_url,iw_local) VALUES ('acronym','http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=$1',0)

from within function "". Database returned error "19: interwiki.iw_api may not be NULL".

Originally it complained because I did not supply a data directory. So I created one (/var/data/sqlite_data/), changed its ownership to www-data (apache2 on Ubunutu) and supplied the path in the appropriate place. This pushed the install past that error, but then it threw the error given above.
Comment 1 Chad H. 2010-08-25 22:52:21 UTC
Old installer or new?
Comment 2 Dan Nessett 2010-08-26 00:50:33 UTC
I assume new:

$ svn info Installer.php 
Path: Installer.php
Name: Installer.php
URL: http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/config/Installer.php
Repository Root: http://svn.wikimedia.org/svnroot/mediawiki
Repository UUID: dd0e9695-b195-4be7-bd10-2dea1a65a6b6
Revision: 71491
Node Kind: file
Schedule: normal
Last Changed Author: platonides
Last Changed Rev: 71401
Last Changed Date: 2010-08-21 07:34:16 -0700 (Sat, 21 Aug 2010)
Text Last Updated: 2010-08-23 10:02:38 -0700 (Mon, 23 Aug 2010)
Checksum: 78979ee1f9f89a0fb460770d045a3be7
Comment 3 Chad H. 2010-08-26 01:58:42 UTC
No that's the old installer. If it can't be replicated in the new installer in trunk then not going to bother fixing this.

Will mark INVALID once old installer get svn del'd.
Comment 4 Dan Nessett 2010-08-26 02:25:43 UTC
I svn up'd. The information for Installer.php is now:

$svn info Installer.php 
Path: Installer.php
Name: Installer.php
URL: http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/config/Installer.php
Repository Root: http://svn.wikimedia.org/svnroot/mediawiki
Repository UUID: dd0e9695-b195-4be7-bd10-2dea1a65a6b6
Revision: 71688
Node Kind: file
Schedule: normal
Last Changed Author: platonides
Last Changed Rev: 71401
Last Changed Date: 2010-08-21 07:34:16 -0700 (Sat, 21 Aug 2010)
Text Last Updated: 2010-08-23 10:02:38 -0700 (Mon, 23 Aug 2010)
Checksum: 78979ee1f9f89a0fb460770d045a3be7

The same problem occurs on installation. I include here more contextual information:

Environment checked. You can install MediaWiki.

Generating configuration file...
Database type: SQLite
Loading class: DatabaseSqlite
Attempting to connect to SQLite database at "/var/data/sqlite_data": ok
Connected to sqlite 3.4.2
Creating tables... done.
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: 
INSERT INTO interwiki(iw_prefix,iw_url,iw_local) VALUES ('acronym','http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=$1',0)
from within function "". Database returned error "19: interwiki.iw_api may not be NULL".
Comment 5 Tim Starling 2010-08-26 02:29:29 UTC
The new installer is at config/new-index.php. Installer.php is the old installer.
Comment 6 Dan Nessett 2010-08-26 03:37:34 UTC
(In reply to comment #5)
> The new installer is at config/new-index.php. Installer.php is the old
> installer.

$ svn info new-index.php 
Path: new-index.php
Name: new-index.php
URL: http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/config/new-index.php
Repository Root: http://svn.wikimedia.org/svnroot/mediawiki
Repository UUID: dd0e9695-b195-4be7-bd10-2dea1a65a6b6
Revision: 71688
Node Kind: file
Schedule: normal
Last Changed Author: ialex
Last Changed Rev: 70326
Last Changed Date: 2010-08-02 01:31:23 -0700 (Mon, 02 Aug 2010)
Text Last Updated: 2010-08-10 07:36:19 -07
Comment 7 Max Semenik 2010-08-26 15:47:53 UTC
Meh, fixed in r71704.

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


Navigation
Links