[2] ErrorException in Channel.php line 48

array_merge(): Expected parameter 2 to be an array, string given

  1. $orderway = $this->request->get('orderway', '');
  2. $multiple = $this->request->get('multiple/d', 0);
  3. $orderway = $orderway && in_array(strtolower($orderway), ['asc', 'desc']) ? $orderway : 'desc';
  4. $params = [];
  5. $filter = $this->request->get();
  6. $filter = array_diff_key($filter, array_flip(['orderby', 'orderway', 'page', 'multiple']));
  7. if (isset($filter['filter'])) {
  8. $filter = array_merge($filter, $filter['filter']);
  9. unset($filter['filter']);
  10. }
  11. if ($filter) {
  12. $filter = array_filter($filter, 'strlen');
  13. $params['filter'] = $filter;
  14. $params = $filter;
  15. }
  16. if ($orderby) {
  17. $params['orderby'] = $orderby;

Call Stack

  1. in Channel.php line 48
  2. at Error::appError(2, 'array_merge(): Expec...', 'D:\wwwroot\fcled.com...', 48, ['config' => ['system_user_id' => '1', 'sitename' => '...', 'sitelogo' => '/assets/addons/cms/i...', ...], 'diyname' => 'LEDShowcaseLighting', 'channel' => object(Channel), ...])
  3. at array_merge(['filter' => ''], '') in Channel.php line 48
  4. at Channel->index()
  5. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 78
  6. at Route->execute('cms', 'channel', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['filter' => '', 'page' => '2', 'diyname' => 'LEDShowcaseLighting', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('D:\wwwroot\fcled.com...') in index.php line 23

Environment Variables

GET Data

filter
page
2
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\WINDOWS\system32\config\systemprofile\AppData\Roaming
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
172_17_0_2
ComSpec
C:\WINDOWS\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LCOW_SUPPORTED
1
LOCALAPPDATA
C:\WINDOWS\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\WINDOWS\system32;D:\zktime\zkeco_dlls\;D:\zktime\Python3\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\QCloud\Monitor\Barad;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\python;C:\Program Files\python\Scripts;D:\BtSoft\panel\script;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_FCGI_MAX_REQUESTS
3000
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5e03
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;C:\Program Files (x86)\Microsoft SQL Server\150\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
172_17_0_2$
USERPROFILE
C:\WINDOWS\system32\config\systemprofile
windir
C:\WINDOWS
HTTP_HOST
fcled.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
fcled.com
SERVER_PORT
443
SERVER_ADDR
172.17.0.2
REMOTE_PORT
51058
REMOTE_ADDR
3.236.219.157
SERVER_SOFTWARE
nginx/1.21.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:/wwwroot/fcled.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/LEDShowcaseLighting.html?filter=&page=2
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/LEDShowcaseLighting.html&filter=&page=2
PATH_INFO
/LEDShowcaseLighting.html
SCRIPT_FILENAME
D:/wwwroot/fcled.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711624407.6818
REQUEST_TIME
1711624407
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\fcled.com\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711624407.6847
THINK_START_MEM
410176
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\fcled.com\thinkphp\
LIB_PATH
D:\wwwroot\fcled.com\thinkphp\library\
CORE_PATH
D:\wwwroot\fcled.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\fcled.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\fcled.com\
EXTEND_PATH
D:\wwwroot\fcled.com\extend\
VENDOR_PATH
D:\wwwroot\fcled.com\vendor\
RUNTIME_PATH
D:\wwwroot\fcled.com\runtime\
LOG_PATH
D:\wwwroot\fcled.com\runtime\log\
CACHE_PATH
D:\wwwroot\fcled.com\runtime\cache\
TEMP_PATH
D:\wwwroot\fcled.com\runtime\temp\
CONF_PATH
D:\wwwroot\fcled.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
FILTER_VALIDATE_BOOL
258
ADDON_PATH
D:\wwwroot\fcled.com\addons\