freefcw / hustoj

the online judge system for acm/icpc
http://www.hustoj.org
263 stars 64 forks source link

SYSPATH/classes/Kohana/Kohana/Exception.php [ 84 ] #54

Open longshuang opened 7 years ago

longshuang commented 7 years ago

Uncaught TypeError: Argument 1 passed to Kohana_Kohana_Exception::handler() must be an instance of Exception, instance of Error given in /data/wwwroot/default/hustoj/system/classes/Kohana/Kohana/Exception.php:84 Stack trace: #0 [internal function]: Kohana_Kohana_Exception::handler(Object(Error)) #1 {main} thrown SYSPATH/classes/Kohana/Kohana/Exception.php [ 84 ] 79 80 @uses Kohana_Exception::response 81 @param Exception $e 82 @return void 83 */ 84 public static function handler(Exception $e) 85 { 86 $response = Kohana_Exception::_handler($e); 87 88 // Send the response to the browser 89 echo $response->send_headers()->body(); {

Can you tell me how to solve it? thanks a lot.......

freefcw commented 7 years ago

please provide your php version and other error log

longshuang commented 7 years ago

My configuration environment : centos7.0 mysql5.6 php7.0 apache2.4 Sorry ,I did not found other error logs, When I am visiting the hustoj/index.php by browser,it throws the exception. And,My base.php is :

return array( 'name' => 'HUSTOJ', 'team' => 'HUST ACMICPC TEAM', 'desc' => '华中科技大学ACM组织', 'keyword' => '华中科技大学, ACM, freefcw, sempr, online judge, 计算机竞赛, 编程, ICPC', 'domain' => 'acm.hust.edu.cn', 'base_url' => '/localhost/hustoj/', // should ends with /, for example '/oj/' 'salt' => 'hustoj', 'oi_mode' => false, 'submit_time' => 5, // in second 'captcha_mode' => false, // false, 'local', 'recaptcha' 'captcha_public_key' => 'YOUR-RECAPTCHA-PUBLIC-KEY', 'captcha_private_key' => 'YOUR-RECAPTCHA-PRIVATE-KEY',

'data_dir'            => '/home/hoj/data',

);

It has any questions? thanks a lot...

freefcw commented 7 years ago

An Error is not inherit Exception, this is new in PHP7. it's seems some error hit, and throw to exception handler, but not a instance of exception.

A simple solution is install php5.6 then run it, will show you real error infomation.

longshuang commented 7 years ago

OK,thanks a lot...