this is an error message I get when trying to create a node. I just updated my Drupal 6 site with the following modules:

CCK : 6.x-2.0-rc4
Imagefield : head+patch for Drupal6

I guess it's because this function is still not implemented. Is there a patch for it already?

Thanks

CommentFileSizeAuthor
#7 imagefield-update.jpg7.3 KBheather
#4 fix.patch412 bytessebos69

Comments

dopry’s picture

Status: Active » Closed (fixed)

Try updating HEAD.. should be fixed.

dopry’s picture

Try updating HEAD.. should be fixed.

dopry’s picture

Try updating HEAD.. should be fixed.

sebos69’s picture

StatusFileSize
new412 bytes

Hi,

thanks, I just checked out the current HEAD version.

unfortunately, when running update.php, I get this error message :

http://*****mysite****/update.php?id=66&op=do <br /> <b>Fatal error</b>: Call to undefined function content_alter_db_field() in <b>/etc/drupal/default/modules/imagefield/imagefield.install</b> on line <b>78</b><br />

Any clue why this appears?

after this error, when browsing the site, this message appears:

    * warning: include_once(sites/default/modules/cck/content_admin.inc) [function.include-once]: failed to open stream: No such file or directory in /etc/drupal/default/modules/imagefield/imagefield.install on line 63.
    * warning: include_once() [function.include]: Failed opening 'sites/default/modules/cck/content_admin.inc' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /etc/drupal/default/modules/imagefield/imagefield.install on line 63.

I fixed it by applying the patch attached to this post (it was just a typo).

sebos69’s picture

Status: Closed (fixed) » Active

switching back to active bug...

drewish’s picture

Status: Active » Fixed

that update is correct for the era of cck it was written against... i'm guessing you'd tried using a previous HEAD version of imagefield on D6 before dopry combined the multiple update functions into a single one... the reason i'd have told him not to do this if he asked ;) is that if an update disappears and you've run it then the update.php screen resets you back to the first update. so make sure that you're selecting an update 6000 or greater for filefield and imagefield.

heather’s picture

StatusFileSize
new7.3 KB

ah i ran into this error too... and yeah *sheepish*... i was using a previous HEAD version of imagefield on D6...

so in order to avoid this error, you need to select a specific update. i made a screenshot for fun and clarity.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

oliver huynh’s picture

Just delete image field in the content type, then you won't see the error