You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wenn meine CacheDir auf einer Lokalen Installation (xampp) falsch ist bekomme ich eine Exception, jedoch hab ich keine auf einem richtigen Server bekommen. Deshalb musste ich ein paar Echos einbauen. Vielleicht hilft das ja ein paar Leute die ebenfalls einen 500 Error bekommen haben und keine richtigen Exceptions bekommen haben. Ich habe auf dem Server einen eigenen Cache Ordner benutzt, da es mit Default Einstellungen(system temp directory) nicht funktioniert hat(ebenfalls keine richtigen Exceptions nur 500 Error).
public function setCacheDir($cacheDir)
{
if ($cacheDir !== null) {
if (!is_dir($cacheDir)) {
echo'cache dir not found';
throw new Exception\InvalidArgumentException(
"Cache directory '{$cacheDir}' not found or not a directory"
);
} elseif (!is_writable($cacheDir)) {
echo'cache dir not writable';
throw new Exception\InvalidArgumentException(
"Cache directory '{$cacheDir}' not writable"
);
} elseif (!is_readable($cacheDir)) {
echo'cache dir not readable';
throw new Exception\InvalidArgumentException(
"Cache directory '{$cacheDir}' not readable"
);
}
$cacheDir = rtrim(realpath($cacheDir), DIRECTORY_SEPARATOR);
} else {
echo $cacheDir;
$cacheDir = sys_get_temp_dir();
}
$this->triggerOptionEvent('cache_dir', $cacheDir);
$this->cacheDir = $cacheDir;
return $this;
}
The text was updated successfully, but these errors were encountered:
Wenn meine CacheDir auf einer Lokalen Installation (xampp) falsch ist bekomme ich eine Exception, jedoch hab ich keine auf einem richtigen Server bekommen. Deshalb musste ich ein paar Echos einbauen. Vielleicht hilft das ja ein paar Leute die ebenfalls einen 500 Error bekommen haben und keine richtigen Exceptions bekommen haben. Ich habe auf dem Server einen eigenen Cache Ordner benutzt, da es mit Default Einstellungen(system temp directory) nicht funktioniert hat(ebenfalls keine richtigen Exceptions nur 500 Error).
public function setCacheDir($cacheDir)
{
The text was updated successfully, but these errors were encountered: