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
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

joachim - September 24, 2009 - 23:16

Can you try the debug steps from http://drupal.org/node/571504#comment-2021772 and the following comments please?

#2

the-sandman - September 25, 2009 - 17:33

I have the same error?
I used the image_gallery_page() function manualley on a node, e.g.:

<?php
print '<p>My text.</p>';
print
image_gallery_page(NULL, 2)
?>

Are there any solutions?

Greets the-sandman

#3

joachim - September 25, 2009 - 19:11
Status:active» postponed (maintainer needs more info)

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

joachim - September 25, 2009 - 19:13

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

the-sandman - September 26, 2009 - 02:03

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:

<?php
print '<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

Hochmania - September 28, 2009 - 15:15

Thank you the-sandman. Adding "require_once(drupal_get_path('module', 'image_gallery') .'/image_gallery.pages.inc');" did the trick!

#7

sun - December 13, 2009 - 07:24
Status:postponed (maintainer needs more info)» won't fix

This never was and will never be a bug in this module itself. Please check your own code before reporting bugs, thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.