Sorry to bug everyone, but this is the first time I've gotten an error after running update.php. I upgraded several modules, CK, FileField, ImageAPI & Imagefield as well as updating my theme. I then ran update php and it returned the following errors:

An error occurred. http://www.mysite.com/drupal/update.php?id=15&op=do
Fatal error: Call to undefined function content_fields() in /usr/local/4admin/apache/vhosts/mysite.com/httpdocs/drupal/sites/default/modules/filefield/filefield.install on line 131

Then, when I continued to the "review logs" section it said the following:

"The update process was aborted prematurely while running update #6100 in filefield.module. All errors have been logged. You may need to check the watchdog database table manually."

Checking my logs I have a whole slew of errors, including:

Duplicate entry 'themes/pushbutton/pushbutton.info' for key 1 query: INSERT INTO system (name, owner, info, type, filename, status, throttle, bootstrap) VALUES ('pushbutton', 'themes/engines/phptemplate/phptemplate.engine', 'a:13:{s:4:\"name\";s:10:\"Pushbutton\";s:11:\"description\";s:52:\"Tabled, multi-column theme in blue and orange tones.\";s:7:\"version\";s:4:\"6.10\";s:4:\"core\";s:3:\"6.x\";s:6:\"engine\";s:11:\"phptemplate\";s:7:\"project\";s:6:\"drupal\";s:9:\"datestamp\";s:10:\"1235596218\";s:7:\"regions\";a:5:{s:4:\"left\";s:12:\"Left sidebar\";s:5:\"right\";s:13:\"Right sidebar\";s:7:\"content\";s:7:\"Content\";s:6:\"header\";s:6:\"Header\";s:6:\"footer\";s:6:\"Footer\";}s:8:\"features\";a:10:{i:0;s:20:\"comment_user_picture\";i:1;s:7:\"favicon\";i:2;s:7:\"mission\";i:3;s:4:\"logo\";i:4;s:4:\"name\";i:5;s:17:\"node_user_picture\";i:6;s:6:\"search\";i:7;s:6:\"slogan\";i:8;s:13:\"primary_links\";i:9;s:15:\"secondary_links\";}s:11:\"stylesheets\";a:1:{s:3:\"all\";a:1:{s:9:\"style.css\";s:27:\"themes/pushbutton/style.css\";}}s:7:\"scripts\";a:1:{s:9:\"script.js\";s:27:\"themes/pushbutton/script.js\";}s:10:\"screenshot\";s:32:\"themes/pushbutton/screenshot.png\";s:3:\"php\";s:5:\"4.3.5\";}', 'theme', 'themes/pushbutton/pushbutton.info', 0, 0, 0) in /usr/local/4admin/apache/vhosts/mysite.com/httpdocs/drupal/modules/system/system.module on line 821

Turns out I have one of these errors (or very similar to this one) for each theme I have installed.

What did I do wrong? Is there a way I can fix it? These might very well be unrelated issues, but I'm not sure so I figured I'd include them both.

Thanks.

Dave

Comments

Jamesroughton’s picture

I have seen these types of errors. What I have done in the past is to uninstall the module, if you do not know, as I did not, on the module page top right beside the list tab and then re-install. Uninstalling the module deletes the table from MYSQL. Reinstall the module and most of the time it works.

I am new to Drupal, but has learn a lot things like this. I hope that this helps.

dkane’s picture

Thanks for your help. I couldn't uninstall/reinstall the module because my client had already uploaded a ton of data via the filefield module and it would have been a major inconvenience for him. What I ended up doing was restoring my database to the backup I made before upgrading the modules, then updating them one by one instead of all at once.

While I was doing this I think I figured out the issue. The newest versions of CCK & FileField both modify the FileField table in the database, but it seems that the Filefield update builds on the CCK update of this table. What I think had happened was that when I ran update on all the modules at once the filefield attempted to modify parts of the table that hadn't yet been updated by the CCK module update, thus producing an error.

Not sure for certain, but it seems like a logical explanation judging by the table update numbers shown when I display the table updates and by the fact that when I went one by one, in a logical order (CCK, FileField, ImageField etc..) I had no issues.