Image Field and FileFile inactive after upgrade from D5 to D6

cgalli - December 10, 2008 - 20:54
Project:FileField
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:cgalli
Status:closed
Issue tags:cck filefield, cck imagefield, imagecache, images, images not displaying, ubercart product, upgrading issues
Description

I have followed the exact instructions to upgrade from 5.12 to 6.6. All modules turned off, the folders removed, installed cck first, then one field widget after the other. Updated the DB after each widget.

Nonetheless, for one nodetype, I get the error messages:

This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.

* Download (field_download) is an inactive File field that uses a File Upload widget.
* ev_bild (field_ev_bild) is an inactive Image field that uses a image widget.
(end of error message)

I have added another image field to this nodetype, works fine.

I cannot even remove these fields, as they are not accessible in any means. In the database, they are registered.

What can I do next?

#1

yched - December 10, 2008 - 21:05
Status:active» fixed

i know there were hiccups in the upgrade paths for fielfield and imagefield modules. I don't exactly know what's the current status on this. Check those module's issue queues, this might have been fixed in -dev releases.

#2

System Message - December 24, 2008 - 21:12
Status:fixed» closed

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

#3

steve22 - January 7, 2009 - 18:01
Project:Content Construction Kit (CCK)» FileField
Version:6.x-2.1» 6.x-3.x-dev
Component:upgrade path» Code
Category:support request» bug report
Priority:normal» critical
Status:closed» active

I am experiencing the same problem. It says 'inactive File field that uses a File Upload widget' and does not show my filefield from Drupal 5.x. I tried over and over updating but still does not work. It gives following errors:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'a:1:{s:11:\"description\";N;}' WHERE vid = 3526' at line 1 query: UPDATE content_field_downloads SET = 'a:1:{s:11:\"description\";N;}' WHERE vid = 3526 in \apache\htdocs\sites\all\modules\filefield\filefield.install on line 229.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: ALTER TABLE content_field_pub DROP in \apache\htdocs\includes\database.mysql-common.inc on line 322.
MySQL version is 5.1 and php 5.2.8.

Something must be wrong in install file. I tried to manually update all the fields in database. But still no results. I noticed Imagefield module has recently updated their install file, may be somebody with knowledge can review if filefield also needs to update install file??

I install GetID3 and FileField Meta and it worked all of sudden! Sorry for bothering ya all!

#4

drewish - January 13, 2009 - 03:56
Status:active» fixed

use the -dev release and report back if there's still an error.

#5

BenKewell - January 13, 2009 - 21:01

i have the same issue
i upgrade my drupal 5 to drupal 6 with the alpha release of filefield on 13 Jan 2009
when the first time i enable the filefield in drupal 6,
the update.php runs smoothly
but cck shows the inactive File field message

so i use the dev release on 13 Jan 2009
disable the module
and then enable it again
the module page gives an error message
"warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mcs/www/drupal6/sites/all/modules/cck/content.install on line 43."
when i enable the module
but then the file fields work again
don't know if the error message is related to the issue

#6

System Message - January 27, 2009 - 21:10
Status:fixed» closed

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

#7

seaneffel - April 1, 2009 - 21:40
Status:closed» active

This issue persists, regardless of the version of the module.

I can confirm the solution is the same. I encountered the above error message, I disabled Filefield, I enabled Filefield, it worked again like magic.

#8

quicksketch - April 1, 2009 - 23:28
Status:active» closed

This has been fixed in a new issue #409062: Fix Drupal 5 -> 6 Upgrade Path. In short FileField needed to call the content_associate_fields() function to re-enable FileField fields after the upgrade. This fix is included in the RC1 version. Please post any problems with this fix to the new issue.

#9

afaaro - July 22, 2009 - 08:24

I had the same problem but the problem was filefield was disabled and re-enabled; worked fine.

just to let others know if they have the same issue.

#10

3dloco - November 1, 2009 - 12:01

Thank you! I just had this same issue and following this thread's suggestion of disabling and re-enabling the FileField and ImageFields worked for me (both got activated).

I encountered this after updating core from D6.13 to D6.14, updating to CCK 6.x-2.5, FileField 6.x-3.2 and ImageField 6.x-3.2, and Ubercart 6.x-2.x-dev.

After disabling and re-enabling the Filefield and ImageField it worked and the images for all the content that use these fields (e.g. ubercart products) displaying the images again...

 
 

Drupal is a registered trademark of Dries Buytaert.