Have reviewed your install and see the issue. The user id is missing from the URL. This will only be an issue when editing photos of a user other than your own. So only when moderators are moderating users. Below will quickfix the issue and have fixed for next CB Gallery release.
IN: components/com_comprofiler/plugin/user/plug_cbgallery/templates/default/photos.php
ON: Line 74
FROM:
Code:
. '<li class="galleryItemsMenuItem"><a href="' . $_CB_framework->pluginClassUrl( $plugin->element, true, array( 'action' => 'items', 'func' => 'edit', 'type' => 'photos', 'id' => (int) $row->get( 'id' ), 'tab' => (int) $tab->get( 'tabid' ) ) ) . '"><span class="fa fa-edit"></span> ' . CBTxt::T( 'Edit' ) . '</a></li>';
TO:
Code:
. '<li class="galleryItemsMenuItem"><a href="' . $_CB_framework->pluginClassUrl( $plugin->element, true, array( 'action' => 'items', 'func' => 'edit', 'type' => 'photos', 'id' => (int) $row->get( 'id' ), 'user' => (int) $user->get( 'id' ), 'tab' => (int) $tab->get( 'tabid' ) ) ) . '"><span class="fa fa-edit"></span> ' . CBTxt::T( 'Edit' ) . '</a></li>';
forge.joomlapolis.com/issues/5328