Problem with Album set to view by Admin group only Problem with Album set to view by Admin group only
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem with Album set to view by Admin group only

Started by stampede, February 09, 2004, 07:32:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stampede

The quality of this program just amazes me.  Great Job everyone!

I have CPG set up with PHPBB and I did come across one issue in testing on my server that I couldn't explain and can't see that I am doing anything wrong.  

I set up an album and set the permissions so that only members of the admin group can see it.  Before I upload a photo the empty album still seems to shows up to guests (no big deal).  

After I do a batch upload of images into the album I as the administrator am no longer able to edit the album or do anything to it except delete it.  This doesn't occur if I set permissions for only me to view the album, only if I set permissions for only the admin group to see the album.

I Included a couple of screen captures below to illustrate.  

It this something that is only occurring on my server or his this happened to others?



(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.originalshowdown.com%2Fquestion%2F1.jpg&hash=16f9c092e2b68c81a195783cf13db1b9d8aadb87)
Album before batch upload (looks good right)



(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.originalshowdown.com%2Fquestion%2F2.jpg&hash=974f0869a0a7ec2177d40a80b0ec3e7a4efb8072)
Album after I batch upload photos.  Notice the album title has gone away along with the delete, properties and edit pics buttons


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.originalshowdown.com%2Fquestion%2F3.jpg&hash=9f88fee2e8c188593dc1ad49e0bf1e84404c36ea)
When I click on the album I get the message, "The selected album/picture does not exist".  All I can do is delete the album, game over.

stampede

I also notice this same problem when a user uploads a photo to a user album.  Once I approve the image (as the administrator of the album) the title and all editing functions go away and the only think left to do is delete the album.


I did a debug and got this:
Notice: Undefined index: group_id in /fullpathtoCPG/index.php on line 360

Notice: Undefined index: album_title in /fullpathtoCPG/themes/hardwired/theme.php on line 1134

Notice: Undefined index: aid in /fullpathtoCPG/themes/hardwired/theme.php on line 1136

Notice: Undefined index: album_adm_menu in /fullpathtoCPG/themes/hardwired/theme.php on line 1138

Notice: Undefined index: album_desc in /fullpathtoCPG/themes/hardwired/theme.php on line 1139

Notice: Undefined index: album_info in /fullpathtoCPG/themes/hardwired/theme.php on line 1140