[8] ErrorException in common.php line 308

未定义变量: url

  1. //$home_rote[''.$v['catdir'].'-:catId/:id'] = 'home/'.$v['catdir'].'/index';
  2. $cate = Db::name('cate')->field('id,catdir,moduleid')->where('id',$v['catid'])->find();
  3. $moduleurl = Db::name('module')->where('id',$cate['moduleid'])->value('name');
  4. if($cate['catdir']){
  5. $url = url(request()->module().'/'.$cate['catdir'].'/info', ['catId'=>$cate['id'],'id'=>$v['id']]);
  6. }else{
  7. $url = url(request()->module().'/'.$moduleurl.'/info', ['catId'=>$cate['id'],'id'=>$v['id']] );
  8. }
  9. }
  10. return $url;
  11. }
  12. //获取所有模版
  13. function getTemplate(){
  14. //查找设置的模版
  15. $system = Db::name('system')->where('id',1)->find();
  16. $path = './template/home/'.$system['template'].'/'.$system['html'].'/';
  17. $tpl['list'] = get_file_folder_List($path , 2, '*_list*');
  18. $tpl['show'] = get_file_folder_List($path , 2, '*_show*');

Call Stack

  1. in common.php line 308
  2. at Error::appError(8, 'Undefined variable: ...', '/data/sxtgsw.com/app...', 308, ['v' => null]) in common.php line 308
  3. at getShowUrl(null) in Error.php line 110
  4. at Error->info()
  5. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['catId' => '22', 'id' => '28', 'convert' => false]) in Module.php line 131
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. 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 sxtgsw.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME sxtgsw.com
SERVER_PORT 80
SERVER_ADDR 172.16.0.17
REMOTE_PORT 55244
REMOTE_ADDR 34.229.223.223
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/sxtgsw.com/public
DOCUMENT_URI /index.php
REQUEST_URI /plant-22/28.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/plant-22/28.html
SCRIPT_FILENAME /data/sxtgsw.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710841190.6433
REQUEST_TIME 1710841190
Environment Variablesempty
ThinkPHP Constants
ADDON_PATH /data/sxtgsw.com/addons/