XF 2.2 Image Proxy Errors

MattW

Well-known member
Not really sure what's happening with these, but over the last month, I've started to see these on one of the sites I help with:

Code:
ErrorException: [E_WARNING] filesize(): stat failed for /home/XXXXXX/public_html/internal_data/temp/0037e1d721c633f775360187e72e5b17-6392ede342946.temp src/XF/Service/ImageProxy.php:174
Generated by: Unknown account Dec 9, 2022 at 8:12 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/home/XXXXXX...', 174)
#1 src/XF/Service/ImageProxy.php(174): filesize('/home/XXXXXX...')
#2 src/XF/Service/ImageProxy.php(104): XF\Service\ImageProxy->fetchImageDataFromUrl('https://pbs.twi...')
#3 src/XF/Service/ImageProxy.php(39): XF\Service\ImageProxy->refetchImage(Object(XF\Entity\ImageProxy))
#4 src/XF/Proxy/Controller.php(122): XF\Service\ImageProxy->getImage('https://pbs.twi...')
#5 proxy.php(34): XF\Proxy\Controller->outputImage('https://pbs.twi...', '5bf8cbc639261b8...')
#6 {main}
Request state
array(4) {
  ["url"] => string(110) "/proxy.php?image=https:%2F%2Fpbs.twimg.com%2Fmedia%2FC42z1ZMWQAEG1Lv.jpg&hash=5bf8cbc639261b8d87414db18be93bc7"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["image"] => string(47) "https://pbs.twimg.com/media/C42z1ZMWQAEG1Lv.jpg"
    ["hash"] => string(32) "5bf8cbc639261b8d87414db18be93bc7"
  }
  ["_POST"] => array(0) {
  }
}

The files it's trying to access in /temp/ doesn't exist:

Code:
# ll
total 68
-rw-r--r--. 1 XXXXXX XXXXXX 25845 Dec  6 17:59 1a05b5750cfede27b4fcc7b0eb9ce8ca-638f8305c3c2b.temp
-rw-r--r--. 1 XXXXXX XXXXXX 15784 Dec  7 06:44 8683f825dbd697b54b184a127c122ace-63903645153e1.temp
-rw-r--r--. 1 XXXXXX XXXXXX 15784 Dec  7 06:44 e4a8c30d4cf94d52522ed810aaa42200-6390364515a3e.temp
-rw-r--r--. 1 XXXXXX XXXXXX     1 Dec  8  2014 index.html
drwxr-xr-x. 3 XXXXXX XXXXXX  4096 May 18  2016 Upload
 
Top Bottom