ZF 2 :Catchable 致命错误:参数 1 传递给 Zend\View\HelperPluginManager [英] ZF 2 :Catchable fatal error: Argument 1 passed to Zend\View\HelperPluginManager

查看:27
本文介绍了ZF 2 :Catchable 致命错误:参数 1 传递给 Zend\View\HelperPluginManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行使用 Zend Framework 2 创建的应用程序时出现此错误:

<块引用>

可捕获的致命错误:参数 1 传递给Zend\View\HelperPluginManager::__construct() 必须实现接口Interop\Container\ContainerInterface,未给出,已调用C:\wamp\www\blog\vendor\zendframework\zend-mvc\src\Service\AbstractPluginManagerFactory.php在第 32 行并定义在C:\wamp\www\blog\vendor\zendframework\zend-view\src\HelperPluginManager.php在线 241

我该如何解决

提前致谢

解决方案

查看 repo:

https://github.com/zendframework/zend-view/issues/43

HelperPluginManager 的构造函数有问题

I run the app created with Zend Framework 2 i get this Error:

Catchable fatal error: Argument 1 passed to Zend\View\HelperPluginManager::__construct() must implement interface Interop\Container\ContainerInterface, none given, called in C:\wamp\www\blog\vendor\zendframework\zend-mvc\src\Service\AbstractPluginManagerFactory.php on line 32 and defined in C:\wamp\www\blog\vendor\zendframework\zend-view\src\HelperPluginManager.php on line 241

how can i resolved that

Thanks in advance

解决方案

See the repo:

https://github.com/zendframework/zend-view/issues/43

It's a bug in constructor of HelperPluginManager

这篇关于ZF 2 :Catchable 致命错误:参数 1 传递给 Zend\View\HelperPluginManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆