#0 [0]Error in Cms.php line 62

Call to a member function toArray() on null

  1. * @param string $tableName
  2. */
  3. public function getInfo(string $id, string $tableName)
  4. {
  5. $modelName = $this->getModelName($tableName);
  6. if (empty($modelName)) {
  7. return false;
  8. }
  9. $model = '\app\common\model\\' . $modelName;
  10. $info = $model::edit($id)->toArray();
  11. // 获取字段信息
  12. $info = $this->changeInfo($tableName, $info);
  13. return $info;
  14. }
  15. /**
  16. * 获取内容页面TDK
  17. * @param $info 内容
  18. * @param $cate 栏目

Call Stack

  1. in Cms.php line 62
  2. at Cms->getInfo('19', 'product')
  3. at call_user_func_array([object(Cms), 'getInfo'], ['19', 'product']) in Facade.php line 96
  4. at Facade::__callStatic('getInfo', ['19', 'product']) in Error.php line 87
  5. at Error->info('19')
  6. at ReflectionMethod->invokeArgs(object(Error), ['19']) in Container.php line 342
  7. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['id' => '19']) in Controller.php line 110
  8. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  9. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  10. at Pipeline->then(object(Closure)) in Controller.php line 113
  11. at Controller->exec() in Dispatch.php line 89
  12. at Dispatch->run() in Route.php line 760
  13. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  14. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  15. at Pipeline->then(object(Closure)) in Route.php line 761
  16. at Route->dispatch(object(Request), object(Closure)) in Http.php line 210
  17. at Http->dispatchToRoute(object(Request)) in Http.php line 200
  18. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  19. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  20. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  22. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  23. at MultiApp->handle(object(Request), object(Closure))
  24. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  25. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  26. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  27. at SessionInit->handle(object(Request), object(Closure))
  28. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  29. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  30. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  31. at Pipeline->then(object(Closure)) in Http.php line 201
  32. at Http->runWithRequest(object(Request)) in Http.php line 162
  33. at Http->run() in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-6298bf6f-d5ff-44d8-bf50-a6a866841d40
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\condiner\condiner.config
APP_POOL_ID condiner
CLOUDOCSERVICE_DATAPATH D:\CloudocServerData\
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-I6K2ENL81M8
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 4
OneDrive C:\Windows\system32\config\systemprofile\OneDrive
OS Windows_NT
Path C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;D:\Server\Java\bin;C:\Program Files (x86)\AiMiCloudS\Web\Php;C:\Program Files\Microsoft\Web Platform Installer\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;D:\php7.3;D:\php5;D:\mysql\bin\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
phpext D:\php5\ext;D:\php7.3\ext
PHPRC D:\php5;D:\php7.3\ext
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f01
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
USERDOMAIN WORKGROUP
USERNAME WIN-I6K2ENL81M8$
USERPROFILE C:\Windows\system32\config\systemprofile
VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
windir C:\Windows
ORIG_PATH_INFO /index.php/index/zt/19.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/8.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME condiner.com.cn
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\condiner\index.php
REQUEST_URI /index/zt/19.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 56908
REMOTE_HOST 3.237.65.102
REMOTE_ADDR 3.237.65.102
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\condiner\index.php\index\zt\19.html
PATH_INFO /index/zt/19.html
LOGON_USER
LOCAL_ADDR 172.16.25.1
INSTANCE_META_PATH /LM/W3SVC/2
INSTANCE_NAME CONDINER
INSTANCE_ID 2
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\condiner
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\wwwroot\condiner\
APPL_MD_PATH /LM/W3SVC/2/ROOT
IIS_UrlRewriteModule 7,1,1993,2351
WEBSOCKET_VERSION 13
UNENCODED_URL /index/zt/19.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/zt/19.html
HTTP_USER_AGENT claudebot
HTTP_HOST condiner.com.cn
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/zt/19.html
REQUEST_TIME_FLOAT 1711629081.4245
REQUEST_TIME 1711629081