Closed (fixed)
Project:
Location
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
6 Feb 2007 at 21:35 UTC
Updated:
7 Feb 2008 at 02:11 UTC
Jump to comment: Most recent file
You get this if Views module is not installed...
Fatal error: Call to undefined function: views_invalidate_cache() in /location/location.install on line 121
wrapping that in an if (module_exists('views')) lets you proceed, but then you get:
* user warning: Unknown column 'oid' in 'location' query: ALTER TABLE location CHANGE oid eid int unsigned NOT NULL default '0' in /includes/database.mysql.inc on line 172.
* user warning: Duplicate entry 'location_lid' for key 1 query: INSERT INTO sequences (name, id) VALUES ('location_lid', 292) in /includes/database.mysql.inc on line 172.
* user warning: Unknown column 'oid' in 'location' query: ALTER TABLE location CHANGE oid eid int unsigned NOT NULL default '0' in /includes/database.mysql.inc on line 172.
* user warning: Duplicate column name 'lid' query: ALTER TABLE location ADD COLUMN lid int(10) unsigned NOT NULL default '0' AFTER eid in /includes/database.mysql.inc on line 172.
* user warning: Duplicate entry 'location_lid' for key 1 query: INSERT INTO sequences (name, id) VALUES ('location_lid', 292) in /includes/database.mysql.inc on line 172.
* user warning: Duplicate column name 'is_primary' query: ALTER TABLE location ADD COLUMN is_primary tinyint NOT NULL default '0' in /includes/database.mysql.inc on line 172.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | location_no_views_47x.patch | 763 bytes | dww |
| #4 | location.install_1.patch | 447 bytes | Nick Brown |
Comments
Comment #1
webchickThis was the schema of the old table before the update:
The update wanted to start at #3.
Comment #2
webchickAnd here's the one now:
Comment #3
rainer7 commentedif i change location table as described, i get a new error:
thanks for any help
Comment #4
Nick Brown commentedAdding a patch
Comment #5
Nick Brown commentedComment #6
dwwStill a critical bug (just ran into it on an old site I'm updating). Miraculously, the patch in #4 still applies. Obviously, it still fixes the bug. Now that this module is under new management, hopefully we'll see a commit at long last. ;)
Comment #7
dwwOh, and here's a version for the DRUPAL-4-7 branch, for folks (like me) that are trying to finally get a site off 4.6.x. ;)
Comment #8
brmassa commentedDerek,
fixed on HEAD.
massa
PS: Just remember: HEAD is now the pre-Location 3 for Drupal 5 (soon we will move it to DRUPAL-5--3 branch). so you should not use it for 4.7 sites...
Comment #9
dwwYes, I understand that HEAD is for the latest code. ;) I'm saying, this is a bug in an old update, that you'd hit when upgrading from 4.6.x to 4.7.x if you actually followed the core upgrade instructions. therefore, you need to fix this in the older branches, too. that's why i supplied the patch in #7.
Comment #10
bdragon commentedI'm handling the 4.7 backports for install file functions..
Comment #11
bdragon commentedCommitted to DRUPAL-4-7.
Comment #12
dwwyay.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.