( ! ) Fatal error: Uncaught TypeError: Laminas\EventManager\SharedEventManager::attach(): Argument #3 ($listener) must be of type callable, array given, called in /home/devnos/public_html/modules/AdminAddon/Module.php on line 135 and defined in /home/devnos/public_html/vendor/laminas/laminas-eventmanager/src/SharedEventManager.php on line 60
( ! ) TypeError: Laminas\EventManager\SharedEventManager::attach(): Argument #3 ($listener) must be of type callable, array given, called in /home/devnos/public_html/modules/AdminAddon/Module.php on line 135 in /home/devnos/public_html/vendor/laminas/laminas-eventmanager/src/SharedEventManager.php on line 60
Call Stack
#TimeMemoryFunctionLocation
10.0000360776{main}( ).../index.php:0
20.0005371336Omeka\Mvc\Application::init( $configuration = ['modules' => [0 => 'Laminas\\Form', 1 => 'Laminas\\I18n', 2 => 'Laminas\\Mvc\\I18n', 3 => 'Laminas\\Mvc\\Plugin\\Identity', 4 => 'Laminas\\Navigation', 5 => 'Laminas\\Router', 6 => 'Laminas\\ZendFrameworkBridge', 7 => 'Omeka'], 'module_listener_options' => ['module_paths' => [...], 'config_glob_paths' => [...]], 'service_manager' => ['factories' => [...]], 'connection' => ['user' => 'devnos', 'password' => 'GrEz587YUlHpqq0', 'dbname' => 'devnos', 'host' => 'localhost']] ).../index.php:24
30.09261346992Laminas\Mvc\Application->bootstrap( $listeners = [0 => 'ModuleRouteListener', 1 => 'Omeka\\MvcExceptionListener', 2 => 'Omeka\\MvcListeners', 3 => 'EasyAdmin\\Mvc\\MvcListeners'] ).../Application.php:40
40.09411387520Laminas\EventManager\EventManager->triggerEvent( $event = class Laminas\Mvc\MvcEvent { protected $name = 'bootstrap'; protected $target = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $params = ['application' => class Laminas\Mvc\Application { ... }, 'request' => class Laminas\Http\PhpEnvironment\Request { ... }, 'response' => class Laminas\Http\PhpEnvironment\Response { ... }, 'router' => class Laminas\Router\Http\TreeRouteStack { ... }]; protected $stopPropagation = FALSE; protected $application = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $request = class Laminas\Http\PhpEnvironment\Request { protected $metadata = [...]; protected $content = ''; protected $version = '1.1'; protected $headers = class Laminas\Http\Headers { ... }; protected $method = 'GET'; protected $allowCustomMethods = TRUE; protected $uri = class Laminas\Uri\Http { ... }; protected $queryParams = NULL; protected $postParams = NULL; protected $fileParams = NULL; protected $baseUrl = ''; protected $basePath = NULL; protected $requestUri = '/item/21558'; protected $serverParams = class Laminas\Stdlib\Parameters { ... }; protected $envParams = class Laminas\Stdlib\Parameters { ... } }; protected $response = class Laminas\Http\PhpEnvironment\Response { protected $metadata = [...]; protected $content = ''; protected $version = NULL; protected $headers = NULL; protected $recommendedReasonPhrases = [...]; protected $statusCode = 200; protected $reasonPhrase = NULL; public $headersSent = NULL; protected $contentSent = FALSE; private $headersSentHandler = NULL }; protected $result = NULL; protected $router = class Laminas\Router\Http\TreeRouteStack { protected $routes = class Laminas\Router\PriorityList { ... }; protected $routePluginManager = class Laminas\Router\RoutePluginManager { ... }; protected $defaultParams = [...]; protected $baseUrl = ''; protected $requestUri = class Laminas\Uri\Http { ... }; protected $prototypes = class ArrayObject { ... }; public $priority = NULL }; protected $routeMatch = NULL; protected $viewModel = class Laminas\View\Model\ViewModel { protected $captureTo = 'content'; protected $children = [...]; protected $options = [...]; protected $template = 'layout/layout'; protected $terminate = FALSE; protected $variables = class Laminas\View\Variables { ... }; protected $append = FALSE } } ).../Application.php:148
50.09411387520Laminas\EventManager\EventManager->triggerListeners( $event = class Laminas\Mvc\MvcEvent { protected $name = 'bootstrap'; protected $target = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $params = ['application' => class Laminas\Mvc\Application { ... }, 'request' => class Laminas\Http\PhpEnvironment\Request { ... }, 'response' => class Laminas\Http\PhpEnvironment\Response { ... }, 'router' => class Laminas\Router\Http\TreeRouteStack { ... }]; protected $stopPropagation = FALSE; protected $application = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $request = class Laminas\Http\PhpEnvironment\Request { protected $metadata = [...]; protected $content = ''; protected $version = '1.1'; protected $headers = class Laminas\Http\Headers { ... }; protected $method = 'GET'; protected $allowCustomMethods = TRUE; protected $uri = class Laminas\Uri\Http { ... }; protected $queryParams = NULL; protected $postParams = NULL; protected $fileParams = NULL; protected $baseUrl = ''; protected $basePath = NULL; protected $requestUri = '/item/21558'; protected $serverParams = class Laminas\Stdlib\Parameters { ... }; protected $envParams = class Laminas\Stdlib\Parameters { ... } }; protected $response = class Laminas\Http\PhpEnvironment\Response { protected $metadata = [...]; protected $content = ''; protected $version = NULL; protected $headers = NULL; protected $recommendedReasonPhrases = [...]; protected $statusCode = 200; protected $reasonPhrase = NULL; public $headersSent = NULL; protected $contentSent = FALSE; private $headersSentHandler = NULL }; protected $result = NULL; protected $router = class Laminas\Router\Http\TreeRouteStack { protected $routes = class Laminas\Router\PriorityList { ... }; protected $routePluginManager = class Laminas\Router\RoutePluginManager { ... }; protected $defaultParams = [...]; protected $baseUrl = ''; protected $requestUri = class Laminas\Uri\Http { ... }; protected $prototypes = class ArrayObject { ... }; public $priority = NULL }; protected $routeMatch = NULL; protected $viewModel = class Laminas\View\Model\ViewModel { protected $captureTo = 'content'; protected $children = [...]; protected $options = [...]; protected $template = 'layout/layout'; protected $terminate = FALSE; protected $variables = class Laminas\View\Variables { ... }; protected $append = FALSE } }, $callback = ??? ).../EventManager.php:168
60.10291748864AdminAddon\Module->onBootstrap( $event = class Laminas\Mvc\MvcEvent { protected $name = 'bootstrap'; protected $target = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $params = ['application' => class Laminas\Mvc\Application { ... }, 'request' => class Laminas\Http\PhpEnvironment\Request { ... }, 'response' => class Laminas\Http\PhpEnvironment\Response { ... }, 'router' => class Laminas\Router\Http\TreeRouteStack { ... }]; protected $stopPropagation = FALSE; protected $application = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $request = class Laminas\Http\PhpEnvironment\Request { protected $metadata = [...]; protected $content = ''; protected $version = '1.1'; protected $headers = class Laminas\Http\Headers { ... }; protected $method = 'GET'; protected $allowCustomMethods = TRUE; protected $uri = class Laminas\Uri\Http { ... }; protected $queryParams = NULL; protected $postParams = NULL; protected $fileParams = NULL; protected $baseUrl = ''; protected $basePath = NULL; protected $requestUri = '/item/21558'; protected $serverParams = class Laminas\Stdlib\Parameters { ... }; protected $envParams = class Laminas\Stdlib\Parameters { ... } }; protected $response = class Laminas\Http\PhpEnvironment\Response { protected $metadata = [...]; protected $content = ''; protected $version = NULL; protected $headers = NULL; protected $recommendedReasonPhrases = [...]; protected $statusCode = 200; protected $reasonPhrase = NULL; public $headersSent = NULL; protected $contentSent = FALSE; private $headersSentHandler = NULL }; protected $result = NULL; protected $router = class Laminas\Router\Http\TreeRouteStack { protected $routes = class Laminas\Router\PriorityList { ... }; protected $routePluginManager = class Laminas\Router\RoutePluginManager { ... }; protected $defaultParams = [...]; protected $baseUrl = ''; protected $requestUri = class Laminas\Uri\Http { ... }; protected $prototypes = class ArrayObject { ... }; public $priority = NULL }; protected $routeMatch = NULL; protected $viewModel = class Laminas\View\Model\ViewModel { protected $captureTo = 'content'; protected $children = [...]; protected $options = [...]; protected $template = 'layout/layout'; protected $terminate = FALSE; protected $variables = class Laminas\View\Variables { ... }; protected $append = FALSE } } ).../EventManager.php:318
70.10291748864Omeka\Module\AbstractModule->onBootstrap( $event = class Laminas\Mvc\MvcEvent { protected $name = 'bootstrap'; protected $target = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $params = ['application' => class Laminas\Mvc\Application { ... }, 'request' => class Laminas\Http\PhpEnvironment\Request { ... }, 'response' => class Laminas\Http\PhpEnvironment\Response { ... }, 'router' => class Laminas\Router\Http\TreeRouteStack { ... }]; protected $stopPropagation = FALSE; protected $application = class Laminas\Mvc\Application { protected $defaultListeners = [...]; protected $event = ...; protected $events = class Laminas\EventManager\EventManager { ... }; protected $request = class Laminas\Http\PhpEnvironment\Request { ... }; protected $response = class Laminas\Http\PhpEnvironment\Response { ... }; protected Laminas\ServiceManager\ServiceManager $serviceManager = class Laminas\ServiceManager\ServiceManager { ... } }; protected $request = class Laminas\Http\PhpEnvironment\Request { protected $metadata = [...]; protected $content = ''; protected $version = '1.1'; protected $headers = class Laminas\Http\Headers { ... }; protected $method = 'GET'; protected $allowCustomMethods = TRUE; protected $uri = class Laminas\Uri\Http { ... }; protected $queryParams = NULL; protected $postParams = NULL; protected $fileParams = NULL; protected $baseUrl = ''; protected $basePath = NULL; protected $requestUri = '/item/21558'; protected $serverParams = class Laminas\Stdlib\Parameters { ... }; protected $envParams = class Laminas\Stdlib\Parameters { ... } }; protected $response = class Laminas\Http\PhpEnvironment\Response { protected $metadata = [...]; protected $content = ''; protected $version = NULL; protected $headers = NULL; protected $recommendedReasonPhrases = [...]; protected $statusCode = 200; protected $reasonPhrase = NULL; public $headersSent = NULL; protected $contentSent = FALSE; private $headersSentHandler = NULL }; protected $result = NULL; protected $router = class Laminas\Router\Http\TreeRouteStack { protected $routes = class Laminas\Router\PriorityList { ... }; protected $routePluginManager = class Laminas\Router\RoutePluginManager { ... }; protected $defaultParams = [...]; protected $baseUrl = ''; protected $requestUri = class Laminas\Uri\Http { ... }; protected $prototypes = class ArrayObject { ... }; public $priority = NULL }; protected $routeMatch = NULL; protected $viewModel = class Laminas\View\Model\ViewModel { protected $captureTo = 'content'; protected $children = [...]; protected $options = [...]; protected $template = 'layout/layout'; protected $terminate = FALSE; protected $variables = class Laminas\View\Variables { ... }; protected $append = FALSE } } ).../Module.php:73
80.10291748864AdminAddon\Module->attachListeners( $sharedEventManager = class Laminas\EventManager\SharedEventManager { protected $identifiers = ['Laminas\\Mvc\\Application' => [...], 'Laminas\\Stdlib\\DispatchableInterface' => [...], 'Omeka\\Api\\Adapter\\UserAdapter' => [...], 'Laminas\\View\\Helper\\Navigation\\AbstractHelper' => [...], 'Omeka\\Entity\\Media' => [...], 'Omeka\\Entity\\Asset' => [...], 'Omeka\\Entity\\ResourceTemplate' => [...], 'Omeka\\Api\\Representation\\MediaRepresentation' => [...], 'Omeka\\Api\\Adapter\\MediaAdapter' => [...], 'Omeka\\Api\\Adapter\\SiteAdapter' => [...], '*' => [...], 'Omeka\\Api\\Adapter\\SitePageAdapter' => [...], 'Omeka\\Controller\\Admin\\Media' => [...], 'Omeka\\Controller\\Site\\Item' => [...], 'Omeka\\Controller\\Site\\Media' => [...], 'Omeka\\Controller\\Admin\\Item' => [...], 'Omeka\\Controller\\Admin\\ItemSet' => [...], 'Omeka\\Entity\\User' => [...], 'Omeka\\Entity\\ApiKey' => [...], 'Omeka\\Entity\\Module' => [...], 'user.login' => [...], 'user.logout' => [...], 'api.create.post' => [...], 'api.update.post' => [...], 'api.delete.post' => [...], 'entity.persist.post' => [...], 'entity.update.post' => [...], 'entity.remove.post' => [...], 'api.batch_create.post' => [...], 'api.batch_update.post' => [...], 'api.batch_delete.post' => [...], 'setting.insert' => [...], 'setting.update' => [...], 'setting.delete' => [...], 'Omeka\\Stdlib\\HtmlPurifier' => [...], 'Omeka\\Form\\SettingForm' => [...], 'Omeka\\Form\\SiteSettingsForm' => [...]] } ).../AbstractModule.php:35
90.10291752152Laminas\EventManager\SharedEventManager->attach( $identifier = 'Omeka\\Form\\SettingForm', $event = 'form.add_input_filters', $listener = [0 => class AdminAddon\Module { protected $serviceLocator = class Laminas\ServiceManager\ServiceManager { ... }; protected $events = NULL; protected $application = NULL; protected $indexes = [...]; protected $configName = 'AdminAddon'; protected $mvcEvent = NULL; protected $applicationRouteMatch = NULL; protected $acl = NULL; protected $connection = NULL; protected $settings = NULL; protected $siteSettings = NULL; protected $userSettings = NULL; protected $config = NULL; protected $apiManager = NULL; protected $ApiAdapter = [...]; protected $entityManager = NULL; protected $logger = NULL }, 1 => 'handleMainSettingsFilters'], $priority = ??? ).../Module.php:135