nextcloud / weather

⛅️ Weather app for Nextcloud
GNU Affero General Public License v3.0
47 stars 27 forks source link

Too few parameters #74

Closed mlichtronix closed 5 years ago

mlichtronix commented 5 years ago

[index] Error: ArgumentCountError: Too few arguments to function OCA\Weather\Controller\WeatherController::__construct(), 6 passed in /var/snap/nextcloud/13823/nextcloud/extra-apps/weather/lib/AppInfo/Application.php on line 86 and exactly 7 expected at <>

  1. /var/snap/nextcloud/13823/nextcloud/extra-apps/weather/lib/AppInfo/Application.php line 86 OCA\Weather\Controller\WeatherController->__construct("weather", OC\AllConfig {}, OC\AppFramework\Http\Request {}, "martin", OCA\Weather\Db\CityMapper {}, OCA\Weather\Db\SettingsMapper {})
  2. /snap/nextcloud/13823/htdocs/3rdparty/pimple/pimple/src/Pimple/Container.php line 118 OCA\Weather\AppInfo\Application->OCA\Weather\AppInfo{closure}(" sensitive parameters replaced ")
  3. /snap/nextcloud/13823/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php line 117 Pimple\Container->offsetGet("WeatherController")
  4. /snap/nextcloud/13823/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php line 404 OC\AppFramework\Utility\SimpleContainer->query("WeatherController")
  5. /snap/nextcloud/13823/htdocs/lib/private/AppFramework/DependencyInjection/DIContainer.php line 382 OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("WeatherController")
  6. /snap/nextcloud/13823/htdocs/lib/private/AppFramework/App.php line 97 OC\AppFramework\DependencyInjection\DIContainer->query("WeatherController")
  7. /snap/nextcloud/13823/htdocs/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("WeatherController", "get", " sensitive parameter replaced ", {_route: "weather.weather.get"})
  8. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "weather.weather.get"})
  9. /snap/nextcloud/13823/htdocs/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "weather.weather.get"})
  10. /snap/nextcloud/13823/htdocs/lib/base.php line 975 OC\Route\Router->match("/apps/weather/weather/get")
    1. /snap/nextcloud/13823/htdocs/index.php line 42 OC::handleRequest()

GET /index.php/apps/weather/weather/get?name=" sensitive parameters replaced " from 192.168.1.1 by martin at 2019-06-19T20:03:56+00:00

e-alfred commented 5 years ago

This seems like a problem with the app not getting updated correctly or something getting cached on your server. Can you try to clear all caches on the server side (usually a restart of the services should help) to see if it resolves the problem?

mlichtronix commented 5 years ago

Yes, restart of services helped.Thanx.