Last modified: 2014-05-24 02:04:26 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 T67641, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65641 - Database returned error "1054: Unknown column 'gt_lat_int' in 'field list'
Database returned error "1054: Unknown column 'gt_lat_int' in 'field list'
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
GeoData (Other open bugs)
REL1_22-branch
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-22 16:06 UTC by massimiliano.pisani
Modified: 2014-05-24 02:04 UTC (History)
3 users (show)

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


Attachments

Description massimiliano.pisani 2014-05-22 16:06:39 UTC
Hi,
I have the same problem reported in bug 62127, but it is not explained how to set up the tables.
The explaniation says only:

> > To sum up, the changes I made:
> > 
> > 1. Added gt_lat_int to mw_geo_tags table.
> > 2. Added gt_lon_int to mw_geo_tags table.
> > 3. Added gt_spatial with 4 columns  ( gt_lat_int, gt_lon_int, gt_lon,
> > gt_primary ) to mw_geo_tags Indexes.

Can anyone tell me what values ​​to use to create the missing tables?

type= ?
null= ?
default= ?

Thanks for the help that you give me!
Comment 1 Kevin Israel (PleaseStand) 2014-05-22 17:10:36 UTC
Did you run maintenance/update.php after adding the require_once line to LocalSettings.php, as described at <https://www.mediawiki.org/wiki/Extension:GeoData#Installation>?

That should automatically create the geo_tags table if it is missing.
Comment 2 massimiliano.pisani 2014-05-22 19:02:10 UTC
Yes, I followed the instructions but did not make them. Just like in the bug that I mentioned, so I guess the only remedy is to create them manually but I do not know the values...
Comment 3 Florian 2014-05-23 12:52:18 UTC
Heyho! Please run update script again and look at the output. If you have the actual git version for example, there is the statement to create the required table with fields:
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FGeoData/10c5d177c98d59544fc4f3bab414d769f4c14167/sql%2Fdb-backed.sql
Comment 4 massimiliano.pisani 2014-05-24 02:04:26 UTC
Perfect! Now everything works, including MobileFrontend!!! Thank you for the help!

For anyone with the same problem, these are the complete instructions to fix the bug:

1. Added gt_lat_int (smallint NOT NULL) to mw_geo_tags table.
2. Added gt_lon_int (smallint NOT NULL) to mw_geo_tags table.
3. Added gt_spatial (index) with 4 columns  ( gt_lat_int, gt_lon_int, gt_lon, gt_primary ) to mw_geo_tags Indexes.

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


Navigation
Links