Exception
lithium\action\DispatchException
(code 404)
Action `en` not found.
Source
Stack Trace
-
[exception]
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Controller.php: 174
169 170 if (substr($action, 0, 1) == '_' || method_exists(__CLASS__, $action)) { 171 throw new DispatchException('Attempted to invoke a private method.'); 172 } 173 if (!method_exists($self, $action)) { 174 throw new DispatchException("Action `{$action}` not found."); 175 } 176 $render['template'] = $render['template'] ?: $action; 177 178 if ($result = $self->invokeMethod($action, $args)) { 179 if (is_string($result)) {
-
lithium\core\Object::_filter()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/core/Object.php: 238
233 */ 234 protected function _filter($method, $params, $callback, $filters = array()) { 235 list($class, $method) = explode('::', $method); 236 237 if (empty($this->_methodFilters[$method]) && empty($filters)) { 238 return $callback($this, $params, null); 239 } 240 241 $f = isset($this->_methodFilters[$method]) ? $this->_methodFilters[$method] : array(); 242 $data = array_merge($f, $filters, array($callback)); 243 return Filters::run($this, $params, compact('data', 'class', 'method'));
-
lithium\action\Controller::__invoke()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Controller.php: 192
187 188 if (!$render['hasRendered'] && $render['auto']) { 189 $self->render(); 190 } 191 return $self->response; 192 }); 193 } 194 195 /** 196 * This method is used to pass along any data from the controller to the view and layout 197 *
-
lithium\action\Dispatcher::lithium\action\{closure}() @ ?
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Dispatcher.php: 222
217 */ 218 protected static function _call($callable, $request, $params) { 219 $params = compact('callable', 'request', 'params'); 220 return static::_filter(__FUNCTION__, $params, function($self, $params) { 221 if (is_callable($callable = $params['callable'])) { 222 return $callable($params['request'], $params['params']); 223 } 224 throw new DispatchException('Result not callable.'); 225 }); 226 } 227}
-
lithium\util\collection\Filters::next()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 *
-
/var/www/vhosts/app.crownmakers.com/httpdocs/app/config/bootstrap/access.php::{closure} @ 13
/var/www/vhosts/app.crownmakers.com/httpdocs/app/config/bootstrap/access.php: 21
16 // if (!$user = Auth::check('temp', $params['request'])) return; 17 $user = Auth::check('user'); 18 $admin = Auth::check('admin'); 19 20 if ($params['request']->admin || (is_object($ctrl) && !property_exists($ctrl,'publicActions'))) { 21 return $chain->next($self, $params, $chain); 22 } else { 23 if (in_array($params['params']['action'], $ctrl->publicActions) || ($user || $admin)) { 24 return $chain->next($self, $params, $chain); 25 } 26 }
-
lithium\util\collection\Filters::next()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 *
-
/var/www/vhosts/app.crownmakers.com/httpdocs/app/libraries/li3_admin/config/bootstrap/access.php::{closure} @ 12
/var/www/vhosts/app.crownmakers.com/httpdocs/app/libraries/li3_admin/config/bootstrap/access.php: 32
27 if ($admin) { 28 $shop = Shops::first($admin['shop_id']); 29 Shops::setShop($shop->slug); 30 } 31 } 32 return $chain->next($self, $params, $chain); 33 }); 34 35
-
lithium\util\collection\Filters::run()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 183
178 } 179 } 180 181 $chain = new Filters($options); 182 $next = $chain->rewind(); 183 return $next($class, $params, $chain); 184 } 185 186 /** 187 * Provides short-hand convenience syntax for filter chaining. 188 *
-
lithium\core\StaticObject::_filter()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/core/StaticObject.php: 126
121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } 125 $data = array_merge(static::$_methodFilters[$class][$method], $filters, array($callback)); 126 return Filters::run($class, $params, compact('data', 'class', 'method')); 127 } 128 129 /** 130 * Gets and caches an array of the parent methods of a class. 131 *
-
lithium\action\Dispatcher::_call()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Dispatcher.php: 225
220 return static::_filter(__FUNCTION__, $params, function($self, $params) { 221 if (is_callable($callable = $params['callable'])) { 222 return $callable($params['request'], $params['params']); 223 } 224 throw new DispatchException('Result not callable.'); 225 }); 226 } 227} 228 229
-
lithium\core\StaticObject::invokeMethod()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/core/StaticObject.php: 75
70 case 1: 71 return static::$method($params[0]); 72 case 2: 73 return static::$method($params[0], $params[1]); 74 case 3: 75 return static::$method($params[0], $params[1], $params[2]); 76 case 4: 77 return static::$method($params[0], $params[1], $params[2], $params[3]); 78 case 5: 79 return static::$method($params[0], $params[1], $params[2], $params[3], $params[4]); 80 default:
-
lithium\action\Dispatcher::run()::{closure} @ 109
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Dispatcher.php: 122
117 118 if (!$params) { 119 throw new DispatchException('Could not route request.'); 120 } 121 $callable = $self::invokeMethod('_callable', array($result, $params, $options)); 122 return $self::invokeMethod('_call', array($callable, $result, $params)); 123 }); 124 } 125 126 /** 127 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each
-
lithium\util\collection\Filters::next()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 *
-
/var/www/vhosts/app.crownmakers.com/httpdocs/app/config/bootstrap/action.php::{closure} @ 109
/var/www/vhosts/app.crownmakers.com/httpdocs/app/config/bootstrap/action.php: 151
146 continue; 147 } 148 $file = "{$config['path']}/config/routes.php"; 149 file_exists($file) ? include $file : null; 150 } 151 return $chain->next($self, $params, $chain); 152}); 153 154 155
-
lithium\util\collection\Filters::next()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 202
197 public function next($self, $params, $chain) { 198 if (empty($self) || empty($chain)) { 199 return parent::next(); 200 } 201 $next = parent::next(); 202 return $next($self, $params, $chain); 203 } 204 205 /** 206 * Gets the method name associated with this filter chain. This is the method being filtered. 207 *
-
lithium\core\ErrorHandler::apply()::{closure} @ 287
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/core/ErrorHandler.php: 289
284 $wrap = static::$_exceptionHandler; 285 $_self = get_called_class(); 286 287 $filter = function($self, $params, $chain) use ($_self, $conditions, $handler, $wrap) { 288 try { 289 return $chain->next($self, $params, $chain); 290 } catch (Exception $e) { 291 if (!$_self::matches($e, $conditions)) { 292 throw $e; 293 } 294 return $handler($wrap($e, true), $params);
-
lithium\util\collection\Filters::run()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/util/collection/Filters.php: 183
178 } 179 } 180 181 $chain = new Filters($options); 182 $next = $chain->rewind(); 183 return $next($class, $params, $chain); 184 } 185 186 /** 187 * Provides short-hand convenience syntax for filter chaining. 188 *
-
lithium\core\StaticObject::_filter()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/core/StaticObject.php: 126
121 if (!isset(static::$_methodFilters[$class][$method])) { 122 static::$_methodFilters += array($class => array()); 123 static::$_methodFilters[$class][$method] = array(); 124 } 125 $data = array_merge(static::$_methodFilters[$class][$method], $filters, array($callback)); 126 return Filters::run($class, $params, compact('data', 'class', 'method')); 127 } 128 129 /** 130 * Gets and caches an array of the parent methods of a class. 131 *
-
lithium\action\Dispatcher::run()
/var/www/vhosts/app.crownmakers.com/httpdocs/libraries/lithium/action/Dispatcher.php: 123
118 if (!$params) { 119 throw new DispatchException('Could not route request.'); 120 } 121 $callable = $self::invokeMethod('_callable', array($result, $params, $options)); 122 return $self::invokeMethod('_call', array($callable, $result, $params)); 123 }); 124 } 125 126 /** 127 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each 128 * formatting rule is applied if the key of the rule in `$_rules` is present and not empty in
-
[main]
/var/www/vhosts/app.crownmakers.com/httpdocs/app/webroot/index.php: 41
36 * @see lithium\action\Response 37 * @see lithium\action\Dispatcher 38 * @see lithium\net\http\Router 39 * @see lithium\action\Controller 40 */ 41 echo lithium\action\Dispatcher::run(new lithium\action\Request()); 42 43