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
Posts: 2
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:
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/
Posts: 6
I have the same problem. Any help??!