zendframework / zend-log

Log component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 51 forks source link

Uncaught exception 'Zend_Log_Exception' with message file.log cannot be opened with mode “a” #95

Closed mushroom11s closed 5 years ago

mushroom11s commented 5 years ago

I don't know how to use php, I am developing java.I thought about this error when I deployed a PHP project.

Fatal error: Uncaught exception 'Zend_Log_Exception' with message '"/home/hystream-apps-test/TOMS/application/../data/log/Ec_Error.log" cannot be opened with mode "a"' in /home/hystream-apps-test/TOMS/libs/Zend/Log/Writer/Stream.php:81 Stack trace: #0 /home/hystream-apps-test/TOMS/libs/Ec/Bootstrap.php(36): Zend_Log_Writer_Stream->__construct('/home/hystream-...') #1 /home/hystream-apps-test/TOMS/libs/Zend/Application/Bootstrap/BootstrapAbstract.php(669): Bootstrap->_initLogging() #2 /home/hystream-apps-test/TOMS/libs/Zend/Application/Bootstrap/BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('logging') #3 /home/hystream-apps-test/TOMS/libs/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #4 /home/hystream-apps-test/TOMS/libs/Zend/Application.php(362): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #5 /home/hystream-apps-test/TOMS/public/index.php(110): Zend_Application->bootstrap() #6 {main} thr in /home/hystream-apps-test/TOMS/libs/Zend/Log/Writer/Stream.php on line 81

Ocramius commented 5 years ago

Couple things here:

  1. cannot be opened with mode "a" pretty much says it all
    1. ZendFramework 1.x (the one you are having in your stack traces) was discontinued in 2016 (https://framework.zend.com/blog/2016-06-28-zf1-eol.html)

Closing, as this is not an issue within this library.