Error
HFLE\Request::getNew(): Argument #1 ($globals) cannot be passed by reference Error thrown with message "HFLE\Request::getNew(): Argument #1 ($globals) cannot be passed by reference" Stacktrace: #0 Error in /home/acharris22306/hfle.acharrisdesign.org/public/frontRouter.php:18
Stack frames (1)
0
Error
/home/acharris22306/hfle.acharrisdesign.org/public/frontRouter.php18
/home/acharris22306/hfle.acharrisdesign.org/public/frontRouter.php
<?php
require_once($_SERVER["DOCUMENT_ROOT"].'/../includes/initializations.php');
 
//echo var_dump( $_SERVER['REQUEST_URI']);
 
$pagesDir = realpath($_SERVER["DOCUMENT_ROOT"].'/../pages');
//echo var_dump($pagesDir);
$router=\HFLE\Routing\Router::getNew($pagesDir);
$router->setRoutes(array(
        '/routes/test'=>'/about/about/',
        ));
$html =\HFLE\Layout\HTMLRenderer::getNew();
$path = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH);
$route = $router->matchPath($path);
$router->parseRoute($route);
$controllerClass=$router->getController();
$controllerClass="\\HFLE\\Controllers\\".$controllerClass;
$request = \HFLE\Request::getNew($GLOBALS);
$response = \HFLE\Response::getNew($html);
$request->setRouting($router);
$controller = $controllerClass::getNew($request,$response);
$response = $controller->invokeAction();
//echo $controllerClass;
//die( $router->getAction());
//echo $route;
$response->send();
//echo var_dump($path);
 
 
 
 

Fatal error: During inheritance of ArrayAccess: Uncaught Whoops\Exception\ErrorException: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/Data.php:153 Stack trace: #0 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(261): Whoops\Run->handleError(8192, 'Return type of ...', '/home/acharris2...', 153, Array) #1 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/Data.php(20): Symfony\Component\VarDumper\Cloner\AbstractCloner->Symfony\Component\VarDumper\Cloner\{closure}(8192, 'Return type of ...', '/home/acharris2...', 153) #2 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/composer/ClassLoader.php(480): include('/home/acharris2...') #3 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/acharris2...') #4 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(272): Composer\Autoload\ClassLoader->loadClass('Symfony\\Compone...') #5 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(169): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar('HFLE\\Request::g...', 1) #6 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(208): Whoops\Util\TemplateHelper->dump('HFLE\\Request::g...') #7 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(37): Whoops\Util\TemplateHelper->dumpArgs(Object(Whoops\Exception\Frame)) #8 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #9 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #10 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #11 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php(1): Whoops\Util\TemplateHelper->render('/home/acharris2...') #12 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #13 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #14 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #15 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php(2): Whoops\Util\TemplateHelper->render('/home/acharris2...') #16 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #17 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #18 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #19 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(23): Whoops\Util\TemplateHelper->render('/home/acharris2...') #20 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #21 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #22 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #23 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(293): Whoops\Util\TemplateHelper->render('/home/acharris2...') #24 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Run.php(370): Whoops\Handler\PrettyPageHandler->handle(Object(Error)) #25 [internal function]: Whoops\Run->handleException(Object(Error)) #26 {main} in /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/Data.php on line 20

Fatal error: Uncaught Error: Class "Symfony\Component\VarDumper\Cloner\Data" not found in /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:272 Stack trace: #0 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(169): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar('During inherita...', 1) #1 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(208): Whoops\Util\TemplateHelper->dump('During inherita...') #2 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(37): Whoops\Util\TemplateHelper->dumpArgs(Object(Whoops\Exception\Frame)) #3 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #4 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #5 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #6 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php(1): Whoops\Util\TemplateHelper->render('/home/acharris2...') #7 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #8 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #9 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #10 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php(2): Whoops\Util\TemplateHelper->render('/home/acharris2...') #11 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #12 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #13 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #14 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(23): Whoops\Util\TemplateHelper->render('/home/acharris2...') #15 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(250): require('/home/acharris2...') #16 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/home/acharris2...', Array) #17 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(248): call_user_func(Object(Closure), '/home/acharris2...', Array) #18 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(293): Whoops\Util\TemplateHelper->render('/home/acharris2...') #19 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Run.php(370): Whoops\Handler\PrettyPageHandler->handle(Object(Whoops\Exception\ErrorException)) #20 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Run.php(454): Whoops\Run->handleException(Object(Whoops\Exception\ErrorException)) #21 /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/filp/whoops/src/Whoops/Run.php(482): Whoops\Run->handleError(1, 'During inherita...', '/home/acharris2...', 20) #22 [internal function]: Whoops\Run->handleShutdown() #23 {main} thrown in /home/acharris22306/hfle.acharrisdesign.org/includes/vendor/symfony/var-dumper/Cloner/AbstractCloner.php on line 272