#0 [8]ErrorException in Reward.php line 37

Trying to access array offset on value of type bool

  1. {
  2. parent::initialize();
  3. $this->pay_config = get_plugins_config('pay');
  4. $this->reward_config = get_plugins_config('reward');
  5. if($this->pay_config && $this->pay_config['alipay']['enable']=='N' && $this->pay_config['wechat']['enable']=='N' && $this->pay_config['balance']['enable']=='N'){
  6. $this->error('支付功能配置,无法发起悬赏','index');
  7. }
  8. if($this->reward_config['reward']['enable']!='Y')
  9. {
  10. $this->error('悬赏功能暂未启用');
  11. }
  12. $this->assign([
  13. 'pay_config'=>$this->pay_config,
  14. 'reward_config'=>$this->reward_config
  15. ]);
  16. }

Call Stack

  1. in Reward.php line 37
  2. at Error->appError() in Reward.php line 37
  3. at Reward->initialize() in Frontend.php line 142
  4. at Frontend->__construct()
  5. at ReflectionClass->newInstanceArgs() in Container.php line 395
  6. at Container->invokeClass() in Container.php line 252
  7. at Container->make() in Controller.php line 187
  8. at Controller->controller() in Controller.php line 74
  9. at Controller->exec() in Dispatch.php line 90
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 773
  14. at Route->dispatch() in Http.php line 216
  15. at Http->dispatchToRoute() in Http.php line 206
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in AppInit.php line 91
  18. at AppInit->handle()
  19. at call_user_func() in Middleware.php line 142
  20. at Middleware->think\{closure}() in Pipeline.php line 85
  21. at Pipeline->think\{closure}() in SessionInit.php line 67
  22. at SessionInit->handle()
  23. at call_user_func() in Middleware.php line 142
  24. at Middleware->think\{closure}() in Pipeline.php line 85
  25. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  26. at LoadLangPack->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in TraceDebug.php line 71
  30. at TraceDebug->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Http.php line 207
  35. at Http->runWithRequest() in Http.php line 170
  36. at Http->run() in index.php line 23

Environment Variables

GET Data
sort new
category_id 0
POST Dataempty
Filesempty
Cookiesempty
Session
return_url Lw==
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST dm.wecenter.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dm.wecenter.com
SERVER_PORT 443
SERVER_ADDR 103.44.248.122
REMOTE_PORT 37774
REMOTE_ADDR 35.171.22.220
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/wwwroot/demo/public
DOCUMENT_URI /index.php
REQUEST_URI /reward/index.html?sort=new&category_id=0
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/reward/index.html&sort=new&category_id=0
SCRIPT_FILENAME /data/wwwroot/demo/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711626612.9493
REQUEST_TIME 1711626612
0.074673s