[2] ErrorException in 4fcfa78c1057bb032b7cab7febf19910.php line 125

Invalid argument supplied for foreach()

  1. <h3><?php echo htmlentities($pid['name']); ?></h3>
  2. </div>
  3. </div>
  4. </div>
  5. <div class="column">
  6. <div class="inner">
  7. <div class="wrap">
  8. <div class="lanmu fl">
  9. <ol>
  10. <?php foreach($cateTrees as $vo): ?>
  11. <li class="<?php if($vo['id']==$findCate['id']): ?>on<?php endif; ?>"><a href="<?php echo htmlentities($vo['url']); ?>"><?php echo htmlentities($vo['name']); ?></a></li>
  12. <?php endforeach; ?>
  13. </ol>
  14. </div>
  15. <div class="wezh fr">当前位置: <a href="/">网站首页</a> <?php foreach($location as $vo): ?>
  16. &gt; <a href="<?php echo htmlentities($vo['url']); ?>"><?php echo htmlentities($vo['name']); ?></a> <?php endforeach; ?> </div>
  17. </div>
  18. </div>
  19. </div>

Call Stack

  1. in 4fcfa78c1057bb032b7cab7febf19910.php line 125
  2. at Error::appError(2, 'Invalid argument sup...', '/www/wwwroot/mepo188...', 125, ['cacheFile' => '/www/wwwroot/mepo188...', 'vars' => ['sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], 'action' => 'lists', 'controller' => 'news', ...], 'sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], ...]) in 4fcfa78c1057bb032b7cab7febf19910.php line 125
  3. at include('/www/wwwroot/mepo188...') in File.php line 59
  4. at File->read('/www/wwwroot/mepo188...', ['sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], 'action' => 'lists', 'controller' => 'news', ...]) in Template.php line 226
  5. at Template->fetch('/www/wwwroot/mepo188...', ['sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], 'action' => 'lists', 'controller' => 'news', ...], []) in Think.php line 93
  6. at Think->fetch('/www/wwwroot/mepo188...', ['sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], 'action' => 'lists', 'controller' => 'news', ...], []) in View.php line 189
  7. at View->fetch('shop', ['sys' => ['id' => 1, 'name' => '...', 'url' => 'http://baidu.com', ...], 'action' => 'lists', 'controller' => 'news', ...], []) in Controller.php line 161
  8. at Controller->fetch('shop') in News.php line 204
  9. at News->lists()
  10. at ReflectionMethod->invokeArgs(object(News), []) in Container.php line 395
  11. at Container->invokeReflectMethod(object(News), object(ReflectionMethod), ['id' => '42', 'convert' => false]) in Module.php line 132
  12. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  17. at Module->exec() in Dispatch.php line 168
  18. at Dispatch->run() in App.php line 432
  19. at App->think\{closure}(object(Request), object(Closure), null)
  20. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  21. at Middleware->think\{closure}(object(Request))
  22. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  23. at Middleware->dispatch(object(Request)) in App.php line 435
  24. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.mepo188.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME mepo188.com
SERVER_PORT 80
SERVER_ADDR 172.17.80.68
REMOTE_PORT 47070
REMOTE_ADDR 3.92.84.253
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/mepo188.com/public
DOCUMENT_URI /index.php
REQUEST_URI /lists/42
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/lists/42
SCRIPT_FILENAME /www/wwwroot/mepo188.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711698883.3786
REQUEST_TIME 1711698883
Environment Variablesempty
ThinkPHP Constants
MAX_MENU_LENGTH 3
MAX_SUB_MENU_LENGTH 5
MODULE_NAME news
ACTION_NAME lists