284万彩票

[0] ThrowableError in Index.php line 33

致命错误: Call to a member function themesvariable() on null

  1. parent::initialize();
  2. }
  3. //栏目
  4. public function page($id = 1,Cloumns $Cloumns)
  5. {
  6. $info = $Cloumns->get($id);
  7. //获取配置
  8. $variable = $info->themesvariable()->with(['themesVariableValue' => function($q) use ($id){
  9. $q->where('cloumns_id',$id);
  10. }])->select()->toArray();
  11. $variable_list = [];
  12. foreach ($variable as &$value) {
  13. if(!$value['is_public_value'] && isset($value['themes_variable_value'][0]['value']))
  14. $value['value'] = $value['themes_variable_value'][0]['value'];
  15. $variable_list[$value['name']] = $value['value'];
  16. }

Call Stack

  1. in Index.php line 33
  2. at Index->page('index', object(Cloumns))
  3. at ReflectionMethod->invokeArgs(object(Index), ['index', object(Cloumns)]) in Container.php line 372
  4. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => 'index']) in Module.php line 129
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 176
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 121
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 134
  10. at Module->exec() in Dispatch.php line 167
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 176
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 121
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
PATH D:\app\Administrator\product\11.2.0\client_1;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\instantclient\instantclient-basic-nt-18.3.0.0.0dbru;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\instantclient\instantclient-basic-nt-18.3.0.0.0dbru
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHP_FCGI_MAX_REQUESTS 1000
PHPRC D:/phpstudy/PHPTutorial/php/php-7.1.13-nts/
_FCGI_SHUTDOWN_EVENT_ 2344
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI //p/index.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /p/index.html
REMOTE_PORT 44376
SCRIPT_FILENAME D:/phpstudy/PHPTutorial/WWW/wwwroot/index.php
SERVER_ADMIN admin@php.cn
CONTEXT_DOCUMENT_ROOT D:/phpstudy/PHPTutorial/WWW/wwwroot
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT D:/phpstudy/PHPTutorial/WWW/wwwroot
REMOTE_ADDR 45.10.210.34
SERVER_PORT 80
SERVER_ADDR 172.31.192.8
SERVER_NAME www.cqgj.net
SERVER_SOFTWARE Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot C:\Windows
CONTENT_TYPE application/x-www-form-urlencoded
CONTENT_LENGTH 0
HTTP_ACCEPT_CHARSET utf-8
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST www.cqgj.net
REDIRECT_STATUS 200
REDIRECT_PATH_INFO p/index.html
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1565772750.5747
REQUEST_TIME 1565772750
Environment Variablesempty
ThinkPHP Constantsempty