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

CommentFileSizeAuthor
#26 link.install.patch380 bytesBWPanda
#25 linkupdate.patch1.12 KBRobLoach
#11 link.tar_.gz16.7 KBjcfiala
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

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

asb’s picture

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

skizzo’s picture

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?

quicksketch’s picture

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.

skizzo’s picture

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.

quicksketch’s picture

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.

Status: Fixed » Closed (fixed)

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

j0rd’s picture

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.
jcfiala’s picture

Status: Closed (fixed) » 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.

giggler’s picture

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.

jcfiala’s picture

Version: 6.x-1.x-dev » 6.x-2.6-beta1
FileSize
16.7 KB

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

jcfiala’s picture

Status: Active » Fixed

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

searosin’s picture

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.

sgriffin’s picture

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

XerraX’s picture

same problem here, waiting for a solution :-)

snorkers’s picture

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.

Dre the Enigma’s picture

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

tizzo’s picture

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

jcfiala’s picture

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.

Aibehn’s picture

Same issue here

ravik’s picture

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

vasike’s picture

subscribe

tim.plunkett’s picture

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

catofcheshir’s picture

Warning is gone when i comment out

function link_update_last_removed() {
return 1;
}

in link.install

RobLoach’s picture

Category: support » bug
Priority: Normal » Critical
Status: Active » Needs review
FileSize
1.12 KB

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

BWPanda’s picture

FileSize
380 bytes

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.

RobLoach’s picture

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

luckysmack’s picture

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

wickwood’s picture

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.

jcfiala’s picture

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.

jcfiala’s picture

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.

Status: Fixed » Closed (fixed)

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