{"record":{"id":"182d69f2f52af70c","repo":"filp/whoops","slug":"could-not-find-resource-resource-in-any-resourc","errorCode":null,"errorMessage":"Could not find resource '$resource' in any resource paths.(searched: join(\", \", $this->searchPaths))","messagePattern":"Could not find resource '\\$resource' in any resource paths\\.\\(searched: join\\(\", \", \\$this->searchPaths\\)\\)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/Whoops/Handler/PrettyPageHandler.php","lineNumber":715,"sourceCode":"        // by caching its absolute, resolved path:\n        if (isset($this->resourceCache[$resource])) {\n            return $this->resourceCache[$resource];\n        }\n\n        // Search through available search paths, until we find the\n        // resource we're after:\n        foreach ($this->searchPaths as $path) {\n            $fullPath = $path . \"/$resource\";\n\n            if (is_file($fullPath)) {\n                // Cache the result:\n                $this->resourceCache[$resource] = $fullPath;\n                return $fullPath;\n            }\n        }\n\n        // If we got this far, nothing was found.\n        throw new RuntimeException(\n            \"Could not find resource '$resource' in any resource paths.\"\n            . \"(searched: \" . join(\", \", $this->searchPaths). \")\"\n        );\n    }\n\n    /**\n     * @deprecated\n     *\n     * @return string\n     */\n    public function getResourcesPath()\n    {\n        $allPaths = $this->getResourcePaths();\n\n        // Compat: return only the first path added\n        return end($allPaths) ?: null;\n    }\n","sourceCodeStart":697,"sourceCodeEnd":733,"githubUrl":"https://github.com/filp/whoops/blob/fa1bc9c95a1b392fbdb8a410dbbcb1d6a030fff7/src/Whoops/Handler/PrettyPageHandler.php#L697-L733","documentation":"Error \"Could not find resource '$resource' in any resource paths.(searched: join(\", \", $this->searchPaths))\" thrown in filp/whoops.","triggerScenarios":"Thrown at src/Whoops/Handler/PrettyPageHandler.php:715 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa1bc9c95a1b392fbdb8a410dbbcb1d6a030fff7","analyzedAt":"2026-08-21T01:30:26.400Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}