Closed Moimemeici closed 6 years ago
I have this error with last version
Error | index | ArgumentCountError: Too few arguments to function OCA\User_LDAP\Access::__construct(), 4 passed in /apps2/ldapcontacts/lib/Controller/ContactController.php on line 121 and exactly 5 expected/apps2/ldapcontacts/lib/Controller/ContactController.php - line 121: OCA\User_LDAP\Access->__construct(Object(OCA\User_LDAP\Connection), Object(OCA\User_LDAP\LDAP), Object(OCA\User_LDAP\User\Manager), Object(OCA\User_LDAP\Helper))/apps2/ldapcontacts/lib/Controller/ContactController.php - line 84: OCA\LdapContacts\Controller\ContactController->load_config(Object(OCA\User_LDAP\User\Manager), Object(OCA\User_LDAP\Helper), Object(OCA\User_LDAP\Mapping\UserMapping), Object(OCA\User_LDAP\Mapping\GroupMapping))/apps2/ldaporg/lib/Controller/PageController.php - line 46: OCA\LdapContacts\Controller\ContactController->__construct('ldaporg', Object(OC\AppFramework\Http\Request), Object(OC\AllConfig), Object(OCA\LdapContacts\Controller\SettingsController), 'kamel', Object(OCA\User_LDAP\User\Manager), Object(OCA\User_LDAP\Helper), Object(OCA\User_LDAP\Mapping\UserMapping), Object(OCA\User_LDAP\Mapping\GroupMapping), Object(OC\DB\Connection))[internal function] OCA\LdapOrg\Controller\PageController->__construct('ldaporg', Object(OC\AppFramework\Http\Request), Object(OC\AllConfig), Object(OCA\LdapOrg\Controller\SettingsController), Object(OCA\LdapContacts\Controller\SettingsController), Object(OC\Mail\Mailer), Object(OC\L10N\L10N), 'kamel', Object(OCA\User_LDAP\User\Manager), Object(OCA\User_LDAP\Helper), Object(OCA\User_LDAP\Mapping\UserMapping), Object(OCA\User_LDAP\Mapping\GroupMapping), Object(OC\DB\Connection))/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 80: ReflectionClass->newInstanceArgs(Array)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 97: OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 118: OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\LdapOrg\\Con...')/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 467: OC\AppFramework\Utility\SimpleContainer->query('OCA\\LdapOrg\\Con...')/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 438: OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\LdapOrg\\Con...')/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 164: OC\AppFramework\DependencyInjection\DIContainer->query('OCA\\LdapOrg\\Con...')/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php - line 109: OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(*** sensitive parameters replaced ***)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 116: Pimple\Container->offsetGet('PageController')/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 460: OC\AppFramework\Utility\SimpleContainer->query('PageController')/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 438: OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('PageController')/nextcloud/lib/private/AppFramework/App.php - line 92: OC\AppFramework\DependencyInjection\DIContainer->query('PageController')/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('PageController', 'adminLoadGroups', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)/nextcloud/lib/base.php - line 998: OC\Route\Router->match('/apps/ldaporg/a...')/nextcloud/index.php - line 37: OC handleRequest(){main} -- | -- | --
Forgot to commit the changes for Nextcloud 13 compatibility. The error is now gone. @dlang9159
I have this error with last version