forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: Soloo on June 23, 2012, 08:58:03 pm

Title: Guests cannot view images - group permissions change not possible
Post by: Soloo on June 23, 2012, 08:58:03 pm
Hi,

Just upgraded to the 1.5.20 release of cpg. Everything went smooth so far.

Now i tried to view an image (while not being logged on) and it says that i must login to view this page. I tried to apply the solution found here: http://forum.coppermine-gallery.net/index.php/topic,74550.0.html but no luck.

When i go to the groups manager i can only update one group of the three i see. For example, if i assign the right to view thumbnails, full size and intermediate images it removes all view rights from the other two groups. I looks completely different from the screenshot which can be found within the help files.

Screenshot: http://www.wetterfoto.ch/groupsmanager.png (http://www.wetterfoto.ch/groupsmanager.png)

What is going wrong here and how can i fix it?

Thank you
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Joe Carver on June 24, 2012, 12:38:34 pm
Please, in the future attach your images - do not hotlink them.

Something looks to be wrong with groupmgr.php output.

Have you run update.php? And versioncheck.php?

If that does not fix the problem, turn on Debug in config
(please don't post the output)
and return here to post a link to your Coppermine.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on June 26, 2012, 05:24:24 pm
Hi,

Sorry, didn't noted that i can put attachments directly here, therefore i linked it from my domain.

Yes, i ran update.php directly after i put everything to the server and also did the versioncheck.php. I had to remove some old files. If i run versioncheck.php now it says that there are no problems.

I turned on the Debugmode.

My CPG is located at http://www.wetterfoto.ch (http://www.wetterfoto.ch)

Thanks
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on June 27, 2012, 09:59:29 am
Try to change that setting at the config: http://documentation.coppermine-gallery.net/en/configuration.htm#admin_allow_unlogged_access
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on June 28, 2012, 06:31:49 pm
Hi,

This is the setting i currently have. If i try to change it, it doesn't save the new setting. It just jumps back to the old one.

Something wrong with the database?
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on June 29, 2012, 08:19:38 am
Something wrong with the database?
Probably. Does changing other config values work as expected?
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 01, 2012, 03:21:14 pm
Hi,

Yes, so far the other settings are working fine. After upgrading i changed the skin and added a custom header. Both actions worked like a charm.

Possibly something wrong caused by bridging? I disabled the bridge but i have to see all possibilites.

I noted that the permissions values are set within the database (also for the other user groups) but not displayed within the GUI.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on July 02, 2012, 10:49:41 am
You'll either have to enable Use bridge app custom groups (http://documentation.coppermine-gallery.net/en/bridging.htm#bridge_manager_specific_groups) or probably adjust the guest group ID in the bridge file (example (http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_individual_bridge_issues_phpbb3)).
Title: Re: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 08, 2012, 01:38:45 pm
You'll either have to enable Use bridge app custom groups (http://documentation.coppermine-gallery.net/en/bridging.htm#bridge_manager_specific_groups) or probably adjust the guest group ID in the bridge file (example (http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_individual_bridge_issues_phpbb3)).
If i understod this properly that's what i have to do when i enable bridging again, right? But currently i'm not in bridged mode.

Do i have to define a group which includes everyone to have public albums?
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on July 09, 2012, 08:43:55 am
I just recognized in your screenshot that all radio buttons for the registered and admin groups are empty. Please try to set correct values for all groups and test again.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 09, 2012, 07:11:12 pm
Hi,

That's what i try to explain, but maybe i used the wrong words.

In my screenshot, all permissions are set for the guest. If i begin to set the permissions for another group, all permissions of the guest group are going away (means the selectors just move to the next group). I could see within the help file how it should look, but the behavior of my CPG is different from that and doesn't allow to set the same settings.

If i could explain it better (with more screenshots) just let me know.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 09, 2012, 07:14:48 pm
Seems i can't edit, therefore i add the attachment here.

I tried to set the permissions for the Administrators group. Now the rights for the guests are disappeared.

Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on July 10, 2012, 10:24:52 am
Please check the values in the usergroups table in your database. Do they appear there as you've set them, or are they also empty / invalid?

I'd like to have a look as admin at your gallery and also access to your database (e.g. via phpMyAdmin) would be helpful. Just let me know and I'll send you a PM with my contact details.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 10, 2012, 07:28:55 pm
Yes the values are in the table and are how they should be.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 10, 2012, 07:30:44 pm
Just send me your details and i can provide you the necessary access levels.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Αndré on July 17, 2012, 10:10:17 am
I think I fixed the issue. The group_id field in your database's usergroups table was named Group_id. I changed it to lowercase and now everything seems to work as expected. Please confirm and mark your thread as solved, if the issue is fixed.
Title: Re: Guests cannot view images - group permissions change not possible
Post by: Soloo on July 17, 2012, 05:27:17 pm
Hi Andre,

Many thanks for your help, very much appreciated. Everything works fine now.

Best Regards
Daniel