Drupal version 5.15
CCK version 5.x-1.10
Files directory permissions 755
Temp directory permissions 755
Download method public
Expect no errors and probably no database changes for this update
Running update script when updating from Imagefield 5.x-2.2 to 5.x-2.3 reports following:
Fatal error: Call to undefined function _content_admin_display_contexts() in /var/www/html/sites/all/modules/imagefield/imagefield.install on line 81
Update status reports correct module installed. I did a complete re-download, delete module folder, upload and update with exact same result.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | imagefield.install.patch | 578 bytes | claudiu.cristea |
Comments
Comment #1
iancawthorne commentedI followed the same steps above and also get the same problem.
Comment #2
zooney commentedI also get the same problem.
Comment #3
bobdalob commentedMe too.
Comment #4
buzzdecafe commentedI also have the same problem. Here's some background:
CCK 5.x-1.10 contains this function in content_admin.inc:
So changing line 81 in imagefield.install:
foreach (_content_admin_display_contexts() as $context) {to:
foreach (array('teaser' => t('Teaser'), 'full' => t('Full')) as $context) {and running the update works flawlessly. So the question is, why isn't the CCK function getting called?
Comment #5
claudiu.cristeaHere's the patch
Comment #6
threexk commentedPatch works for me.
Comment #7
threexk commentedComment #8
jackalope commentedHad the same problem, patch worked for me. Thanks!
Comment #9
drewish commentedthanks, committed to HEAD and DRUPAL-5--2
Comment #10
drewish commentedthis was a duplicate of #371784: update.php script for imagefield returns undefined function error
Comment #11
wylbur commentedUploaded version 5x-2.3 and still get the same error. Has this been committed to the production version of the module, or do we have to install the patch? Do I have to uninstall and reinstall? Will there be a new version of the module?
Comment #12
jantoine commentedwylbur,
The patch has been committed to Head, meaning it is in the repository and will be available in the next dev release that the system auto-generates, but there has not been a release since the patch was applied. You don't need to uninstall and re-install. All you need to do is apply the patch and run the update.php script and you should be good to go.
Cheers,
Jon Antoine
dev.antoinesolutions.com
Open Source Development Tutorials & Documentation
Comment #13
jantoine commentedSetting to fixed.
Cheers,
Jon Antoine
dev.antoinesolutions.com
Open Source Development Tutorials & Documentation