I have serious problems with updating module, I need to update 17 updates and i cant

for cck i get this error so maybe this is the cause of all troubles

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

Comments

karens’s picture

Status: Active » Fixed

It would be a good idea to read the CCK project page which explains in great detail that you have to be current in D5 before you try to go to D6. The missing updates are the D5 updates that you skipped, you'll have to go back to your backup, get the latest version of D5 and run all D5 updates, and then update to D6.

fender-dupe’s picture

i dont have d5 backup
is there a way to fix this isseu, it looks so amazingly unbeleivable that ai need to got to d5
i dint have old bacups anymore

what an i do now

fender-dupe’s picture

what can be done, i dont have backups from 5 version, i updated drupal from 5 to 6 like6 months ago

can i just delete cck tables and update again?

or can i thow away my site??

karens’s picture

I don't mean to rub salt in the wound, but you did a major upgrade without making backups or reading the instructions, and then waited 6 months to upgrade a major module. That's just a recipe for trouble.

Unfortunately neither of the CCK maintainers has time to help you re-create your broken site. But here, basically, is what you will have to do, which may or may not work. We can't do this for you and we can't provide any help if you get stuck or it doesn't work. And be sure to make a backup before you try this.

1) Make a list of every CCK module you had in the D5 version so you know which ones need to be updated manually.

2) Pull up the system table using something like phpMyAdmin and look for the entry for each of those modules in that table. Note what version each is currently.

3) For each of your CCK modules, get a copy of the latest D5 code and look at the module .install file. See if there are D5 series updates later than the current version in your system. If there are none, that module is going to be fine.

4) For each module that is missing updates, you will have to look at the updates that were missed, figure out what changes they made, and make those changes manually, then manually set the version number in the system table to the number of the last one that you did. This is hard and things may break. This is not the right way to do this, but it's the only option you have without backups.

fender-dupe’s picture

i just tried cck once, just did a test and then deleted it in d5

isnt there a way to just delete all the tables from cck and install it fresh?

I mean i did not use cck at all for my site, just installed it once and played with it for few minutes

this is hard for me to do

markus_petrux’s picture

Make backups before anything else. Then try uninstalling CCK and all related modules completely. Not just disabling them, but also going to the "Uninstall" tab, selecting CCK and all related modules and submitting.

Then, browse the drupal system table. Filter by modules where status = 0, then delete the rows of those related to CCK that you have uninstalled.

Now, try to start fresh with CCK. Install CCK, then a few CCK fields and see what happens.

fender-dupe’s picture

how can i browse the drupal table system??

Do i hav to go into mysql or is it done from admin?

also the problem is that under modules i can not disable content, i can not click on box

markus_petrux’s picture

I mean from phpMyAdmin or any other tool you use to access the database directly. The system table contains information about modules and themes Drupal found on your installation, even if they are not formerly installed.

But, please make backups and make sure you're able to rebuild your site with your backups BEFORE anything else. If you don't have a recovery plan that works, and then you need it, you can kill your site. So, please make backups of your site, then restore them somewhere else, and test your site to ensure your backup strategy is complete. If you don't know how to do this, then I think you should find assistance somewhere else, not in the CCK issues queue, as this would be a basic issue you need to resolve first.

>> i can not disable content, i can not click on box

That's probably because CCK is a requirement of other module you have installed. You should first uninstall those, and then CCK.

fender-dupe’s picture

ok i unistalled content and all the module tht depend on it

I have backup module installed so it should work

but there are errors i got

* user warning: Unknown table 'content_node_field' query: DROP TABLE content_node_field in /home3/altermed/public_html/optimizacijadesign/includes/database.mysql-common.inc on line 261.
* user warning: Unknown table 'content_node_field_instance' query: DROP TABLE content_node_field_instance in /home3/altermed/public_html/optimizacijadesign/includes/database.mysql-common.inc on line 261.
* user warning: Unknown table 'cache_content' query: DROP TABLE cache_content in /home3/altermed/public_html/optimizacijadesign/includes/database.mysql-common.inc on line 261.
* user warning: Unknown column 'widget_module' in 'where clause' query: SELECT field_name, type_name FROM node_field_instance WHERE widget_module = 'filefield' in /home3/altermed/public_html/optimizacijadesign/modules/cck/includes/content.crud.inc on line 547.
* user warning: Unknown column 'widget_module' in 'where clause' query: SELECT field_name, type_name FROM node_field_instance WHERE widget_module = 'optionwidgets' in /home3/altermed/public_html/optimizacijadesign/modules/cck/includes/content.crud.inc on line 547.
* user warning: Unknown column 'widget_module' in 'where clause' query: SELECT field_name, type_name FROM node_field_instance WHERE widget_module = 'text' in /home3/altermed/public_html/optimizacijadesign/modules/cck/includes/content.crud.inc on line 547.

what do these mean

fender-dupe’s picture

i think i fixed it

like you said i unistalled everything and then enabkle modules again

now i dont get any errors

hopefully everything works

karens’s picture

Oh, that is much easier. If you have no cck data at all and never used it you can uninstall cck.

Disable all cck modules, then uninstall them to clean things up (there is an 'uninstall' tab on the module list page). You have to disable them first or they won't show up as modules that can be uninstalled. You will need to have all the cck modules available in your modules folder so the code is there to do the uninstall. Be sure to do this for any cck modules that you ever had installed.

After you have done that, you should be able to do a fresh install with no problems.

karens’s picture

Oops, I responded to one of the earlier messages in my email before realizing you already had the answer :)

Status: Fixed » Closed (fixed)

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