[0] ThrowableError in common.php line 831

致命错误: Call to undefined function imagecreatefromwebp()

  1. if(!$picinfo){
  2. return $default;
  3. }
  4. $type = image_type_to_extension($picinfo[2],false);
  5. if($type == 'gif')
  6. {
  7. return $host.'/'.$img;
  8. }
  9. $fun = "imagecreatefrom{$type}";
  10. if(!@$fun($img)){
  11. return $default;
  12. }
  13. $newimg_dir = dirname($img).'/thumb/'.$w.'_'.$h;
  14. if(!is_dir($newimg_dir)){
  15. mkdir($newimg_dir,0777,true);
  16. }
  17. $newimg = $newimg_dir.'/'.basename($img);
  18. if(file_exists($newimg)) return $host.'/'.$newimg;
  19. $imgObj = \think\Image::open($img);

Call Stack

  1. in common.php line 831
  2. at thumb('uploads/image/202310...', 281, 198) in aac57df449aad26127a43903250fc2d4.php line 698
  3. at include('/home/www/tdw_tw/run...') in File.php line 59
  4. at File->read('/home/www/tdw_tw/run...', ['userInfo' => null, 'seo' => ['title' => '南區土地_土地', 'keys' => '南區土地_土地', 'desc' => ''], 'site' => ['status' => '1', 'reson' => '', 'date_status' => '1', ...], ...]) in Template.php line 226
  5. at Template->fetch('/home/www/tdw_tw/app...', ['userInfo' => null, 'seo' => ['title' => '南區土地_土地', 'keys' => '南區土地_土地', 'desc' => ''], 'site' => ['status' => '1', 'reson' => '', 'date_status' => '1', ...], ...], []) in Think.php line 93
  6. at Think->fetch('/home/www/tdw_tw/app...', ['userInfo' => null, 'seo' => ['title' => '南區土地_土地', 'keys' => '南區土地_土地', 'desc' => ''], 'site' => ['status' => '1', 'reson' => '', 'date_status' => '1', ...], ...], []) in View.php line 189
  7. at View->fetch('index', ['userInfo' => null, 'seo' => ['title' => '南區土地_土地', 'keys' => '南區土地_土地', 'desc' => ''], 'site' => ['status' => '1', 'reson' => '', 'date_status' => '1', ...], ...], []) in Controller.php line 161
  8. at Controller->fetch('index') in Land.php line 84
  9. at Land->index()
  10. at ReflectionMethod->invokeArgs(object(Land), []) in Container.php line 395
  11. at Container->invokeReflectMethod(object(Land), object(ReflectionMethod), ['alias' => 'nq', 'metro' => '0', 'line' => '0', ...]) 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
Cookies
city_id 14
city_ids think:["564","592","619","620","624","625","626","627","628","629","630","631","632","633","634","635","636","637","638","639","640","641","642","643","644","645","646","647","648","649","650","651","652","653","654","655","656","14"]
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST tdw.tw
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME tdw.tw
SERVER_PORT 80
SERVER_ADDR 192.168.2.199
REMOTE_PORT 59452
REMOTE_ADDR 54.144.81.21
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/www/tdw_tw/public
DOCUMENT_URI /index.php
REQUEST_URI /tainanshi/land/nq-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/tainanshi/land/nq-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0/
SCRIPT_FILENAME /home/www/tdw_tw/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711673770.4983
REQUEST_TIME 1711673770
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.7
QR_MODE_NUL -1
QR_MODE_NUM 0
QR_MODE_AN 1
QR_MODE_8 2
QR_MODE_KANJI 3
QR_MODE_STRUCTURE 4
QR_ECLEVEL_L 0
QR_ECLEVEL_M 1
QR_ECLEVEL_Q 2
QR_ECLEVEL_H 3
QR_FORMAT_TEXT 0
QR_FORMAT_PNG 1
QR_CACHEABLE false
QR_CACHE_DIR false
QR_LOG_DIR false
QR_FIND_BEST_MASK true
QR_FIND_FROM_RANDOM 2
QR_DEFAULT_MASK 2
QR_PNG_MAXIMUM_SIZE 1024
QRSPEC_VERSION_MAX 40
QRSPEC_WIDTH_MAX 177
QRCAP_WIDTH 0
QRCAP_WORDS 1
QRCAP_REMINDER 2
QRCAP_EC 3
QR_IMAGE true
STRUCTURE_HEADER_BITS 20
MAX_STRUCTURED_SYMBOLS 16
N1 3
N2 3
N3 40
N4 10