Update warning (link module can not be updated)

skizzo - February 26, 2009 - 07:28
Project:Link
Version:6.x-2.6-beta1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

This morning Updates reported:

Link 6.x-1.x-dev (2008-Nov-24)
Recommended version: 6.x-1.x-dev (2009-Feb-26)

After drush updating I tried to run update.php, receiving the following warning:

link module can not be updated. Its schema version is 0. Updates up to and including 1 have been removed in this release. In order to update link module, you will first need to upgrade to the last version in which these updates were available.

I am not sure how to proceed (and I do not see a dev version in the project page). Please advise. Thank you

#1

quicksketch - February 27, 2009 - 00:06

Hmm, what version are you updating from? The update_1 function was the 4.7 to 5.0 upgrade I believe.

#2

asb - February 27, 2009 - 00:41

Confirming, the same happened to me on two sites. Upgrade from 6.x-1.x-dev, neither drush nor update_status gives more details. Installed was, according to link.info:

# more sites/all/modules/link/link.info
; $Id: link.info,v 1.2 2008/03/31 06:50:42 quicksketch Exp $
name = Link
description = Defines simple link field types.
dependencies[] = content
package = CCK
core = 6.x

; Information added by drupal.org packaging script on 2009-02-26
version = "6.x-1.x-dev"
core = "6.x"
project = "link"
datestamp = "1235606940"

After manually upgrading to 6.x-2.5 the problem was gone.

Greetings, -asb

#3

skizzo - February 27, 2009 - 07:42

Having just few link items configured, I just uninstalled and then installed 6.x-2.5 (2008-Sep-22) from
scratch. I did that manually, as drush would default to installing 6.x-1.x-dev. Is that intentional?

#4

quicksketch - February 27, 2009 - 14:55

If you completely uninstall and then re-install the module, you shouldn't need to run update.php at all. It should simply start at the latest schema.

#5

skizzo - February 27, 2009 - 19:10

yes. In #3 I just described what I did to fix the problem described in #1. I then wondered why I was running 6.x-1.x-dev in the first place (instead of 6.x-2): the reason is that on first installation "drush pm install link" picked up the latest 6.x-1.x-dev version. If that is the intended behaviour then please close the issue. Thank you.

#6

quicksketch - February 28, 2009 - 00:44
Status:active» fixed

To explain the second issue, link's tagging is a little screwed up. The release is tagged as a 2.x version, but the code is actually still in the 1.x CVS branch. It should be branched into the 2.x branch, but since it makes no difference to end-users (except those checking out from CVS) I haven't bothered to change it.

#7

System Message - March 14, 2009 - 00:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

j0rd - April 20, 2009 - 07:20

Same issue. Just upgraded from 6.2.5 to 6.2.6-beta1

link module can not be updated. Its schema version is 0. Updates up to and including 1 have been removed in this release. In order to update link module, you will first need to upgrade to the last version in which these updates were available.

#9

jcfiala - April 20, 2009 - 14:29
Status:closed» active

Interesting - sorry, didn't know about this being there.

It sounds like I should try creating a link_update_1() function that doesn't actually do anything, for backwards compatibility. I'll look into it this week for inclusion in the actual 2.6 release.

#10

giggler - April 22, 2009 - 23:28

got the same error when upgrading from 6.x-2.5 to 6.x-2.6-beta1. Luckily I still had a copy of 6.x-2.5.

#11

jcfiala - April 27, 2009 - 00:01
Version:6.x-1.x-dev» 6.x-2.6-beta1

Here's a version of link that includes a noop link_update_1 - try this version and see if it updates for you?

AttachmentSize
link.tar_.gz 16.7 KB

#12

jcfiala - April 27, 2009 - 01:05
Status:active» fixed

Okay, I've added a noop link_update_1() - it won't do anything, but should prevent this update warning problem.

#13

searosin - April 29, 2009 - 11:11
Status:fixed» active

There is still a problem with it. I can update the module from 6.2.5 to 6.2.6 - beta1, but on the status report page there is an error warning after update:

"Database updates Out of date
Some modules have database schema updates to install. You should run the database update script immediately."

I ran update.php several times, but nothing has changed.

I tried the original and the one in #11, same result.

#14

sgriffin - May 1, 2009 - 11:31

Confirmed, same issue.
Installing the dev version of Link causes a chronic "Database updates Out of date"

#15

XerraX - May 5, 2009 - 15:47

same problem here, waiting for a solution :-)

#16

snorkers - May 7, 2009 - 17:42

I just did the same on a D6.11 site upgrading from 2.5 to 2.6beta1 - thank goodness for Time Machine - could not run update.php at all with the most recent download.

#17

Dre the Enigma - May 11, 2009 - 19:50

I'm having the same problem with the latest security upgrade. Has there been any headway on this?

#18

tizzo - May 12, 2009 - 17:26

Same issue, rolled back to the previous release and all is well.

#19

jcfiala - May 12, 2009 - 19:24

I'm aware there's a probelm with the beta1 for some people - I tried to fix this in the dev release that's on the page now, but it doesn't seem to fix all of the problem. I'm hoping to work on this soon, but unfortunately personal things have prevented me from following up yet.

#20

Aibehn - May 21, 2009 - 13:13

Same issue here

#21

ravik - May 27, 2009 - 05:56

got the same error after upgrade from 6-2.5 to 6-.2.6-beta

#22

vasike - June 2, 2009 - 06:16

subscribe

#23

tim.plunkett - June 3, 2009 - 20:48

CVS fails so hard on the link module. Please tag the DRUPAL-6--2 branch properly!

#24

catofcheshir - June 5, 2009 - 07:02

Warning is gone when i comment out

function link_update_last_removed() {
return 1;
}

in link.install

#25

Rob Loach - June 8, 2009 - 18:38
Category:support request» bug report
Priority:normal» critical
Status:active» needs review

Subscribing and pushing to a critical bug. This helps, but more testing would be great.

AttachmentSize
linkupdate.patch 1.12 KB

#26

BWPanda - June 9, 2009 - 06:06

Rob's patch from #25 didn't work for me (applied against 6.x-2.6-beta1)...
Made the attached patch instead...

Update.php runs properly after applying patch.

AttachmentSize
link.install.patch 380 bytes

#27

Rob Loach - June 9, 2009 - 17:31

Sorry, I neglected to mention that the patch was built against DRUPAL-6--1.

#28

bigmack83 - June 19, 2009 - 11:55
Status:needs review» reviewed & tested by the community

I had the same problem when upgrading from 6.5 to 6.x-2.6-beta1, applying the patch in #26 worked for me (did not apply patch in #25) and i have no errors when running 'drush updatedb' or running update.php in browser. Im marking as reviewed until patch is fixed and commited. thanks Rob & BWPanda

#29

wickwood - June 28, 2009 - 02:05

I too had the problem when upgrading from 6.5 to 6.x-2.6-beta1. Since it was a new site with no content yet, I just did a complete uninstall and then installed the newer version.

#30

jcfiala - July 1, 2009 - 22:28

Hey guys, thanks for all the help. I'm going to make a beta2 really quickly that contains this patch - I'm sorry for the delay on following up, but I sort of was blindsided by a big project here at work.

#31

jcfiala - July 2, 2009 - 13:44
Status:reviewed & tested by the community» fixed

This is released as link-2.6-beta2, I believe this is fixed with the addition of the patches above.

#32

System Message - July 16, 2009 - 13:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.