Tomcate+resin+opencart report can ' t access protected field error resolution

Source: Internet
Author: User
Tags opencart
Tomcate+resin+opencart can ' t access protected field wrong
Do not know why, the search function has not been able to use the ~ can only send a problem, do not know is not a problem has been solved.
I use Apache tomcate 7.0 plus resin 4.0.27, running OpenCart 1.5.1 in the inside. The following error is reported after opening the Upload2 page
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 adds to the controller.php to see the line. Try.
------Solution--------------------
discuss

Add in PHP at the beginning, and then the controller.php reported 56 line error, no longer is 55 lines.
I am php idiot, this set of OpenCart program is used in easyphp, and now moved to resin, the root directory is not equipped with php.ini information, Web. XML does not reference the php.ini file, does it matter?

------Solution--------------------
Setting the error level
------Solution--------------------
See if it's illegal to access the class's protected (protected) class variable or class method oh
  • Related Article

    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.