Hello all,
I began with the development for Nextcloud. To do this, I started with the tutorials and created the both dashboard widgets from the tutorial 4 Developing a dashboard widget with Vue.js. And that worked well so far. But wthen I wanted to activate the widgets on the Nextcloud dashboard, they were not be found in the selection.
There is an entry in the error log that does not appear if the app with the widget is not available. In the tutorial I read the following part, but unfortunately I don’t know if that helps and what I have to do. Can someone please help me?
Best regards and many thanks in advance!
Part from the tutorial:
Create a l10n directory in catgifsdashboard, it is needed to make your app translatable. This directory will store the translation files.
Nextcloud provides mechanisms for internationalization (make an application translatable) and localization (add translations for specific languages). Nextcloud’s translation system is powered by Transifex. Your Nextcloud app can be translated by the Nextcloud community as well.
The automated translation files will be stored in the l10n directory. To make this work with the automated translations you do need to configure this, but we will not cover these steps in this tutorial.
You can find detailed information about how to make your app translatable in the documentation here.
Error entry of the log file:
GET /apps/dashboard/
[no app in context] Fehler: OCP\AppFramework\QueryException: Could not resolve OCP\IL10N! Class can not be instantiated at <>
0. <>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(“*** sensitive parameters replaced ***”)
- /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
array_map([“Closure”], ["*** sensitive … ]]) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 124
OC\AppFramework\Utility\SimpleContainer->buildClass(["ReflectionClas … "]) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/ServerContainer.php line 171
OC\AppFramework\Utility\SimpleContainer->query(“OCA\CatGifsDas … t”, true) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\ServerContainer->query(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/Dashboard/Manager.php line 78
OC\AppFramework\Utility\SimpleContainer->get(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/Dashboard/Manager.php line 138
OC\Dashboard\Manager->loadLazyPanels() - /var/www/html/apps/dashboard/lib/Controller/DashboardController.php line 101
OC\Dashboard\Manager->getWidgets() - /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Dashboard\Controller\DashboardController->index() - /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController(["OCA\Dashboard … "], “index”) - /var/www/html/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Dashboard … "], “index”) - /var/www/html/lib/private/Route/Router.php line 315
OC\AppFramework\App::main(“OCA\Dashboard\ … r”, “index”, ["OC\AppFramewo … "], [“dashboard.dashboard.index”]) - /var/www/html/lib/base.php line 1056
OC\Route\Router->match(“/apps/dashboard/”) - /var/www/html/index.php line 36
OC::handleRequest()
Caused by:
OCP\AppFramework\QueryException: Could not resolve OCP\IL10N! Class can not be instantiated at <>
0. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve(“OCP\IL10N”)
- /var/www/html/lib/private/ServerContainer.php line 171
OC\AppFramework\Utility\SimpleContainer->query(“OCP\IL10N”, true) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 97
OC\ServerContainer->query(“OCP\IL10N”, true) - <>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(“*** sensitive parameters replaced ***”) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
array_map([“Closure”], ["*** sensitive … ]]) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 124
OC\AppFramework\Utility\SimpleContainer->buildClass(["ReflectionClas … "]) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/ServerContainer.php line 171
OC\AppFramework\Utility\SimpleContainer->query(“OCA\CatGifsDas … t”, true) - /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\ServerContainer->query(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/Dashboard/Manager.php line 78
OC\AppFramework\Utility\SimpleContainer->get(“OCA\CatGifsDas … t”) - /var/www/html/lib/private/Dashboard/Manager.php line 138
OC\Dashboard\Manager->loadLazyPanels() - /var/www/html/apps/dashboard/lib/Controller/DashboardController.php line 101
OC\Dashboard\Manager->getWidgets() - /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230
OCA\Dashboard\Controller\DashboardController->index() - /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137
OC\AppFramework\Http\Dispatcher->executeController(["OCA\Dashboard … "], “index”) - /var/www/html/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch(["OCA\Dashboard … "], “index”) - /var/www/html/lib/private/Route/Router.php line 315
OC\AppFramework\App::main(“OCA\Dashboard\ … r”, “index”, ["OC\AppFramewo … "], [“dashboard.dashboard.index”]) - /var/www/html/lib/base.php line 1056
OC\Route\Router->match(“/apps/dashboard/”) - /var/www/html/index.php line 36
OC::handleRequest()