php - Magento 500 server error because of Zend -


i cannot access front or end of magento site. in magento connect , tried upgrading zend framework, attempting so, browser crashed. tried go in i'm getting 500 server error on both ends.

the error messages are:

warning: include(zend/log.php): failed open stream: no such file or directory in /lib/varien/autoload.php on line 94  warning: include(zend/log.php): failed open stream: no such file or directory in /lib/varien/autoload.php on line 94  warning: include(): failed opening 'zend/log.php' inclusion (include_path='/app/code/local:/app/code/community:/app/code/core:/lib:.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /lib/varien/autoload.php on line 94  fatal error: class 'zend_log' not found in /app/code/core/mage/core/functions.php on line 247 

how can working again?

after trying possible fix, error message:

**warning: include(zend/cache.php): failed open stream: no such file or directory  in /lib/varien/autoload.php on line 94 #0 /lib/varien/autoload.php(94): magecoreerrorhandler(2, 'include(zend/ca...', '/...', 94, array) #1 /lib/varien/autoload.php(94): varien_autoload::autoload() #2 [internal function]: varien_autoload->autoload('zend_cache') #3 /app/code/core/mage/core/model/cache.php(135): spl_autoload_call('zend_cache') #4 /app/code/core/mage/core/model/config.php(1354): mage_core_model_cache->__construct(array) #5 /app/mage.php(463): mage_core_model_config->getmodelinstance('core/cache', array) #6 /app/code/core/mage/core/model/app.php(412): mage::getmodel('core/cache', array) #7 /app/code/core/mage/core/model/app.php(306): mage_core_model_app->_initcache(array) #8 /app/code/core/mage/core/model/app.php(348): mage_core_model_app->baseinit(array) #9 /app/mage.php(684): mage_core_model_app->run(array) #10 /index.php(83): mage::run('', 'store') #11 {main}** 

you're error isn't due zend framework. if @ lines php complaining about

#file: app/code/core/mage/core/functions.php function magecoreerrorhandler($errno, $errstr, $errfile, $errline){     //...     if (mage::getisdevelopermode()) {         throw new exception($errormessage);     } else {         mage::log($errormessage, zend_log::err);     } } 

you'll see error happening in magento's custom php error handler. i.e. -- php trying report error of sort, , magento's custom error handling code reaches line

mage::log($errormessage, zend_log::err); 

and halts, because zend_log::err constant hasn't' been defined yet. long standing bug in magento 1 framework errors happen in bootstrap process.

two possible fixes here:

  1. switch magento developer mode , instead of logging error, magento throw exception. let see real error message , diagnose problem.

  2. temporarily add following line before mage::log call

.

require_once 'lib/zend/log.php'; mage::log($errormessage, zend_log::err); 

this include missing file , let php finish error logging (which should, again, let see real error message in logs , start diagnosing problem)


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -