nextcloud / integration_moodle

🎓 Moodle integration into Nextcloud
GNU Affero General Public License v3.0
16 stars 5 forks source link

Problem with connect in Moodle integration: Nextcloud->connected accounts->Moodle integration #15

Open VadimKondratov opened 3 years ago

VadimKondratov commented 3 years ago

[index] Error: UnexpectedValueException: Only integers, floats and strings are allowed as value at <>

  1. /var/www/html/custom_apps/integration_moodle/lib/Controller/MoodleAPIController.php line 90 OC\AllConfig->setUserValue(" sensitive parameter replaced ", "integration_moodle", "privatetoken", null)
  2. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 169 OCA\Moodle\Controller\MoodleAPIController->getToken(" sensitive parameters replaced ")
  3. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 100 OC\AppFramework\Http\Dispatcher->executeController(OCA\Moodle\Contr ... e}, "getToken")
  4. /var/www/html/lib/private/AppFramework/App.php line 152 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Moodle\Contr ... e}, "getToken")
  5. /var/www/html/lib/private/Route/Router.php line 308 OC\AppFramework\App::main("OCA\Moodle\Co ... r", "getToken", OC\AppFramework\ ... {}, {action: null,_r ... "})
  6. /var/www/html/lib/base.php line 1008 OC\Route\Router->match("/apps/integration_moodle/get-token")
  7. /var/www/html/index.php line 37 OC::handleRequest()

POST /apps/integration_moodle/get-token from 81.88.. by v.k* at 2020-12-27T20:52:54+00:00

julien-nc commented 3 years ago

Thanks for the bug report.

This was solved but is not released yet. Could you try latest nightly build?

VadimKondratov commented 3 years ago

Thanks for the help. I install the application version 0.0.6 nightly build. Authorization worked, notifications appeared on the dashboard. If it's important, there are some errors in the logs.

[PHP] Error: Error: Undefined index: error at /var/www/html/custom_apps/integration_moodle/lib/Service/MoodleAPIService.php#163 at <>

  1. /var/www/html/custom_apps/integration_moodle/lib/Service/MoodleAPIService.php line 163 OC\Log\ErrorHandler::onError(8, "Undefined index: error", "/var/www/html/c ... p", 163, {url: "https://l ... "})
  2. /var/www/html/custom_apps/integration_moodle/lib/Search/MoodleSearchModulesProvider.php line 121 OCA\Moodle\Service\MoodleAPIService->searchModules("https://l4.kondratov.net", "4f6e25d4f57c8247cb8639b6c9136b8d", true, "hash", 0, 5)
  3. /var/www/html/lib/private/Search/SearchComposer.php line 162 OCA\Moodle\Search\MoodleSearchModulesProvider->search(OC\User\User {}, OC\Search\SearchQuery {})
  4. /var/www/html/core/Controller/UnifiedSearchController.php line 110 OC\Search\SearchComposer->search(OC\User\User {}, "moodle-search-modules", OC\Search\SearchQuery {})
  5. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 169 OC\Core\Controller\UnifiedSearchController->search("moodle-search-modules", "hash", null, null, null, "/settings/apps")
  6. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 100 OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Controll ... {}, "search")
  7. /var/www/html/lib/private/AppFramework/App.php line 152 OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controll ... {}, "search")
  8. /var/www/html/lib/private/Route/Router.php line 308 OC\AppFramework\App::main("OC\Core\Contr ... r", "search", OC\AppFramework\ ... {}, {action: null,pr ... "})
  9. /var/www/html/ocs/v1.php line 88 OC\Route\Router->match("/ocsapp/search/ ... h")
  10. /var/www/html/ocs/v2.php line 24 require_once("/var/www/html/ocs/v1.php")

GET /ocs/v2.php/search/providers/moodle-search-modules/search?term=hash&from=%2Fsettings%2Fapps from 81.88.. at 2021-01-05T20:49:21+00:00

Thanks for the bug report.

This was solved but is not released yet. Could you try latest nightly build?