Page 1 of 2
Unable to get the frontend working
Posted: 02 Aug 2011, 16:31
by jrozema
Hello everyone,
Hopefully someone can help me with this problem:
The user frontend doen't give me the option to upload pictures, it keep's saying "there is no category where to upload the images...
http://japs.homeip.net/problem.JPG
What i did is the following:
- Clean joomla 1.7 installation
- Installed Phoca Gallery 3.0.1
- Enabled the Frontend in the global options and added a menu link
- Logged in as a registered user and created an album
http://japs.homeip.net/maincat.JPG
- When i try to upload an image i get the error mentions above. Also when i go to the category view i''ve got no option to upload pictures.
- The category permissions are as follow:
http://japs.homeip.net/editcat.JPG So the user i'm testing with has al the permissions it should have i believe.
When i use the backend to upload the pictures everything seems to work fine. I've also tried logging on as administrator to the frontend but this doen't seem to make any difference.
Thanks in advance.
Regards, Jaap
Re: Unable to get the frontend working
Posted: 03 Aug 2011, 15:15
by Jan
Hmmm, not sure, what can be wrong on your server, testing it now and everything is working there, after setting a main category, I can see the category in select box and can upload images there
Try to check the admin, if the ownership was added to this category?
Re: Unable to get the frontend working
Posted: 03 Aug 2011, 16:37
by jrozema
Hello Jan,
Thanks for your response. I've checked the category on the administrator side and the owner is the user who created the category in the first place so this seems to be fine. Also, the upload and delete rights are automatically added.
I don't get any php errors when and also the Apache logfile seems clean. I did a check on the filesystem permissions and this looks fine as-well.
update: One PHP error that's coming up when adding a main category:
Notice: Undefined property: PhocaGalleryControllerUser::$tmpl in /var/www/html/huysmangroep/components/com_phocagallery/controllers/user.php on line 164
This error is only shown for a fraction of a second before refreshing the page.
Re: Unable to get the frontend working
Posted: 04 Aug 2011, 00:31
by Jan
Hi, thank you for the info, the notice will be fixed, but it is not the problem
I will do more tests, but for now really no idea what can be wrong there
Jan
Re: Unable to get the frontend working
Posted: 04 Aug 2011, 11:54
by jrozema
Hello Jan,
Thanks for looking in to this. I found out that this problem is caused by my custom groups and userlevels. When I put back the default userlevels everything seems to work but when i restore my custom users, groups and viewlevels the frontend get's broken. I'm now trying to find out what exactly breaks the frontend.
Regards, Jaap
edit: Does phocagallery uses some kind of hard-coded viewlevels/usergroups? This might be causing the problem
Re: Unable to get the frontend working
Posted: 04 Aug 2011, 17:45
by Jan
Hi, no, there is nothing hardcoded,the user levels are used from Joomla! itself with its methods
Added an user to specific new ACL (group) and still get no problem there ???
Re: Unable to get the frontend working
Posted: 05 Aug 2011, 14:01
by jrozema
Hm, that's to bad.. I did rename the default usergroups but the groupid's are still the same. I'm filling the usertable from an external database but the groupid's are still the same. In the database the user looks as follow:
username Henkie (ID 66), in the user_group_map the there's a record user_id 66, group_id 5 (group_id 5 refers to a group named stafleden in the usergroups table) There's also a acl/viewlevel named stafleden what has as rule [5].
Does this make any sense?
In phocagallery i have created a category where this user (66) has all rights (access, upload and delete) and of course he's the owner of the category aswell. When i use this account to log on to the frontend i see that the main category is displayed and authorized. On the sub-category tab i am able to make new sub categories. When i take a look at the subcategories in the administrator backend they look fine as well. They have the same rights and stuff like the main category. But still, the image tab on the frontend says "There is no category where to upload images"
I am still new to the joomla rights system but i can't find anything wrong with this. I'm so hoping you can help me with this because phocagallery seems to be the only decent gallery with a frontend that is supported by joomla 1.7
Anyway, thanks for thinking along.
Jaap
Re: Unable to get the frontend working
Posted: 05 Aug 2011, 17:15
by Jan
Hi, normally, the user is able to create the main category in frontend, if such category will be created in frontend, automatically the user can create subcategories and upload images there (the user upload folder is automatically created and user get automatically ownership of the main category, so for now, really no idea what can be wrong there

)
Jan
Re: Unable to get the frontend working
Posted: 05 Aug 2011, 17:36
by jrozema
Hello,
I have tried that as well. Created a new user, then logged on to the frontend with this user and i was able to create the main category as well as the subcategories. Still, when i click the image tab, same problem. Can you tell me where i can find the piece of code that does the security check for the images? Maby i can figure out where this goes wrong..
Re: Unable to get the frontend working
Posted: 07 Aug 2011, 11:29
by Jan
Hi, in frontend there is a model and controller for user part, e.g.
components/com_phocagallery/models/user.php
Jan