/home
/svrat
/public_html
/pimcore
/lib
/Pimcore.php
try {
if (!PIMCORE_DEBUG && !$throwExceptions && !PIMCORE_DEVMODE) {
@ini_set("display_errors", "Off");
@ini_set("display_startup_errors", "Off");
return $front->dispatch($request, $response);
} else {
@ini_set("display_errors", "On");
@ini_set("display_startup_errors", "On");
$front->throwExceptions(true);
return $front->dispatch($request, $response);
}
} catch (\Zend_Controller_Router_Exception $e) {
if (!headers_sent()) {
header("HTTP/1.0 404 Not Found");
}
Logger::err($e);
throw new \Zend_Controller_Router_Exception("No route, document, custom route or redirect is matching the request: " . $_SERVER["REQUEST_URI"] . " | \n" . "Specific ERROR: " . $e->getMessage());
} catch (\Exception $e) {
if (!headers_sent()) {
header("HTTP/1.0 500 Internal Server Error");
}
throw $e;
}
}
/**
* Register Whoops error handler
*
* @param Zend_Config $conf
* @param bool $frontend
*/
protected static function registerWhoopsErrorHandler(Zend_Config $conf, $frontend)
{
if (self::inDebugMode() && $frontend && !$conf->general->disable_whoops && !defined("HHVM_VERSION")) {
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
if (\Whoops\Util\Misc::isAjaxRequest()) {
Arguments
"""
No route, document, custom route or redirect is matching the request: /hr/novosti/tra-i-se-voditelj-elektroinstalacijskih-radova-m/?ccm_paging_p_b605=2 | \n
Specific ERROR: No route matched the request
"""
/home
/svrat
/public_html
/pimcore
/lib
/Pimcore.php
// only do this if not frontend => performance issue
if (!$frontend) {
self::initBackendRouter($router, $conf);
self::checkPluginRoutes();
if ($conf) {
self::handleAdminMainDomainRedirect($conf);
}
}
self::getEventManager()->trigger("system.startup", $front);
// throw exceptions also when in preview or in editmode (documents) to see it immediately when there's a problem with this page
if (Tool::isFrontentRequestByAdmin()) {
$user = \Pimcore\Tool\Authentication::authenticateSession();
if ($user instanceof User) {
$throwExceptions = true;
}
}
return self::runDispatcher($front, $throwExceptions, $request, $response);
}
/**
* Run dispatcher
*
* This is also standard for /admin/ requests -> error handling is done in Pimcore_Controller_Action_Admin
*
* @param Zend_Controller_Front $front
* @param bool $throwExceptions
* @param Zend_Controller_Request_Abstract|null $request
* @param Zend_Controller_Response_Abstract|null $response
* @return null|Zend_Controller_Response_Abstract
* @throws Exception
* @throws Zend_Controller_Router_Exception
*/
protected static function runDispatcher(
Zend_Controller_Front $front,
$throwExceptions,
Zend_Controller_Request_Abstract $request = null,
Zend_Controller_Response_Abstract $response = null
Arguments
Zend_Controller_Front {}
false
null
null
/home
/svrat
/public_html
/index.php
<?php
/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Enterprise License (PEL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) 2009-2016 pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PEL
*/
include_once("pimcore/config/startup.php");
try {
\Pimcore::run();
} catch (Exception $e) {
// handle exceptions, log to file
if(class_exists("Pimcore\\Logger")) {
\Pimcore\Logger::emerg($e);
}
throw $e;
}