Reported Cantaccessprotectedfield error by using ate + Resin + Opencart. I don't know why, so the search function cannot be used ~ I can only send the problem. I don't know if it is a problem that has been solved. I used ApacheTomcate7.0 and resin4.0.27 to run OpenCart1.5.1. When the upload2 page is opened, the following error Notice is reported: Ca protected ate + Resin + Opencart: Can't access protected field error is reported.
I don't know why, the search function cannot be used ~ I can only send the problem. I don't know if it is a problem that has been solved.
I used Apache pluate 7.0 and resin 4.0.27 to run OpenCart 1.5.1. The following error is reported when the upload2 page is opened.
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
------ Solution --------------------
Error_reporting (E_ALL &~ E_NOTICE); this sentence cannot be added to controller. php. Try it.
------ Solution --------------------
Discussion
At the beginning of PHP, controller. php reported 56 rows of errors instead of 55 rows.
I'm a PHP idiot. this Opencart program has been well deployed in easyphp and is now moved to resin. php is not configured in the root directory. ini information, web. xml does not reference php either. ini file. does this matter?
------ Solution --------------------
Set error level
------ Solution --------------------
Check whether it is illegal to access the class's protected (protected) class variables or class methods.