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.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | imagefield.install.patch | 716 bytes | hanoii |
| imagefield.install.content-enable.patch | 519 bytes | jmcclelland |
Comments
Comment #1
webernet commentedWorks for me.
Comment #2
DanielJohnston commentedSubscribing. 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
Comment #3
DanielJohnston commentedAnd my own finding: works for me too, so far
Comment #4
mariuss commentedHad 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?
Comment #5
Sivert Almvik commentedWorks for me too.
Comment #6
nath commentedWith the patch I don't get the error anymore.
Comment #7
rpsuworks for me too.
Comment #8
hanoiiI 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.=
Comment #9
drewish commentedhumm, this and #372041: Fatal error running update script were duplicates... ended up committing that so please test -dev.