[0] ThrowableError in Options.php line 126

Fatal error: Call to a member function toArray() on null

  1. 'site_address'=>'',
  2. 'site_tel'=>'',
  3. 'site_admin_email'=>'',
  4. 'site_qq'=>'',
  5. 'site_seo_title'=>'',
  6. 'site_seo_keywords'=>'',
  7. 'site_seo_description'=>'',
  8. );
  9. }
  10. $options=self::where(array('option_name'=>$type,'option_l'=>$lang))->find()->toArray();
  11. if(empty($options)){
  12. $options=self::where(array('option_name'=>$type,'option_l'=>'zh-cn'))->find()->toArray();
  13. $options['option_l']=$lang;
  14. unset($options['option_id']);
  15. self::create($options);
  16. }
  17. $options=json_decode($options['option_value'],true);
  18. $options=array_merge($sys,$options);
  19. cache($type.'_'.$lang,$options);

Call Stack

  1. in Options.php line 126
  2. at Options::get_options('site_options', 'en_us') in Base.php line 24
  3. at Base->_initialize() in Controller.php line 56
  4. at Controller->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  6. at App::invokeClass('app\home\controller\...') in Loader.php line 420
  7. at Loader::controller('Index', 'controller', false, 'Error') in App.php line 386
  8. at App::module(['home', 'Index', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['home', 'Index', 'index'], 'convert' => false], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 18
  11. at require('/www/wwwroot/lybmc.c...') in index.php line 18

Environment Variables

GET Data

lang
en_us
POST Data
empty
Files
empty

Cookies

think_var
en_us
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/?lang=en_us
QUERY_STRING
lang=en_us
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
62109
SCRIPT_FILENAME
/www/wwwroot/juhua557256.cn/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/juhua557256.cn
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/juhua557256.cn
REMOTE_ADDR
154.220.89.86
SERVER_PORT
80
SERVER_ADDR
192.168.1.55
SERVER_NAME
juhua557256.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at juhua557256.cn Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_FORWARDED_FOR
66.166.87.220
HTTP_CLIENT_IP
61.104.135.196
HTTP_REFERER
http://juhua557256.cn/?lang=en_us
HTTP_ACCEPT_ENCODING
gzip,deflate
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_HOST
juhua557256.cn
proxy-nokeepalive
1
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1565663466.7929
REQUEST_TIME
1565663466
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/juhua557256.cn/app/
RUNTIME_PATH
/www/wwwroot/juhua557256.cn/data/runtime/
THINK_VERSION
5.0.7
THINK_START_TIME
1565663466.7932
THINK_START_MEM
377688
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/juhua557256.cn/thinkphp/
LIB_PATH
/www/wwwroot/juhua557256.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/juhua557256.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/juhua557256.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/juhua557256.cn/
EXTEND_PATH
/www/wwwroot/juhua557256.cn/extend/
VENDOR_PATH
/www/wwwroot/juhua557256.cn/vendor/
LOG_PATH
/www/wwwroot/juhua557256.cn/data/runtime/log/
CACHE_PATH
/www/wwwroot/juhua557256.cn/data/runtime/cache/
TEMP_PATH
/www/wwwroot/juhua557256.cn/data/runtime/temp/
CONF_PATH
/www/wwwroot/juhua557256.cn/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
ADDON_PATH
/www/wwwroot/juhua557256.cn/addons/
__ROOT__
MODULE_NAME
home
CONTROLLER_NAME
Index
ACTION_NAME
index
http://2dt2s7.juhua557256.cn| http://lhw2zc.juhua557256.cn| http://34w7237.juhua557256.cn| http://m27880t.juhua557256.cn| http://mwnx.juhua557256.cn| http://ck8bikp5.juhua557256.cn| http://zoc5.juhua557256.cn| http://3co50a00.juhua557256.cn| http://sbv4lqzp.juhua557256.cn| http://4t8gd.juhua557256.cn