jhass/nextcloud-keeweb

Could not resolve PageController Class

stzrenelatin opened this issue · 1 comments

Hi everyone,
first of all: I'm using KeeWeb 0.6.13 under Nextcloud 26.0.2 which is the latest stable release of Nextcloud.

We are running on Ubuntu 22.04.2 LTS (jammy) and php --version give the following output:

PHP 8.1.2-1ubuntu2.11 (cli) (built: Feb 22 2023 22:56:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.11, Copyright (c), by Zend Technologies

My problem is:
when jumping via Dashboard Icon to KeeWeb you are redirected to an Error Page with Request Id which you can lookup in the nextcloud.log.

The Error in the nextcloud.log says:

{"reqId":"9XBVpH9tjh0lip7zgzZ7","level":3,"time":"2023-06-21T09:31:35+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"xxxxxx","app":"index","method":"GET","url":"/index.php/apps/keeweb/","message":"Could not resolve OCA\Keeweb\Controller\PageController! Class "OCA\Keeweb\Controller\PageController" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"26.0.2.1","exception":{"Exception":"OC\AppFramework\Utility\QueryNotFoundException","Message":"Could not resolve OCA\Keeweb\Controller\PageController! Class "OCA\Keeweb\Controller\PageController" does not exist","Code":0,"Trace":[{"file":"/opt/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/opt/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/opt/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->"},{"file":"/opt/www/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->"},{"file":"/opt/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/opt/www/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/opt/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/opt/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131,"CustomMessage":"--"}}

Downgrading KeeWeb manually to version 0.6.12 solved the problem, but now I can only hope that no other admin will upgrade KeeWeb again :)

Kind regards,
Nenad.

Please restart PHP-FPM, then the issue should be fixed. The problem is caching in Nextcloud and/or OPCache which prevents new code to be loaded properly.

Also see #224