Gallery 2: An internal error has occurred: Access to undefined global: caption

Status
Not open for further replies.

pknoot

CarpeBella Photography
Joined
Sep 26, 2008
Messages
120
Location
Tucson, AZ
Lightroom Experience
Advanced
Lightroom Version
6.x
I am new to Gallery and would greatly appreciate some help with this error. I set up Gallery on my website and it appears to be running fine. I can successfully upload images from the website.

However, when trying to upload via Lightroom 2.1, using the Gallery plugin (from Ubermind) I get the following error:

An internal error has occurred: Access to undefined global: caption

I have no idea where to go to troubleshoot this error. Can anyone suggest how to resolve this problem? Thanks!

Peter

Last Run Details:

Gallery version = 2.2.6 core 1.2.'.8
PHP version = 4.4.9 cgi
Webserver = Apache
Database = mysqlt 5.'.67-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = partial/9'', partial/9''
Operating system = Linux infong 2.4 #1 SMP Tue Dec 18 22:34:1' UTC 2''7 i686 GNU/Linux
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Opera/9.62 (Windows NT 5.1; U; en) Presto/2.1.1
Rows in GalleryAccessMap table = 25
Rows in GalleryAccessSubscriberMap table = 7
Rows in GalleryUser table = 2
Rows in GalleryItem table = 5
Rows in GalleryAlbumItem table = 3
Rows in GalleryCacheMap table = 4
 
I found an error in GalleryUploadTask.lua that caused this error message.

Look for this in the file and change it from this:

response = GalleryAPI.addItemRequest{
filePath = pathOrMessage,
title = title,
caption = caption,
tags = tags,

to this:

response = GalleryAPI.addItemRequest{
filePath = pathOrMessage,
title = title,
caption = description,
tags = tags,

Once I made that change I was successfully able to upload to my gallery2 without any issue.
 
Thanks, Steve! That does the trick!

I also contacted Ubermind and they recommended that I download the open source version of the plugin at the following url:

http://sourceforge.net/projects/lr-to-gallery/

That one worked fine as well!

Cheers,

Peter
 
Great first post Steve - welcome!
 
Status
Not open for further replies.
Back
Top