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

Fehler cookbook OCP\AppFramework\QueryException: Could not resolve OCP\IL10N! Class can not be instantiated #1954

Closed
sreutter opened this issue Dec 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@sreutter
Copy link

sreutter commented Dec 10, 2023

Description
cookbook does not work in the newest version on nc 27.1.4. (cookbook 0.10.4)

Reproduction
Steps to reproduce the behavior:

  1. Try to click on the cookbook symbol
  2. there is directly an internal server error

Expected behavior
normal operation of the cookbook app

Actual behavior
you get an internal server error

Screenshots
grafik

Browser
Firefox 120

Versions
Nextcloud server version: 27.1.4
Cookbook version: 0.10.4
Database system: MariaDB

@sreutter sreutter added the bug Something isn't working label Dec 10, 2023
@christianlupus
Copy link
Collaborator

Hey. Where did you find the error message? Was there more?

I am asking because the IL10N interface is quite old and stable. I just checked the spelling. Nothing seems to be wrong and the CI test have passed so far as well. I can use the app both on the latest matter as well as the 27 Nextcloud server.

So, either there is something more to your setup that makes a difference, or there is some basic problem with your setup anyways. Other apps are working as expected?

@sreutter
Copy link
Author

sreutter commented Dec 10, 2023

Hello,
there were no problems in former nextcloud versions, <27.1.4, as far as i remember.
other apps all work.
there is one more failure message:
OCP\AppFramework\QueryException: Could not resolve OCA\Cookbook\Helper\Filter\JSONFilter! Class "OCA\Cookbook\Helper\Filter\JSONFilter" does not exist
both found in "Protokollierung" in the Admin section.
could it be something php related? php was installed via the official php repo, not the debian repo.

P.S.: Just tested on a different nextcloud installation (sharehoster), there the app works correctly. so there must be indeed a problem with my setup. Any Idea how i can find the problem?

P.P.S.:
on the working nextcloud, there is this message in the log: (php 8.2.2)
Table "oc_cookbook_categories" has no primary key and therefor will not behave sane in clustered setups. This will throw an exception and not be installable in a future version of Nextcloud.

on the not working nextcloud, there are 2 nextcloud instances parallel in 2 different vhosts installed. (php 8.2.13)

@sreutter
Copy link
Author

Also,
habe rausgefunden, was das Problem war.
Ich hatte zuletzt redis installiert, um die Einrichtungswarnung wegzukriegen.
ich habe jetzt redis für die eine Instanz wieder deaktiviert - und siehe da, jetzt geht cookbook wieder (auf beiden Instanzen).
ein weiterer Fehler war tatsächlich auch in der Notes App. Die hat zwar in Instanz 1 noch funktioniert, nicht aber in Instanz 2.
Ich lasse das gerade mal so auf deutsch stehen, hoffe das ist ok. Übersetzung vom Computer...

So,
found out what the problem was.
I had last installed redis to get rid of the setup warning.
I have now deactivated redis again for one instance - and lo and behold, cookbook is working again (on both instances).
Another error was actually also in the Notes app. It still worked in instance 1, but not in instance 2.
I'll just leave it in German, hope that's ok. Translation from the computer...

@christianlupus
Copy link
Collaborator

Ok, thanks for reporting back!

Kein Problem, ich spreche deutsch als Muttersprache 😄.

It is interesting that Redis was able to break the app as we are not doing anything with it actively. Although, we got plenty issues recently about redis, so it would be nice to know the reason for it.

All I could think was to restart both redis and the web server in orderr to clean out any caches. If you find more information, I would be grateful if you shared.

I will close this issue as it seems unrelated with the actual cookbook app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants