Tomcate + Resin + Opencart report Can 'taccessprotectedfield error solution

Source: Internet
Author: User
Tags opencart
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.