Fatal error Call to undefined function image_gallery_page
Hochmania - September 24, 2009 - 13:18
| Project: | Image |
| Version: | 6.x-1.0-beta3 |
| Component: | image_gallery |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
I upgraded my Image module to 6.x-1.0-beta3 and now when I try to access an image gallery, I get this error message:
Fatal error: Call to undefined function image_gallery_page() in /home/studiosc/public_html/includes/common.inc(1685) : eval()'d code on line 3
I installed Devel and ran the "Empty Cache" and "Rebuild Menus" options, but that did not help.
How can I fix this?

#1
Can you try the debug steps from http://drupal.org/node/571504#comment-2021772 and the following comments please?
#2
I have the same error?
I used the image_gallery_page() function manualley on a node, e.g.:
<?phpprint '<p>My text.</p>';
print image_gallery_page(NULL, 2)
?>
Are there any solutions?
Greets the-sandman
#3
First: If you're calling image_gallery_page() yourselves, then you're doing your own thing and this module is not responsible.
Second: a simple search of the module folder for the function would tell you it's moved to an inc file. Include the inc and you're home and dry.
Hochmania: are you doing something wacky with galleries in the same vein?
#4
First: If you're calling image_gallery_page() yourselves, then you're doing your own thing and this module is not responsible.
Second: a simple search of the module folder for the function would tell you it's moved to an inc file. Include the inc and you're home and dry.
Hochmania: are you doing something wacky with galleries in the same vein?
#5
Thank you for your answer. I missed that the function was moved to inc-file. Following is now working fpr my issue, because I think many other users have the same problem:
<?phpprint '<p>My text.</p>';
require_once(drupal_get_path('module', 'image_gallery') .'/image_gallery.pages.inc');
print image_gallery_page(NULL, 2)
?>
Greetz the-sandman
#6
Thank you the-sandman. Adding "require_once(drupal_get_path('module', 'image_gallery') .'/image_gallery.pages.inc');" did the trick!
#7
This never was and will never be a bug in this module itself. Please check your own code before reporting bugs, thanks!