Exception InvalidArgumentException

HTTP 500 Whoops, looks like something went wrong.

"404 Sorry, this page is not available!
Use back arrow" is not valid header value

Exceptions 2

Laminas\Diactoros\Exception\ InvalidArgumentException

  1.                 'Invalid header value type; must be a string or numeric; received %s',
  2.                 is_object($value) ? $value::class : gettype($value)
  3.             ));
  4.         }
  5.         if (! self::isValid($value)) {
  6.             throw new Exception\InvalidArgumentException(sprintf(
  7.                 '"%s" is not valid header value',
  8.                 $value
  9.             ));
  10.         }
  11.     }
  1.                 'cannot be an empty array'
  2.             );
  3.         }
  4.         return array_map(static function ($value): string {
  5.             HeaderSecurity::assertValid($value);
  6.             $value = (string) $value;
  7.             // Normalize line folding to a single space (RFC 7230#3.2.4).
  8.             $value str_replace(["\r\n\t""\r\n "], ' '$value);
Response::Laminas\Diactoros\{closure}('404 Sorry, this page is not available! Use back arrow')
  1.             // Normalize line folding to a single space (RFC 7230#3.2.4).
  2.             $value str_replace(["\r\n\t""\r\n "], ' '$value);
  3.             // Remove optional whitespace (OWS, RFC 7230#3.2.3) around the header value.
  4.             return trim($value"\t ");
  5.         }, array_values($values));
  6.     }
  7.     /**
  8.      * Ensure header name and values are valid.
  9.      *
  1.         $new = clone $this;
  2.         if ($new->hasHeader($name)) {
  3.             unset($new->headers[$new->headerNames[$normalized]]);
  4.         }
  5.         $value $this->filterHeaderValue($value);
  6.         $new->headerNames[$normalized] = $name;
  7.         $new->headers[$name]           = $value;
  8.         return $new;
  1.     public function withAddedHeader($name$value): MessageInterface
  2.     {
  3.         $this->assertHeader($name);
  4.         if (! $this->hasHeader($name)) {
  5.             return $this->withHeader($name$value);
  6.         }
  7.         $header $this->headerNames[strtolower($name)];
  8.         $new                   = clone $this;
  1.         if ($replace && $response->hasHeader($name)) {
  2.             $response $response->withoutHeader($name);
  3.         }
  4.         // Add the header to the internal array.
  5.         $this->setResponse($response->withAddedHeader($name$value));
  6.         return $this;
  7.     }
  8.     /**
AbstractWebApplication->setHeader('status', '404 Sorry, this page is not available! Use back arrow') in /home/coontra/public_html/libraries/src/Document/ErrorDocument.php (line 131)
  1.         if ($errorReporting === "development" || $errorReporting === "maximum") {
  2.             $status .= ' ' str_replace("\n"' '$this->_error->getMessage());
  3.         }
  4.         CmsFactory::getApplication()->setHeader('status'$status);
  5.         // Set variables
  6.         $this->debug $params['debug'] ?? false;
  7.         $this->error $this->_error;
ErrorDocument->render(false, array('template' => 'shaper_helixultimate', 'directory' => '/home/coontra/public_html/templates', 'debug' => false, 'csp_nonce' => 'YmI2OTZiZDQwYzUyMmE1N2FiZjE3Njc1ZTVhYzlhODhhOGIxMDJmZGMxMDgwNjk3NTQ2NTUzYTNlMDFkZmU2MDg1Y2Y5YzIwOTA3YzhkZmQ1ODUwNDA2MzlkMzEyOGYzOGM2ZDBiNWQ2MzY2YzRhZDAzMjY3ZDBiZTFkYWMyOWU=', 'templateInherits' => '', 'params' => object(Registry))) in /home/coontra/public_html/libraries/src/Error/Renderer/HtmlRenderer.php (line 78)
  1.                 'template'         => $template->template,
  2.                 'directory'        => JPATH_THEMES,
  3.                 'debug'            => JDEBUG,
  4.                 'csp_nonce'        => $app->get('csp_nonce'),
  5.                 'templateInherits' => $template->parent,
  6.                 'params'           => $template->params,
  7.             ]
  8.         );
  9.     }
  10. }
HtmlRenderer->render(object(Exception)) in /home/coontra/public_html/libraries/src/Exception/ExceptionHandler.php (line 136)
  1.                     'subject'  => $app,
  2.                     'document' => $renderer->getDocument(),
  3.                 ])
  4.             );
  5.             $data $renderer->render($error);
  6.             // If nothing was rendered, just use the message from the Exception
  7.             if (empty($data)) {
  8.                 $data $error->getMessage();
  9.             }
ExceptionHandler::render(object(Exception)) in /home/coontra/public_html/libraries/src/Exception/ExceptionHandler.php (line 73)
  1.      * @since   3.10.0
  2.      */
  3.     public static function handleException(\Throwable $error)
  4.     {
  5.         static::logException($error);
  6.         static::render($error);
  7.     }
  8.     /**
  9.      * Render the error page based on an exception.
  10.      *
ExceptionHandler::handleException(object(Exception)) in /home/coontra/public_html/libraries/src/Application/CMSApplication.php (line 336)
  1.             );
  2.             // Trigger the onError event.
  3.             $this->dispatchEvent('onError'$event);
  4.             ExceptionHandler::handleException($event->getError());
  5.         }
  6.         // Trigger the onBeforeRespond event.
  7.         $this->dispatchEvent(
  8.             'onBeforeRespond',
CMSApplication->execute() in /home/coontra/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/coontra/public_html/includes/app.php') in /home/coontra/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Exception

Sorry, this page is not available! Use back arrow

  1.             // Check if a strip tags is required
  2.             if($cParams->get('custom_404_page_mode''html') == 'text') {
  3.                 $custom404Text strip_tags($custom404Text);
  4.             }
  5.             
  6.             throw new \Exception($custom404Text404);
  7.         }
  8.     }
  9.     
  10.     /**
  11.      * Event to manipulate the menu item dashboard in backend
PlgSystemJMap->postProcessParseRule(object(SiteRouter), object(Uri)) in /home/coontra/public_html/libraries/src/Router/Router.php (line 384)
  1.         if (!\array_key_exists('parse' $stage$this->rules)) {
  2.             throw new \InvalidArgumentException(sprintf('The %s stage is not registered. (%s)'$stage__METHOD__));
  3.         }
  4.         foreach ($this->rules['parse' $stage] as $rule) {
  5.             $rule($this$uri);
  6.         }
  7.     }
  8.     /**
  9.      * Process the build uri query data based on custom defined rules
Router->processParseRules(object(Uri), 'postprocess') in /home/coontra/public_html/libraries/src/Router/Router.php (line 150)
  1.         // Do the main stage of the URL parse process
  2.         $this->processParseRules($uri);
  3.         // Do the postprocess stage of the URL parse process
  4.         $this->processParseRules($uriself::PROCESS_AFTER);
  5.         // Check if all parts of the URL have been parsed.
  6.         // Otherwise we have an invalid URL
  7.         if (\strlen($uri->getPath()) > 0) {
  8.             throw new RouteNotFoundException(Text::_('JERROR_PAGE_NOT_FOUND'));
  1.         // Get the full request URI.
  2.         $uri = clone Uri::getInstance();
  3.         // It is not possible to inject the SiteRouter as it requires a SiteApplication
  4.         // and we would end in an infinite loop
  5.         $result $this->getContainer()->get(SiteRouter::class)->parse($uritrue);
  6.         $active $this->getMenu()->getActive();
  7.         if (
  8.             $active !== null
  1.         // Mark afterInitialise in the profiler.
  2.         JDEBUG $this->profiler->mark('afterInitialise') : null;
  3.         // Route the application
  4.         $this->route();
  5.         // Mark afterRoute in the profiler.
  6.         JDEBUG $this->profiler->mark('afterRoute') : null;
  7.         if (!$this->isHandlingMultiFactorAuthentication()) {
  1.             $this->sanityCheckSystemVariables();
  2.             $this->setupLogging();
  3.             $this->createExtensionNamespaceMap();
  4.             // Perform application routines.
  5.             $this->doExecute();
  6.             // If we have an application document object, render it.
  7.             if ($this->document instanceof \Joomla\CMS\Document\Document) {
  8.                 // Render the application output.
  9.                 $this->render();
CMSApplication->execute() in /home/coontra/public_html/includes/app.php (line 58)
  1. // Set the application as global app
  2. \Joomla\CMS\Factory::$application $app;
  3. // Execute the application.
  4. $app->execute();
require_once('/home/coontra/public_html/includes/app.php') in /home/coontra/public_html/index.php (line 32)
  1.  * define() is used rather than "const" to not error for PHP 5.2 and lower
  2.  */
  3. define('_JEXEC'1);
  4. // Run the application - All executable code should be triggered through this file
  5. require_once dirname(__FILE__) . '/includes/app.php';

Stack Traces 2

[2/2] InvalidArgumentException
Laminas\Diactoros\Exception\InvalidArgumentException:
"404 Sorry, this page is not available!
 Use back arrow" is not valid header value

  at /home/coontra/public_html/libraries/vendor/laminas/laminas-diactoros/src/HeaderSecurity.php:135
  at Laminas\Diactoros\HeaderSecurity::assertValid('404 Sorry, this page is not available!
 Use back arrow')
     (/home/coontra/public_html/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:392)
  at Laminas\Diactoros\Response::Laminas\Diactoros\{closure}('404 Sorry, this page is not available!
 Use back arrow')
  at array_map(object(Closure), array('404 Sorry, this page is not available!
 Use back arrow'))
     (/home/coontra/public_html/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:401)
  at Laminas\Diactoros\Response->filterHeaderValue(array('404 Sorry, this page is not available!
 Use back arrow'))
     (/home/coontra/public_html/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:208)
  at Laminas\Diactoros\Response->withHeader('status', '404 Sorry, this page is not available!
 Use back arrow')
     (/home/coontra/public_html/libraries/vendor/laminas/laminas-diactoros/src/MessageTrait.php:238)
  at Laminas\Diactoros\Response->withAddedHeader('status', '404 Sorry, this page is not available!
 Use back arrow')
     (/home/coontra/public_html/libraries/vendor/joomla/application/src/AbstractWebApplication.php:562)
  at Joomla\Application\AbstractWebApplication->setHeader('status', '404 Sorry, this page is not available!
 Use back arrow')
     (/home/coontra/public_html/libraries/src/Document/ErrorDocument.php:131)
  at Joomla\CMS\Document\ErrorDocument->render(false, array('template' => 'shaper_helixultimate', 'directory' => '/home/coontra/public_html/templates', 'debug' => false, 'csp_nonce' => 'YmI2OTZiZDQwYzUyMmE1N2FiZjE3Njc1ZTVhYzlhODhhOGIxMDJmZGMxMDgwNjk3NTQ2NTUzYTNlMDFkZmU2MDg1Y2Y5YzIwOTA3YzhkZmQ1ODUwNDA2MzlkMzEyOGYzOGM2ZDBiNWQ2MzY2YzRhZDAzMjY3ZDBiZTFkYWMyOWU=', 'templateInherits' => '', 'params' => object(Registry)))
     (/home/coontra/public_html/libraries/src/Error/Renderer/HtmlRenderer.php:78)
  at Joomla\CMS\Error\Renderer\HtmlRenderer->render(object(Exception))
     (/home/coontra/public_html/libraries/src/Exception/ExceptionHandler.php:136)
  at Joomla\CMS\Exception\ExceptionHandler::render(object(Exception))
     (/home/coontra/public_html/libraries/src/Exception/ExceptionHandler.php:73)
  at Joomla\CMS\Exception\ExceptionHandler::handleException(object(Exception))
     (/home/coontra/public_html/libraries/src/Application/CMSApplication.php:336)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/coontra/public_html/includes/app.php:58)
  at require_once('/home/coontra/public_html/includes/app.php')
     (/home/coontra/public_html/index.php:32)                
[1/2] Exception
Exception:
Sorry, this page is not available!
Use back arrow

  at /home/coontra/public_html/plugins/system/jmap/jmap.php:1292
  at PlgSystemJMap->postProcessParseRule(object(SiteRouter), object(Uri))
     (/home/coontra/public_html/libraries/src/Router/Router.php:384)
  at Joomla\CMS\Router\Router->processParseRules(object(Uri), 'postprocess')
     (/home/coontra/public_html/libraries/src/Router/Router.php:150)
  at Joomla\CMS\Router\Router->parse(object(Uri), true)
     (/home/coontra/public_html/libraries/src/Application/SiteApplication.php:754)
  at Joomla\CMS\Application\SiteApplication->route()
     (/home/coontra/public_html/libraries/src/Application/SiteApplication.php:244)
  at Joomla\CMS\Application\SiteApplication->doExecute()
     (/home/coontra/public_html/libraries/src/Application/CMSApplication.php:306)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/home/coontra/public_html/includes/app.php:58)
  at require_once('/home/coontra/public_html/includes/app.php')
     (/home/coontra/public_html/index.php:32)