[8] ErrorException in Images.php line 32

getimagesize(): Read error!

  1. $image_new = utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . (int)$width . 'x' . (int)$height . '.' . $extension;
  2. $image_new = str_replace('/static/catalog/images','/static/catalog/images/cache', $image_new);
  3. /*7-10新增*/
  4. $real_image_old = $image_dir . '/' .$basename;
  5. $real_image_new = utf8_substr($basename, 0, utf8_strrpos($basename, '.')) . '-' . (int)$width . 'x' . (int)$height . '.' . $extension;
  6. $real_image_new = $image_dir . '/cache/' .$real_image_new;
  7. /*7-10新增结束*/
  8. if (!is_file($real_image_new) || (filemtime($real_image_old) > filemtime($real_image_new))) {
  9. list($width_orig, $height_orig, $image_type) = getimagesize($real_image_old);
  10. if (!in_array($image_type, [IMAGETYPE_PNG, IMAGETYPE_JPEG, IMAGETYPE_GIF, IMAGETYPE_WEBP])) {
  11. return $image_old;
  12. }
  13. $path = '';
  14. $directories = explode('/', dirname($real_image_new));

Call Stack

  1. in Images.php line 32
  2. at Error::appError(8, 'getimagesize(): Read...', '/www/wwwroot/paolapa...', 32, ['filename' => '/static/catalog/imag...', 'width' => 330, 'height' => 440, ...])
  3. at getimagesize('/home/www/product/Ha...') in Images.php line 32
  4. at Images->resize('/static/catalog/imag...', 330, 440) in Collection.php line 341
  5. at Collection->getProductImage('/static/catalog/imag...') in Collection.php line 202
  6. at Collection->getManualProducts('472,680,745,751,907,...', 1, []) in Productblock.php line 73
  7. at Productblock->index(['module_id' => '538', 'name' => '首页展示产品', 'heading_title' => 'Prodotti Caldi', ...]) in ContentRightBottom.php line 67
  8. at ContentRightBottom->index() in Index.php line 23
  9. at Index->index()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  11. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 131
  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 136
  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
Session
think { "theme_dir": "ella" }
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 23692
SCRIPT_FILENAME /www/wwwroot/paolapacifico.it/public/index.php
SERVER_ADMIN [email protected]
CONTEXT_DOCUMENT_ROOT /www/wwwroot/paolapacifico.it/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/paolapacifico.it/public
REMOTE_ADDR 172.70.34.225
SERVER_PORT 80
SERVER_ADDR 209.74.108.18
SERVER_NAME www.paolapacifico.it
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.paolapacifico.it Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 3.80.173.25
HTTP_REFERER https://paolapacifico.it/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 86bfaa11db7359b0-IAD
HTTP_X_FORWARDED_FOR 3.80.173.25
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.paolapacifico.it
proxy-nokeepalive 1
SCRIPT_URI http://www.paolapacifico.it/
SCRIPT_URL /
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711713257.3718
REQUEST_TIME 1711713257
Environment Variablesempty
ThinkPHP Constants
UC_CONNECT mysql
UC_DBHOST localhost
UC_DBUSER root
UC_DBPW root
UC_DBNAME ucenter
UC_DBCHARSET utf8
UC_DBTABLEPRE `ucenter`.uc_
UC_DBCONNECT 0
UC_KEY ceshi_ss
UC_API http://localhost/ucenter
UC_CHARSET utf-8
UC_IP
UC_APPID 1
UC_PPP 20