cck: 5.x-1.10
imagefield: 5.x-2.3

When I run update.php and attempt to install update 3 for imagefield, I get:

Fatal error: Call to undefined function _content_admin_display_contexts() in /srv/projects/papertiger.org/web/sites/default/modules/imagefield/imagefield.install on line 82

I fixed it with the attached diff. Seems as though the content_enable(); function includes the necessary file for the _content_admin_display_contexts() function to be available.

Comments

webernet’s picture

Status: Active » Reviewed & tested by the community

Works for me.

DanielJohnston’s picture

Subscribing. My own site just errored with the almost identical message: 'Fatal error: Call to undefined function _content_admin_display_contexts() in /srv/indusdelta.co.uk/public/htdocs/modules/imagefield/imagefield.install on line 81' on upgrade

DanielJohnston’s picture

And my own finding: works for me too, so far

mariuss’s picture

Had the same problem and the patch seamed to work. With the patch, after the update, I got the following message:
"The content fields table content_type_ has been created."

Is this expected?

Sivert Almvik’s picture

Works for me too.

nath’s picture

With the patch I don't get the error anymore.

rpsu’s picture

works for me too.

hanoii’s picture

StatusFileSize
new716 bytes

I propose a similar patch, although I don't think content_enable() should be called as that function performs a rebuilt that it's not really necessary on the update.

A simple file inclusion would work, attached is my proposed patch.

a.=

drewish’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

humm, this and #372041: Fatal error running update script were duplicates... ended up committing that so please test -dev.