Skip to content

Bug Report: "Failed to rename 15 to [name]" when renaming persons #1636

@NieK0

Description

@NieK0

Describe the bug

Description

When trying to rename a recognized person in Memories via the ⋯ menu, the action fails with the error message:

Failed to rename 15 to Ida

The number 15 appears to be the internal face cluster ID, which is being used as the person identifier instead of being resolved correctly. The Nextcloud log also shows:

Error: Class "OC\Preview\Storage\Root" not found
at .../memories/lib/Controller/ImageController.php line 120

This appears to be a compatibility issue between Memories 7.8.2 and Nextcloud 33.

Expected behavior

The person should be renamed successfully and linked to a Nextcloud contact.

Actual behavior

The UI shows the error: Failed to rename 15 to Ida

The number 15 is the internal cluster ID. It seems the person identifier is not resolved correctly before the rename API call is made.

Nextcloud log:

Error: Class "OC\Preview\Storage\Root" not found
at .../memories/lib/Controller/ImageController.php line 120

Additional context

Face recognition itself works fine — faces are detected and grouped correctly. Only the renaming step fails.

This issue affects all recognized persons, not just one specific cluster. Every "Unnamed person" shows the same error when trying to rename, with different cluster IDs (e.g. "Failed to rename 15 to Ida", "Failed to rename 8 to ...", etc.). This suggests it is a systematic issue and not a problem with a single corrupted cluster.

Steps To Reproduce

  1. Open Memories in the browser
  2. Navigate to People / Persons
  3. Open a recognized person ("Unnamed person")
  4. Click the ⋯ menuRename
  5. Enter a name (e.g. "Ida") and confirm
  6. → Error: "Failed to rename 15 to Ida"

Platform

### Environment
| | |
|---|---|
| **Nextcloud version** | 33.0.0 |
| **Memories version** | 7.8.2 |
| **Recognize version** | 11.0.1 |
| **Browser** | Web (Chrome/Firefox) |
| **Install method** | Docker container |

Screenshots

Additional context

Face recognition itself works fine — faces are detected and grouped correctly. Only the renaming step fails.

This issue affects all recognized persons, not just one specific cluster. Every "Unnamed person" shows the same error when trying to rename, with different cluster IDs (e.g. "Failed to rename 15 to Ida", "Failed to rename 8 to ...", etc.). This suggests it is a systematic issue and not a problem with a single corrupted cluster.

Additional context

Error: Class "OC\Preview\Storage\Root" not found
at .../memories/lib/Controller/ImageController.php line 120

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions