I have Galelry & Drupal integrated perfect and it's working excellent! Only problem is, when I go to click on the settings for Gallery in Drupal, I get this:

Fatal error: Call to undefined function: form_textfield() in /homepages/3/d141546378/htdocs/spartyon/modules/gallery/gallery.module on line 36

I guess it's not realy that big of an issue because everything else is working perfect. It would be nice to find out what is causing it though.

Comments

emound’s picture

Category: support » bug
Priority: Normal » Critical

I have what I think is a related/simlar problem. I'll go into more detail. I just did a fresh install of drupal and Gallery (version 2). I configured them and both are working as expected. I then downloaded the drupal module. The INSTALL.txt file reads:
1. Install Gallery 2 and Drupal...
2. Copy gallery.module to your drupal modules/ directory.
3. Enable the gallery module in administer -> modules in your drupal
installation.
4. Go to administer -> settings -> gallery and enter the path to your
gallery2 installation.

Everything was smooth until step 4. I clicked on the 'gallery' link under administer -> settings, and I get a blank page. I've tried a lot of things to solve this. I chown'ed the gallery.module file to the apache user/group, I logged out and back in of both drupal and the gallery, I restarted my browser....nothing. I checked apache's access and error logs. I see this in the error log:
[client 192.168.1.100] PHP Fatal error: Call to a member function on a non-object in /var/www/html/modules/gallery.module on line 321, referer: http://hmm.homeip.net:8000/?q=node&destination=node
[Mon Feb 13 21:10:35 2006] [error] [client 192.168.1.100] File does not exist: /var/www/html/system, referer: http://hmm.homeip.net:8000/?q=admin/settings
[client 192.168.1.100] PHP Fatal error: Call to undefined function: form_textfield() in /var/www/html/modules/gallery.module on line 36, referer: http://hmm.homeip.net:8000/?q=admin/settings

The last line is the relevant one, the first three happen when logging in.

I'm new to Drupal + Gallery, but I'm an experienced Linux sysadmin. Any help would be appreciated.

Server:
Drupal 4.6 (I think, I'm not sure where to look to check)
Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.51 (Fedora)
Database = mysql 3.23.58
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd, Ffmpeg
Operating system = Linux Fedora Core 1
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

kiz_0987’s picture

Call to undefined function: form_textfield() suggests to me that you are trying to use the 4.6 version of the module in Drupal 4.7. You can try the cvs version of gallery.module as that is meant to be 4.7 compatible.

emound’s picture

I did not see that the gallery module required 4.6 and not 4.7. However, it seems that that is the root of the error I am seeing. Instead, I removed my drupal installation and kept the module. I now have a new error, seemingly not related to this one. I think that this bug should be closed. My guess is that this is the same issue that swiders2 had. However, the gallery module install file could be a little more verbose, explaining the version required and what to do with the files besides the galler.module file. I still can't tell.

Thanks to gpd for helping on IRC

kiz_0987’s picture

Status: Active » Closed (fixed)