Not sure why, but the past two updates I have made for the nodewords module, I have lost all of my meta tags and I can't seem to restore them with a database restore. I re-entered them for my live site the first time, but I'm seeing the problem with the latest update in staging. I'm assuming this is a bug, but I could be missing something.

Comments

avpaderno’s picture

srobert72’s picture

Isn't it due to SQL patch in last DEV version ??
DELETE FROM {nodewords} WHERE type = 0
It cause me also to lost some data.

avpaderno’s picture

@srobert72: There should not be any meta tags with the field type set to zero. Those rows have been generated by an error in the code, and cannot be used. That is the reason they are being deleted.

srobert72’s picture

Sorry, data were deleted but it's aim of this patch.

But type=0 isn't used anymore I think.
I've update my metatags and it does'nt create rows with type=0.
So it's not a problem in fact.

Sorry for my mistake.

avpaderno’s picture

Then, that update has been created after version 6.x-1.x, and it cannot be the problem; it is instead fixing a problem that was present in version 6.x-1.9.
The meta tags assigned to the front page, the tracker page, and the error pages where saved with the field type set to zero.

iamba’s picture

Just wanted to add that this problem is exclusive to the new files and doesn't seem to be database related. For two reasons, either of which I think are probably conclusive.

A database restore does not restore the meta tags
If I revert the files in the module folder back to what was there previously, I get my meta data back.

I tried this with the garland theme as well, so it's not the custom theme. Any ideas? I'm a bit new to drupal and I'm an intermediate php developer at best, but I'd be happy to poke around and report back if there are any suggestions? About all I can do is run a comparison on the two folders and take some stabs in the dark. Thanks for the discussion on this.

Also, is there any further information from me that might be helpful?

iamba’s picture

Status: Active » Fixed

My apologies for this, I had this problem because I didn't run the update script to patch the database. Once I ran the database update, everything was fine. All I did before was drag over the new files. I'm still "cutting my teeth" with Drupal, hopefully I'll be helping with the misguided questions in the future instead of asking them. :) Thanks to everyone who took a look at this.

Status: Fixed » Closed (fixed)

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