Exception: Call to undefined method OCA\Memories\Util::callerNativeVersion() in file ‘/var/www/nextcloud/apps/memories/lib/Controller/PageController.php’ line 41
full log says
[index] Fehler: Exception: Call to undefined method OCA\Memories\Util::callerNativeVersion() in file ‘/var/www/nextcloud/apps/memories/lib/Controller/PageController.php’ line 41 at <>
- /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()- /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()- /var/www/nextcloud/lib/base.php line 1060
OC\Route\Router->match()- /var/www/nextcloud/index.php line 36
OC::handleRequest()Caused by:
Error: Call to undefined method OCA\Memories\Util::callerNativeVersion() at <>
- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Memories\Controller\PageController->main()- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController()- /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()- /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()- /var/www/nextcloud/lib/base.php line 1060
OC\Route\Router->match()- /var/www/nextcloud/index.php line 36
OC::handleRequest()GET /apps/memories/
from CLIENT-IP by USERNAME at 2023-07-01T06:52:29+02:00
after updating the app.
Line 41 says
// Check native version if available
$nativeVer = Util::callerNativeVersion();
if (null !== $nativeVer && version_compare($nativeVer, BinExt::NX_VER_MIN, '<')) {
return new PublicTemplateResponse($this->appName, 'native-old');
}
Any ideas what cause this problem or a bug?
Opening the memories app in nextcloud delivers
Internal Server Error → failed to load config
log says
[index] Fehler: Exception: template file not found: template:admin at <>
- /var/www/nextcloud/lib/private/legacy/OC_Template.php line 151
OC\Template\TemplateFileLocator->find()- /var/www/nextcloud/lib/private/legacy/OC_Template.php line 88
OC_Template->findTemplate()- /var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php line 207
OC_Template->__construct()- /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 130
OCP\AppFramework\Http\TemplateResponse->render()- /var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php line 83
OCA\Settings\Controller\AdminSettingsController->formatSettings()- /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 149
OCA\Settings\Controller\AdminSettingsController->getSettings()- /var/www/nextcloud/apps/settings/lib/Controller/AdminSettingsController.php line 68
OCA\Settings\Controller\AdminSettingsController->getIndexResponse()- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Settings\Controller\AdminSettingsController->index()- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController()- /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()- /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()- /var/www/nextcloud/lib/base.php line 1060
OC\Route\Router->match()- /var/www/nextcloud/index.php line 36
OC::handleRequest()GET /settings/admin/memories
from CLIENT-IP by USERNAME at 2023-07-01T06:59:37+02:00
Downloaded the tar.gz file for the 5.1.0 from github and recognized that the template folder in meories contain an admin.php → the 5.2.0 comes only with native-old.php and main.php
Copying the admin.php to the template dir in memories app 5.2.0 and restart does not help.
The log concerning the missing admin template seems to be gone but the error concerning
PageController.php’ line 41 at <> still resist and opening memories app also delivers internal server error.