[2] ErrorException in Infodata.php line 22

Invalid argument supplied for foreach()

  1. //公共接口
  2. public function com($info,$catid){
  3. $modelid = get_catinfo($catid,'modelid');
  4. if($modelid){
  5. $modelfields = Db::name('model_field')->where('modelid',$modelid)->field('field,type,setting')->select();
  6. foreach($modelfields as $mf){
  7. $fields[$mf['field']] = $mf;
  8. }
  9. $filter = array('editor','image');
  10. foreach($info as $field=>$value){
  11. if(isset($fields[$field]['type'])){
  12. if(in_array($fields[$field]['type'],$filter) && !empty($value)){
  13. $fun = $fields[$field]['type'];
  14. $result = $this->$fun($value,$fields[$field]['setting']);
  15. $info[$field] = $result['information'];
  16. $info['pages'] = $result['pages'];
  17. }
  18. }
  19. }

Call Stack

  1. in Infodata.php line 22
  2. at Error::appError(2, 'Invalid argument sup...', 'D:\wwwroot\www.lands...', 22, ['info' => null, 'catid' => 180, 'modelid' => 1, ...]) in Infodata.php line 22
  3. at Infodata->com(null, 180) in Index.php line 42
  4. at Index->show(0, '135')
  5. at ReflectionMethod->invokeArgs(object(Index), [0, '135']) in App.php line 343
  6. at App::invokeMethod([object(Index), 'show'], []) in App.php line 611
  7. at App::module([null, 'index', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => [null, 'index', 'show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('D:\wwwroot\www.lands...') in index.php line 16

Exception Datas

Error Context
info Resource
catid 180
modelid 1
modelfields [ { "field": "title", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, { "field": "keywords", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, { "field": "thumb", "type": "image", "setting": "{\"showtype\":\"tupian\",\"uptype\":\"dan\",\"paging\":\"0\",\"imageonline\":\"0\",\"search\":\"0\",\"isthumb\":\"0\",\"thumb_width\":\"100\",\"thumb_height\":\"100\",\"thumb_type\":\"6\",\"iswater\":\"0\",\"water_type\":\"9\"}" }, { "field": "content", "type": "editor", "setting": "{\"style\":\"biaozhun\",\"imageonline\":\"0\",\"fileonline\":\"0\",\"search\":\"0\"}" }, { "field": "inputtime", "type": "datetime", "setting": "{\"type\":\"datetime\"}" }, { "field": "reid", "type": "recommend", "setting": "{\"modelid\":\"1\"}" }, { "field": "fbt", "type": "text", "setting": "{\"width\":\"\",\"value\":\"\"}" }, { "field": "jianshu", "type": "textarea", "setting": "{\"width\":\"500\",\"height\":\"150\",\"value\":\"\"}" }, { "field": "wblj", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, { "field": "waptitle", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, { "field": "wapkeywords", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" } ]
mf { "field": "wapkeywords", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }
fields { "title": { "field": "title", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, "keywords": { "field": "keywords", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, "thumb": { "field": "thumb", "type": "image", "setting": "{\"showtype\":\"tupian\",\"uptype\":\"dan\",\"paging\":\"0\",\"imageonline\":\"0\",\"search\":\"0\",\"isthumb\":\"0\",\"thumb_width\":\"100\",\"thumb_height\":\"100\",\"thumb_type\":\"6\",\"iswater\":\"0\",\"water_type\":\"9\"}" }, "content": { "field": "content", "type": "editor", "setting": "{\"style\":\"biaozhun\",\"imageonline\":\"0\",\"fileonline\":\"0\",\"search\":\"0\"}" }, "inputtime": { "field": "inputtime", "type": "datetime", "setting": "{\"type\":\"datetime\"}" }, "reid": { "field": "reid", "type": "recommend", "setting": "{\"modelid\":\"1\"}" }, "fbt": { "field": "fbt", "type": "text", "setting": "{\"width\":\"\",\"value\":\"\"}" }, "jianshu": { "field": "jianshu", "type": "textarea", "setting": "{\"width\":\"500\",\"height\":\"150\",\"value\":\"\"}" }, "wblj": { "field": "wblj", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, "waptitle": { "field": "waptitle", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" }, "wapkeywords": { "field": "wapkeywords", "type": "text", "setting": "{\"width\":\"500\",\"value\":\"\"}" } }
filter [ "editor", "image" ]

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-3a18aa30-70eb-403f-a8f2-f0c20623cce4
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\www.landsongbio.com\www.landsongbio.com.config
APP_POOL_ID
www.landsongbio.com
BT_PANEL
D:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
INSTANCE-P6B5BJ
ComSpec
C:\Windows\system32\cmd.exe
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
2
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;D:\BtSoft\sqlserver\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;D:\BtSoft\sqlserver\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\BtSoft\sqlserver\Program Files\Microsoft SQL Server\110\DTS\Binn\;D:\BtSoft\sqlserver\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;D:\BtSoft\sqlserver\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;D:\BtSoft\sqlserver\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
INSTANCE-P6B5BJ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/DiseasePest_BioPhysicalcontrol/135.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.landsongbio.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\www.landsongbio.com\index.php
REQUEST_URI
/DiseasePest_BioPhysicalcontrol/135.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
42858
REMOTE_HOST
34.228.168.200
REMOTE_ADDR
34.228.168.200
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\www.landsongbio.com\index.php\DiseasePest_BioPhysicalcontrol\135.html
PATH_INFO
/DiseasePest_BioPhysicalcontrol/135.html
LOGON_USER
LOCAL_ADDR
172.16.0.4
INSTANCE_META_PATH
/LM/W3SVC/26
INSTANCE_NAME
WWW.LANDSONGBIO.COM
INSTANCE_ID
26
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\www.landsongbio.com
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\www.landsongbio.com\
APPL_MD_PATH
/LM/W3SVC/26/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/DiseasePest_BioPhysicalcontrol/135.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/DiseasePest_BioPhysicalcontrol/135.html
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.landsongbio.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/DiseasePest_BioPhysicalcontrol/135.html
REQUEST_TIME_FLOAT
1711631606.797
REQUEST_TIME
1711631606
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\www.landsongbio.com/application/
IN_LFCMS
true
THINK_VERSION
5.0.13
THINK_START_TIME
1711631606.8639
THINK_START_MEM
271424
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\www.landsongbio.com\thinkphp\
LIB_PATH
D:\wwwroot\www.landsongbio.com\thinkphp\library\
CORE_PATH
D:\wwwroot\www.landsongbio.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\www.landsongbio.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\www.landsongbio.com\
EXTEND_PATH
D:\wwwroot\www.landsongbio.com\extend\
VENDOR_PATH
D:\wwwroot\www.landsongbio.com\vendor\
RUNTIME_PATH
D:\wwwroot\www.landsongbio.com\runtime\
LOG_PATH
D:\wwwroot\www.landsongbio.com\runtime\log\
CACHE_PATH
D:\wwwroot\www.landsongbio.com\runtime\cache\
TEMP_PATH
D:\wwwroot\www.landsongbio.com\runtime\temp\
CONF_PATH
D:\wwwroot\www.landsongbio.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true