Sorry for posting this because I see there are others with the same problem. Problem for me is, with all these posts I have yet to see anyone answer this question.
I'm using Mambo 4.5.2 and G2 beta3. I installed com_gallery2 and it works fine. However, if I'm logged in as admin I can view pictures. If I'm logged in as a normal user, you can see thumbnails but can't click on a picture. Same thing happens with random thumbnails etc. Below is the error I receive. Anyone have a fix for this?
Fatal error: Call to undefined function: getorderby() in /home/path/gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class on line 480
Posts: 24
Posts: 24
oh, delete that block of code and it should fix the problem... :D
Posts: 3
Delete the block of code? Which block and what would it fix?
Posts: 3
FIXED
Thanks to michiel_1981, I got my problem solved. Hopefully this will help others. Within my Mambo Administration, Components, Gallery2... I changed two things. I changed my Relative path to Gallery G2 from /gallery2 to just gallery2. I also changed embedUri from index.php?option=com_gallery2 to index.php?option=com_gallery2&Itemid=66.
Itemid=66 certainly would be unique to each site so you'll need to figure out which id this is for you. Hopefully this will help others, it worked for me. Thanks again to michiel_1981.
Posts: 32509
please add this information / fix to the mambo sticky topic. kudos.
Posts: 2
Maybe not fixed, because I'm thinking the problem I'm having is closely related. But I'm new to this so may be completely wrong.
Mambo 4.5.2.3, G2 beta 3 - nightly build 27th June.
Using Community Builder for user registration.
As an administrator or as a guest, I can view album thumbnails, go into albums, and then into the full size image fine from within Mambo. As a registered user, clicking on a thumbnail within an album gives me :
"Fatal error: Call to undefined function: getorderby() in ... /gallery2/modules/core/classes/helpers/GalleryChildEntityHelper_simple.class on line 508"
I have set the "Relative path to Gallery G2" to "gallery2",
and set the "embedUri:" to "index.php?option=com_gallery2&Itemid=51"
And all URL's seem to start with www.
If I go from the Gallery2 directory (bypassing Mambo), it works fine.
I have tried every permutation of the "Relative path..." and "embedUri:" parameters that I can think of, and no dice.
mambo site is at : http://www.lightwaveoz.org
gallery is at : http://www.lightwaveoz.org/gallery2/main.php
Oh, and the gum boots are dumb test images.... Any ideas appreciated.
Posts: 430
sketchy,
give me your gallery core version and your configuration settings for gallery2 all of them?
could you make a test accaunt for me and send those to me using PM. I can't duplicate the problem and i'm using community builder also.
grtz,
Michiel
[edit]
duplicated the problem succesfully.
deactivate album creation for users for now, i though it worked and just copied it from the last component, it doesn't and it is probably community builder messing up the my->username call.
[edit2]
more problems with album creation for users, they can create albums in every album that exist except the one they created!!
put it on todo list
Posts: 2
great, thanks for that.
Posts: 34
finally i see people having same problem as me...hope they fix this soon...mine problem is slightly different..logined as site admin i get that error too..but if you are the main gallery admin, u can view the pics...weird problem...
Posts: 34
any solution to this yet? i tried the same thing but did not get solved..
Posts: 430
rza,
you tried this with the latest of both gallery2 and the component?
regards,
Michiel
ps: the album creation for users is still a little buggy.