Gallery & Joomla Problem

Navstar

Joined: 2006-05-23
Posts: 1
Posted: Tue, 2006-05-23 19:04

Here is what I get when I upload photos to my gallery inside Joomla:

Quote:
Fatal error: Call to a member function on a non-object in /home/mereoni/public_html/gallery/util.php on line 1159

The gallery was working just fine until one day when I tried to upload something it gave me that error report.

But here is the thing, if I were to clear my cookie cache and try uploading again, the gallery works just fine for maybe a couple of photos and then I get that same error again.

I am not much of a programmer but I am willing to work with someone who could help make things work. The problem may have something to do with session cookies or may be a function call error.

Here are my system info:

Gallery version : 1.5.3
Joomla version : 1.08

If you need further info, please just let me know!

Cheers,

Ben

 
bucabay

Joined: 2006-05-26
Posts: 2
Posted: Fri, 2006-05-26 10:43

Just following up on the post above. It seems the problem is that the object instance $gallery->album does not exist when the function $gallery->album->addPhoto() is called in gallery/util.php on line 1159.

If we need to supply more info such as php version/mysql etc. Please let us know.

Heres some more info:

The problem occurs at:

Quote:
$err = $gallery->album->addPhoto(
$file,
$ext,
$mangledFilename,
$caption,
'',
$extra_fields,
$gallery->user->uid,
NULL,
$wmName, $wmAlign, $wmAlignX, $wmAlignY, $wmSelect
);

When using var_dump($gallery) before the line of code above, I notice that:

Whenever theres an error:
$gallery->album is not defined.
$gallery->MOS_GALLERY_PARAMS has some missing values for its properties such as:
$gallery->MOS_GALLERY_PARAMS->albumName, which will be an empty string.

I'm assuming that $gallery->album is the function Album() found in classes/Album.php. However I cannot find where $gallery->album is instantiated. ie:
$gallery->album = new Album(); // something like that..

Could someone tell me where this happens?

I would imagine that somewhere $gallery->album is failing to be initiated, or is unset or something of the sort and this may be dependant on the value of $gallery->MOS_GALLERY_PARAMS->albumName ?

Gallery seems to be quite large and I cant seem to find where these are occuring.
Any help appreciated.

Regards,
---
bbay
Fiji Web Design - http://www.fijiwebdesign.com/

 
grobyak

Joined: 2006-07-07
Posts: 6
Posted: Sun, 2006-07-30 09:19

I have the same problem. Any help??!