Last modified: 2012-02-04 10:50:50 UTC
Setting up standard database configuration for SMW ... Selected storage engine is "SMWSQLStore2" (or an extension thereof) Checking table smw_ids ... Table already exists, checking structure ... ... field smw_id is fine. ... field smw_namespace is fine. ... field smw_title is fine. ... field smw_iw is fine. ... field smw_sortkey is fine. ... done. Checking table smw_conccache ... Table already exists, checking structure ... ... field s_id is fine. ... field o_id is fine. ... done. Checking table smw_rels2 ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table smw_atts2 ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... field value_xsd is fine. ... field value_num is fine. ... deleting obsolete field value_unit ... done. ... done. Checking table smw_text2 ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... field value_blob is fine. ... done. Checking table smw_spec2 ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... field value_string is fine. ... done. Checking table smw_subs2 ... Table already exists, checking structure ... ... field s_id is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table smw_subp2 ... Table already exists, checking structure ... ... field s_id is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table smw_inst2 ... Table already exists, checking structure ... ... field s_id is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table smw_redi2 ... Table already exists, checking structure ... ... field s_title is fine. ... field s_namespace is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table smw_conc2 ... Table already exists, checking structure ... ... field s_id is fine. ... field concept_txt is fine. ... field concept_docu is fine. ... changing type of field concept_features from 'INTEGER' to 'BIGINT' ... Warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "ENGINE" LINE 1: .../ TABLE smw_conc2 ALTER COLUMN "concept_features" ENGINE BIG... ^ in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237
Here error messages for "usual" pages: Warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "sm_coords" does not exist LINE 1: ...:deleteSemanticData::deleteById Wikiadmin */ FROM sm_coords ... ^ in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 237 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1729) in /home/droid-dev/www/includes/WebResponse.php on line 22
I cannot reproduce this locally error. I have PostGres 8.4, MW trunk and SMW trunk. The second error you are getting because of missing table for geocoords. I very recently added this one, so if you ran the SMW setup before I did this you'll need to run it again.
This error still exist on PostgreSQL 9.05, MW and SMW trunk
Here is full log: Setting up standard database configuration for SMW ... Selected storage engine is "SMWSQLStore2" (or an extension thereof) Checking table "smw_ids" ... Table already exists, checking structure ... ... field smw_id is fine. ... field smw_namespace is fine. ... field smw_title is fine. ... field smw_iw is fine. ... field smw_sortkey is fine. ... done. Checking table "smw_conccache" ... Table already exists, checking structure ... ... field s_id is fine. ... field o_id is fine. ... done. Checking table "smw_rels2" ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... changing type of field o_id from 'SERIAL NOT NULL' to 'SERIAL' ... done. ... done. Checking table "smw_atts2" ... Table already exists, checking structure ... ... field s_id is fine. ... field p_id is fine. ... field value_xsd is fine. ... field value_num is fine. ... deleting obsolete field value_unit ... Warning: pg_query() [function.pg-query]: Query failed: ERROR: zero-length delimited identifier at or near """" LINE 1: ... /* SMWSQLHelpers::updateTable Wikiadmin */ TABLE ""smw_atts... ^ in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253
updated SemanticMediaWiki to trunk: this error still here: Setting up standard database configuration for SMW ... Selected storage engine is "SMWSQLStore2" (or an extension thereof) Checking table "smw_ids" ... Table already exists, checking structure ... ... field smw_id is fine. ... field smw_namespace is fine. ... field smw_title is fine. ... changing type of field smw_iw from 'TEXT' to 'TEXT NOT NULL' ... done. ... creating field smw_subobject ... Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "smw_subobject" contains null values in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "smw_subobject" does not exist LINE 1: ...kiadmin */ smw_id,smw_title,smw_namespace,smw_iw,smw_subobj... ^ in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1934) in /home/droid-dev/www/includes/WebResponse.php on line 23 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1934) in /home/droid-dev/www/includes/WebResponse.php on line 23 Warning: Cannot modify header information - headers already sent by (output started at /home/droid-dev/www/includes/OutputPage.php:1934) in /home/droid-dev/www/includes/WebResponse.php on line 23 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253
I'm still at version 8.4, which is the most recent one in the Ubuntu repositories. If possible, try downgrade and see if that allows you to successfully install SMW.
MediaWiki and SemanticMediaWiki - both from current trunk: Setting up standard database configuration for SMW ... Selected storage engine is "SMWSQLStore2" (or an extension thereof) Checking table "smw_ids" ... Table already exists, checking structure ... ... field smw_id is fine. ... field smw_namespace is fine. ... field smw_title is fine. ... changing type of field smw_iw from 'TEXT' to 'TEXT NOT NULL' ... done. ... creating field smw_subobject ... Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "smw_subobject" contains null values in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 253
Trunk Mediawiki 110689 rev, trunk SemanticMediaWiki, PostgreSQL 9.1.1: Setting up standard database configuration for SMW ... Selected storage engine is "SMWSQLStore2" (or an extension thereof) Checking table "smw_ids" ... Table already exists, checking structure ... ... field smw_id is fine. ... field smw_namespace is fine. ... field smw_title is fine. ... changing type of field smw_iw from 'TEXT' to 'TEXT NOT NULL' ... done. ... creating field smw_subobject ... Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "smw_subobject" contains null values in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 254 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 254 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 254 Warning: pg_query() [function.pg-query]: Query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block in /home/droid-dev/www/includes/db/DatabasePostgres.php on line 254
Fixed after removing all SMW tables and recreating them from scratch. Only need to add schema prefix 'mediawiki.' into tables names in file SMW_Postgres_Schema.sql