{"record":{"id":"3bad82c2d7498a41","repo":"Intervention/image","slug":"file-path-contained-in-splfileinfo-is-not-read","errorCode":null,"errorMessage":"File \"{path}\" contained in SplFileInfo is not readable","messagePattern":"File \"(.+?)\" contained in SplFileInfo is not readable","errorType":"exception","errorClass":"Intervention\\Image\\Exceptions\\FileNotReadableException","httpStatus":null,"severity":"error","filePath":"src/Traits/CanParseFilePath.php","lineNumber":119,"sourceCode":"            throw new FileNotFoundException(\n                'File \"' . $basename . '\" contained in SplFileInfo was not found in directory \"' . $dirname . '\"',\n            );\n        }\n\n        if (!is_file($path)) {\n            throw new FileNotFoundException(\n                'File \"' . $basename . '\" contained in SplFileInfo is no file in directory \"' . $dirname . '\"',\n            );\n        }\n\n        if (!is_readable($dirname)) {\n            throw new FileNotReadableException(\n                'Directory \"' . $dirname . '\" contained in SplFileInfo is not readable',\n            );\n        }\n\n        if (!is_readable($path)) {\n            throw new FileNotReadableException(\n                'File \"' . $path . '\" contained in SplFileInfo is not readable',\n            );\n        }\n\n        $realpath = $splFileInfo->getRealPath();\n\n        if ($realpath === false) {\n            throw new FileNotReadableException('Failed to read file \"' . $path . '\" from ' . SplFileInfo::class);\n        }\n\n        return $realpath;\n    }\n}\n","sourceCodeStart":101,"sourceCodeEnd":133,"githubUrl":"https://github.com/Intervention/image/blob/5598b9e39751c34afc5cdee84abef77f92c26f68/src/Traits/CanParseFilePath.php#L101-L133","documentation":"Error \"File \"{path}\" contained in SplFileInfo is not readable\" thrown in Intervention/image.","triggerScenarios":"Thrown at src/Traits/CanParseFilePath.php:119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check is_readable($path) and fix file permissions/ownership","Make sure the file still exists and is not locked by another process","Respect open_basedir restrictions in php.ini when reading outside the web root"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5598b9e39751c34afc5cdee84abef77f92c26f68","analyzedAt":"2026-08-23T02:17:31.068Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}