There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: xxxxxxxxxx(这是一串数字)
问Google,找到解决方案
步骤1
将errors/local.xml.sample重命名为 local.xml
这样修改可以看到详细的错误信息:
Could not determine temp directory, please specify a cache_dir manually
Trace:
#0 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend.php(197): Zend_Cache::throwException(‘Could not deter…’)
#1 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend\File.php(123): Zend_Cache_Backend->getTmpDir()
#2 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(153): Zend_Cache_Backend_File->__construct(Array)
#3 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(94): Zend_Cache::_makeBackend(‘File’, Array, false, false)
#4 F:\Work\makingware_ce-1.5.2\lib\Zend\Locale\Data.php(314): Zend_Cache::factory(‘Core’, ‘File’, Array, Array)
#5 F:\Work\makingware_ce-1.5.2\app\code\core\Mage\Core\Block\Html\Calendar.php(42): Zend_Locale_Data::getList(‘zh_CN’, ‘days’)
….后面省略
此错误说明是缓存目录需要手动设置
步骤2
修改文件 lib\Zend\Cache\Backend\File.php 在第90行的位置

代码如下:
protected $_options = array(
‘cache_dir’ => null,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32’,
‘hashed_directory_level’ => 0,
‘hashed_directory_umask’ => 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);

看到以上代码,设置 cache_dir

代码如下:
protected $_options = array(
‘cache_dir’ => ‘var/cache’,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32’,
‘hashed_directory_level’ => 0,
‘hashed_directory_umask’ => 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);

修改完成!

1.本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2.分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3.不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4.本站提供的源码、模板、插件等其他资源,都不包含技术服务请大家谅解!
5.如有链接无法下载或失效,请联系管理员处理!
6.本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!