Tomcate+Resin+Opencart报Can't access protected field错解决办法
程序员文章站
2022-06-13 14:18:40
...
Tomcate+Resin+Opencart报Can't access protected field错
不知道为什么,搜索功能没办法用了~ 只能发问题了,不知道是不是个已经解决的问题。
我用的是Apache Tomcate 7.0 加 resin 4.0.27, 在里边跑OpenCart 1.5.1。打开upload2页面后报以下错误
Notice: Can't access protected field 'ControllerCommonColumnLeft::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonColumnRight::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerModuleSlideshow::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\catalog\controller\common\content_top.php on line 72
Notice: Can't access protected field 'ControllerCommonContentTop::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerModuleCarousel::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\catalog\controller\common\content_bottom.php on line 72
Notice: Can't access protected field 'ControllerCommonContentBottom::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonFooter::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonHeader::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
------解决方案--------------------
error_reporting(E_ALL & ~E_NOTICE); 这句加在 controller.php 看行不行。试试看。
------解决方案--------------------
------解决方案--------------------
设置错误级别
------解决方案--------------------
看下 是不是 非法去访问了 类的 protected(受保护) 的类变量或类方法哦
不知道为什么,搜索功能没办法用了~ 只能发问题了,不知道是不是个已经解决的问题。
我用的是Apache Tomcate 7.0 加 resin 4.0.27, 在里边跑OpenCart 1.5.1。打开upload2页面后报以下错误
Notice: Can't access protected field 'ControllerCommonColumnLeft::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonColumnRight::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerModuleSlideshow::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\catalog\controller\common\content_top.php on line 72
Notice: Can't access protected field 'ControllerCommonContentTop::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerModuleCarousel::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\catalog\controller\common\content_bottom.php on line 72
Notice: Can't access protected field 'ControllerCommonContentBottom::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonFooter::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
Notice: Can't access protected field 'ControllerCommonHeader::$output' in D:\working\workspace\OpenCart\TestHelloWorld\WebContent\upload2\system\engine\controller.php on line 55
------解决方案--------------------
error_reporting(E_ALL & ~E_NOTICE); 这句加在 controller.php 看行不行。试试看。
------解决方案--------------------
------解决方案--------------------
设置错误级别
------解决方案--------------------
看下 是不是 非法去访问了 类的 protected(受保护) 的类变量或类方法哦
相关文章
相关视频
上一篇: PHP递归删除目录几个代码实例
下一篇: 简单列表页全选删除