Abhängigkeiten nicht gefunden
DOCUMENT_ROOT: {$_SERVER['DOCUMENT_ROOT']}Datei nicht gefunden: {$_SERVER['DOCUMENT_ROOT']}/../vendor/autoload.php
"; echo "Häufigste Ursache
public/ ist nicht als Wurzelverzeichnis verwendet worden.composer update installiert.DOCUMENT_ROOT{$_SERVER['DOCUMENT_ROOT']}Error" . $ex->getMessage() . ""; } use eftec\bladeone\BladeOne; /* Routing Script for PHP Dev Server */ $verbosity = VERBOSITY; if (preg_match('/\.(?:css|js|png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) { return false; } else { if ($verbosity > 1) { echo "
Verbosity-Level: {$verbosity}" .
"" . print_r($_SERVER, 1) . "
Request\n", print_r($request), ""; echo "
Path\n", print_r($path), ""; echo "
Query\n", print_r($query), ""; } } // fix: trim slashes $ctrlName = trim($ctrlName, '/'); $actionName = trim($actionName, '/'); // $config based renaming of Controller/Action, precedes filebased convention // $config values must use syntax
Routing Config matched request for /" . $ctrlName . "/" . $actionName . ":
routing config is
" . print_r($routingConfig, 1) . ''; } // important: overwriting controller and action name $ctrlClass = $routingConfig[0]; $actionName = $routingConfig[1]; } elseif (array_key_exists($request['path'], $config)) { // exact match on full path, this also means "/" $routingConfig = explode('@', $config[$request['path']]); if ($verbosity > 0) { echo "
Routing Config matched for full path " . $request['path'] . ":
routing config is
" . print_r($routingConfig, 1) . ''; } // important: overwriting controller and action name $ctrlClass = $routingConfig[0]; $actionName = $routingConfig[1]; } else { if ($verbosity > 0) { echo "Request $ctrlName/$actionName was not in \$config."; } // fall back to filebased convention: match controller classes in directory $ctrlClass = ucfirst($ctrlName . 'Controller'); } $ctrlFile = ($ctrlClass . '.php'); $validControllers = FrontController::getValidControllers($controllerDirectory); if (!in_array($controllerDirectory . $ctrlFile, $validControllers)) { if ($verbosity > 0) { echo "
Controller: $ctrlFile not found in
" . print_r($validControllers, 1) . "
Config Array:
" . print_r($config, 1) . "
" .
"Keine entspreche Zuordnung der Route für {$ctrlName}::{$actionName} gefunden. Tippfehler in der Route?" . "
Es konnte keine Klasse " . $ctrlFile . " gefunden werden! Request fehlgeschlagen.
" . " Prüfen Sie die Einträge in der Datei config/web.php und gleichen Sie den getätigten Aufruf damit ab.
Stellen Sie sicher, dass die Action/der Controller existiert.
Das Routing Config-Array hat " . count($config) . " Einträge.
Exception text
" . $ex->getMessage() . "
Verbindung fehlgeschlagen: " . mysqli_connect_error() . ".
config/db.php:
( ist Benutzer {$config['user']} an Datenbank {$config['database']} auf Server {$config['host']} korrekt?)Fehlermeldung" . mysqli_connect_error() . "", 2, true); exit(1); } return $link; } function view($viewname, $viewargs = array()) { $views = dirname(__DIR__) . '/views'; $cache = dirname(__DIR__) . '/storage/cache'; $blade = new BladeOne($views, $cache, BladeOne::MODE_DEBUG); return $blade->run($viewname, $viewargs); } /** * let the script die if the php minimum version is not met. * @param $minversion * @return void */ function assert_php_version($minversion = '8.0.0') { $version_too_low = 0; $minver = explode('.', $minversion); $version = explode('.', phpversion()); if (intval($minver[0]) > intval($version[0])) { $version_too_low = 1; } elseif (intval($minver[1]) > intval($version[1])) { $version_too_low = 1; } elseif (intval($minver[2]) > intval($version[2])) { $version_too_low = 1; } if ($version_too_low) { FrontController::showErrorMessage("Diese PHP-Version wird nicht unterstützt: Minimum PHP Version " . $minversion . "
Der Pfad " . $_SERVER['DOCUMENT_ROOT'] . " enthält " . $charsfound . " problematische Zeichen, die die korrekte Ausführung verhindern.
Bekannte problematische Zeichen sind
" . implode(" ", $chars) . " ");
exit(1);
}
}
function assert_blade(): void
{
if (!class_exists('eftec\bladeone\BladeOne')) {
// #ERROR
FrontController::showErrorMessage("
Tipps für die Lösung:
führen Sie im Terminal folgende Zeilen aus.
php bin/composer.phar update oder php bin/composer.phar reinstall eftec/bladeonephp bin/composer.phar dump-autoloadPrüfen Sie im Anschluss: befindet sich in dem Ordner vendor/eftec/bladeone/lib/ die Datei BladeOne.php ?
Starten Sie dann den Webserver neu.
Befragen Sie gerne auch das Forum in Ilias.