filp/whoops · error · InvalidArgumentException
'$path' is not a valid directory
Error message
'$path' is not a valid directory
What it means
Error "'$path' is not a valid directory" thrown in filp/whoops.
Source
Thrown at src/Whoops/Handler/PrettyPageHandler.php:638
*/
public function getPageTitle()
{
return $this->pageTitle;
}
/**
* Adds a path to the list of paths to be searched for resources.
*
* @param string $path
*
* @throws InvalidArgumentException If $path is not a valid directory
*
* @return static
*/
public function addResourcePath($path)
{
if (!is_dir($path)) {
throw new InvalidArgumentException(
"'$path' is not a valid directory"
);
}
array_unshift($this->searchPaths, $path);
return $this;
}
/**
* Adds a custom css file to be loaded.
*
* @param string|null $name
*
* @return static
*/
public function addCustomCss($name)
{
$this->customCss = $name;View on GitHub (pinned to fa1bc9c95a)
When it happens
Trigger: Thrown at src/Whoops/Handler/PrettyPageHandler.php:638 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filp/whoops@fa1bc9c95a (2026-08-21).
Data as JSON: /api/errors/96dce820badbf425.
Report an issue: GitHub.