You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Uncaught TypeError: Argument 1 passed to Zend\ModuleManager\Listener\ConfigListener::setMergedConfig() must be of the type array, integer given, called in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 70 and defined in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 208
TypeError: Argument 1 passed to Zend\ModuleManager\Listener\ConfigListener::setMergedConfig() must be of the type array, integer given, called in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 70 in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 208
For time temporarily i had disable cache from application.config.php by comment these line
// Whether or not to enable a configuration cache.
// If enabled, the merged configuration will be cached and used in
// subsequent requests.
// 'config_cache_enabled' => true,
// The key used to create the configuration cache file name.
//'config_cache_key' => 'application.config.cache',
// Whether or not to enable a module class map cache.
// 'module_map_cache_enabled' => true,
// The key used to create the class map cache file name.
//'module_map_cache_key' => 'application.module.cache',
// The path in which to cache merged configuration.
// 'cache_dir' => 'data/cache/',
// 'check_dependencies' => true,
After disable my error omitted, If i want to use cache , than what is solution ???
Fatal error: Uncaught TypeError: Argument 1 passed to Zend\ModuleManager\Listener\ConfigListener::setMergedConfig() must be of the type array, integer given, called in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 70 and defined in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 208
TypeError: Argument 1 passed to Zend\ModuleManager\Listener\ConfigListener::setMergedConfig() must be of the type array, integer given, called in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 70 in /var/www/html/hello/vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 208
For time temporarily i had disable cache from application.config.php by comment these line
// Whether or not to enable a configuration cache.
// If enabled, the merged configuration will be cached and used in
// subsequent requests.
// 'config_cache_enabled' => true,
// 'module_map_cache_enabled' => true,
// 'cache_dir' => 'data/cache/',
// 'check_dependencies' => true,
After disable my error omitted, If i want to use cache , than what is solution ???
Write
My composer.json
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for Zend Framework zend-mvc applications",
"type": "project",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"mvc",
"zf"
],
"homepage": "http://framework.zend.com/",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-component-installer": "^1.0 || ^0.7 || ^1.0.0-dev@dev",
"zendframework/zend-mvc": "^3.0.1",
"zfcampus/zf-development-mode": "^3.0",
"zendframework/zend-cache": "^2.7.1",
"zendframework/zend-db": "^2.8.1",
"zendframework/zend-mvc-form": "^1.0",
"zendframework/zend-json": "^3.0",
"zendframework/zend-log": "^2.9",
"zendframework/zend-mvc-console": "^1.1.10",
"zendframework/zend-mvc-i18n": "^1.0",
"zendframework/zend-mvc-plugins": "^1.0.1",
"zendframework/zend-psr7bridge": "^0.2.2",
"zendframework/zend-session": "^2.7.1",
"zendframework/zend-servicemanager-di": "^1.0",
"monolog/monolog": "^1.23",
"doctrine/orm": "^2.5",
"doctrine/doctrine-orm-module": "^1.1"
},
"autoload": {
"psr-4": {
"Application\": "module/Application/src/"
}
},
"autoload-dev": {
"psr-4": {
"ApplicationTest\": "module/Application/test/"
}
},
"extra": [],
"scripts": {
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"development-disable": "zf-development-mode disable",
"development-enable": "zf-development-mode enable",
"development-status": "zf-development-mode status",
"post-create-project-cmd": [
"@development-enable"
],
"serve": "php -S 0.0.0.0:8080 -t public public/index.php",
"test": "phpunit"
},
"require-dev": {
"zendframework/zend-developer-tools": "^1.1.0",
"zendframework/zend-test": "^3.0.1"
}
}
Originally posted by @vishalmati-sharma at zendframework/ZendSkeletonApplication#422
The text was updated successfully, but these errors were encountered: