Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve OCP\\ILogger! Class can not be instantiated #1404

Open
llaumgui opened this issue Feb 27, 2025 · 11 comments
Open

Could not resolve OCP\\ILogger! Class can not be instantiated #1404

llaumgui opened this issue Feb 27, 2025 · 11 comments

Comments

@llaumgui
Copy link

Describe the bug

Some previews are not visible from API (ex: apps/memories/api/image/preview/2518166?c=ad4ad4e3fa8819eee7fca3b2cbae5a31&x=338&y=338&a=1)

And have a message:

Could not resolve OCP\\ILogger! Class can not be instantiated

Steps To Reproduce

  1. Go to Memories.
  2. Browse "explorer"

Platform

- OS: Docker
- Browser: Firefox
- Memories Version: 7.5.0
- Nextcloud Version: 31.0.0
- PHP Version: 8.4

Screenshots

Image

Additional context

Could not resolve OCP\\ILogger! Class can not be instantiated
@llaumgui llaumgui added the needs triage To be triaged label Feb 27, 2025
@pulsejet
Copy link
Owner

Full stack trace? The log seems incomplete

@llaumgui
Copy link
Author

I haven't any log in the Nextcloud. Just if I directly call API, I have error 500.

@pulsejet
Copy link
Owner

Likely not related to Memories, there's no ILogger class used anywhere in the codebase.

@llaumgui
Copy link
Author

Image

I regenerate all my preview ?

@pulsejet
Copy link
Owner

No idea where it's coming from. You might want to try turning on debug mode in the config, which should put stuff in your logs.

@llaumgui
Copy link
Author

PReview are avalaible on Files view, but not in Memories view. I enable debug but no more informations.

@llaumgui
Copy link
Author

Issue only since 30 to 31 update.

@schimschewski
Copy link

exactly the same here after update to 31

@Schubi2024
Copy link

Schubi2024 commented Feb 27, 2025

I have the same problem.
Recreating the preview images with preview:generate-all has not worked. Deleting the preview folder beforehand was not successful either.

Best regards
Thomas

Image

@pulsejet
Copy link
Owner

There is some other app interfering, likely something not compatible with Nextcloud 31.
Try disabling any force-enabled apps first.

You can apply this patch to help find the source of the issue, this should put the error trace in your log
458c28d

@pulsejet
Copy link
Owner

A more meaningful error should be logged with v7.5.2
https://github.com/pulsejet/memories/releases/tag/v7.5.2

@pulsejet pulsejet removed the needs triage To be triaged label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants