/home/pacsystem/sitac.org/craft/plugins/sortbyfield/twigextensions/SortByFieldTwigExtension.php(29)
17 ); 18 } 19 20 /** 21 * The "sortByField" filter sorts an array of entries by the specified field's value 22 * 23 * Usage: {% for entry in craft.entries|sortByField('ordering', 'desc') %} 24 */ 25 public function sortByFieldFilter($content, $sort_by = null, $direction = 'asc') { 26 if(!is_array($content)) { 27 throw new Exception(Craft::t('Variable passed to the sortByField filter is not an array')); 28 } elseif(!(isset($content[0]) && is_object($content[0]) && (get_class($content[0]) === 'Craft\EntryModel' || get_class($content[0]) === 'Craft\Commerce_ProductModel') )) { 29 throw new Exception(Craft::t('Variables passed to the sortByField filter are not entries')); 30 } elseif($sort_by === null) { 31 throw new Exception(Craft::t('No sort by parameter passed to the sortByField filter')); 32 } elseif(!$content[0]->__isset($sort_by)) { 33 throw new Exception(Craft::t('Entries passed to the sortByField filter do not have the field "' . $sort_by . '"')); 34 } else { 35 // Unfortunately have to suppress warnings here due to __get function 36 // causing usort to think that the array has been modified: 37 // usort(): Array was modified by the user comparison function 38 @usort($content, function ($a, $b) use($sort_by, $direction) { 39 $flip = ($direction === 'desc') ? -1 : 1; 40 $a_sort_value = $a->__get($sort_by); 41 $b_sort_value = $b->__get($sort_by);
#0 |
+
–
/home/pacsystem/sitac.org/craft/storage/runtime/compiled_templates/45/45627400b8bd527d52a4879c308d11a90a181ba4a9896ac6dcbe08fe47fcefbf.php(143): Craft\SortByFieldTwigExtension->sortByFieldFilter(array(), "relatedCycle", "asc") 138 \t\t\t\t<div class=\"dates-nodo\"> 139 \t\t\t\t\t 140 \t\t\t\t\t"; 141 // line 56 142 $context['_parent'] = $context; 143 $context['_seq'] = twig_ensure_traversable($this->env->getExtension('Craft\SortByFieldTwigExtension')->sortByFieldFilter(($context["entries"] ?? $this->getContext($context, "entries")), "relatedCycle", "asc")); 144 foreach ($context['_seq'] as $context["_key"] => $context["entry"]) { 145 // line 57 146 echo "\t\t\t\t\t 147 \t\t\t\t\t<div class=\"post-nodo\"> 148 \t\t\t\t\t <div class=\"padding-left-1\"> |
#1 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(217): __TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c->block_content(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 212 throw new \LogicException('A block must be a method on a \Twig\Template instance.'); 213 } 214 215 if (null !== $template) { 216 try { 217 $template->$block($context, $blocks); 218 } catch (Error $e) { 219 if (!$e->getSourceContext()) { 220 $e->setSourceContext($template->getSourceContext()); 221 } 222 |
#2 |
+
–
/home/pacsystem/sitac.org/craft/storage/runtime/compiled_templates/4a/4a14fce1608c1fd03aa5d7c05e3007934fd47c075abf204a0ea74b10cc73629b.php(94): Twig\Template->displayBlock("content", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 89 \t\t</div> 90 \t</header> 91 \t 92 \t"; 93 // line 53 94 $this->displayBlock('content', $context, $blocks); 95 // line 56 96 echo " 97 \t<div class=\"blockNewsletter\"> 98 \t\t<div class=\"formNewsletter\"> 99 \t\t\t<form class=\"flex full-width flex_space-around flex_col\" action=\"\" method=\"POST\"> |
#3 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(456): __TwigTemplate_0657932bd12cdde3b2f2475b099e5ffc64e9db161ebedbbfc8d4f4e08a032739->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 451 } 452 453 protected function displayWithErrorHandling(array $context, array $blocks = []) 454 { 455 try { 456 $this->doDisplay($context, $blocks); 457 } catch (Error $e) { 458 if (!$e->getSourceContext()) { 459 $e->setSourceContext($this->getSourceContext()); 460 } 461 |
#4 |
+
–
/home/pacsystem/sitac.org/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 21 */ 22 protected function displayWithErrorHandling(array $context, array $blocks = array()) 23 { 24 try 25 { 26 parent::displayWithErrorHandling($context, $blocks); 27 } 28 catch (\Twig_Error_Runtime $e) 29 { 30 if (craft()->config->get('suppressTemplateErrors')) 31 { |
#5 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(423): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 418 return $this->blocks; 419 } 420 421 public function display(array $context, array $blocks = []) 422 { 423 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 424 } 425 426 public function render(array $context) 427 { 428 $level = ob_get_level(); |
#6 |
+
–
/home/pacsystem/sitac.org/craft/storage/runtime/compiled_templates/45/45627400b8bd527d52a4879c308d11a90a181ba4a9896ac6dcbe08fe47fcefbf.php(35): Twig\Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 30 } 31 32 protected function doDisplay(array $context, array $blocks = []) 33 { 34 $this->parent = $this->loadTemplate("xiii/layout-nodos", "xiii/nodos-bitacora", 1); 35 $this->parent->display($context, array_merge($this->blocks, $blocks)); 36 } 37 38 // line 3 39 public function block_content($context, array $blocks = []) 40 { |
#7 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(456): __TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 451 } 452 453 protected function displayWithErrorHandling(array $context, array $blocks = []) 454 { 455 try { 456 $this->doDisplay($context, $blocks); 457 } catch (Error $e) { 458 if (!$e->getSourceContext()) { 459 $e->setSourceContext($this->getSourceContext()); 460 } 461 |
#8 |
+
–
/home/pacsystem/sitac.org/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 21 */ 22 protected function displayWithErrorHandling(array $context, array $blocks = array()) 23 { 24 try 25 { 26 parent::displayWithErrorHandling($context, $blocks); 27 } 28 catch (\Twig_Error_Runtime $e) 29 { 30 if (craft()->config->get('suppressTemplateErrors')) 31 { |
#9 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(423): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_a639b3d41eeadf3b3784b1d77b846dddc5540525ce3a993f4264e805cb963f3c, "block_content"))) 418 return $this->blocks; 419 } 420 421 public function display(array $context, array $blocks = []) 422 { 423 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 424 } 425 426 public function render(array $context) 427 { 428 $level = ob_get_level(); |
#10 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Template.php(435): Twig\Template->display(array("entry" => Craft\EntryModel)) 430 ob_start(); 431 } else { 432 ob_start(function () { return ''; }); 433 } 434 try { 435 $this->display($context); 436 } catch (\Exception $e) { 437 while (ob_get_level() > $level) { 438 ob_end_clean(); 439 } 440 |
#11 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/TemplateWrapper.php(47): Twig\Template->render(array("entry" => Craft\EntryModel), array()) 42 */ 43 public function render($context = []) 44 { 45 // using func_get_args() allows to not expose the blocks argument 46 // as it should only be used by internal code 47 return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []); 48 } 49 50 /** 51 * Displays the template. 52 * |
#12 |
+
–
/home/pacsystem/sitac.org/craft/app/vendor/twig/twig/src/Environment.php(384): Twig\TemplateWrapper->render(array("entry" => Craft\EntryModel)) 379 * @throws SyntaxError When an error occurred during compilation 380 * @throws RuntimeError When an error occurred during rendering 381 */ 382 public function render($name, array $context = []) 383 { 384 return $this->load($name)->render($context); 385 } 386 387 /** 388 * Displays a template. 389 * |
#13 |
+
–
/home/pacsystem/sitac.org/craft/app/services/TemplatesService.php(256): Twig\Environment->render("xiii/nodos-bitacora", array("entry" => Craft\EntryModel)) 251 $lastRenderingTemplate = $this->_renderingTemplate; 252 $this->_renderingTemplate = $template; 253 254 try 255 { 256 $result = $twig->render($template, $variables); 257 } 258 catch (\RuntimeException $e) 259 { 260 if (!craft()->config->get('devMode')) 261 { |
#14 |
+
–
/home/pacsystem/sitac.org/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("xiii/nodos-bitacora", array("entry" => Craft\EntryModel)) 69 * @throws HttpException 70 * @return mixed The rendered template if $return is set to `true`. 71 */ 72 public function renderTemplate($template, $variables = array(), $return = false, $processOutput = false) 73 { 74 if (($output = craft()->templates->render($template, $variables)) !== false) 75 { 76 if ($processOutput) 77 { 78 $output = $this->processOutput($output); 79 } |
#15 |
+
–
/home/pacsystem/sitac.org/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("xiii/nodos-bitacora", array("entry" => Craft\EntryModel)) 63 public function actionRender($template, array $variables = array()) 64 { 65 // Does that template exist? 66 if (craft()->templates->doesTemplateExist($template)) 67 { 68 $this->renderTemplate($template, $variables); 69 } 70 else 71 { 72 throw new HttpException(404); 73 } |
#16 |
unknown(0): Craft\TemplatesController->actionRender("xiii/nodos-bitacora", array("entry" => Craft\EntryModel))
|
#17 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("xiii/nodos-bitacora", array("entry" => Craft\EntryModel))) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#18 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("p" => "nodos-bitacora", "variables" => array("entry" => Craft\EntryModel), "template" => "xiii/nodos-bitacora")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#19 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("p" => "nodos-bitacora", "variables" => array("entry" => Craft\EntryModel), "template" => "xiii/nodos-bitacora")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#20 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#21 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#22 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/CWebApplication.php(282): CController->run("render") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#23 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/web/CWebApplication.php(141): CWebApplication->runController("templates/render") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#24 |
+
–
/home/pacsystem/sitac.org/craft/app/etc/web/WebApp.php(291): CWebApplication->processRequest() 286 287 // If this is an action request, call the controller 288 $this->_processActionRequest(); 289 290 // If we're still here, finally let UrlManager do it's thing. 291 parent::processRequest(); 292 } 293 294 /** 295 * Returns the target application language. 296 * |
#25 |
+
–
/home/pacsystem/sitac.org/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#26 |
+
–
/home/pacsystem/sitac.org/craft/app/index.php(73): CApplication->run() 68 if ($lastError && strpos($lastError['message'], 'max_input_vars') !== false) 69 { 70 throw new \Craft\ErrorException($lastError['message']); 71 } 72 73 $app->run(); |
#27 |
+
–
/home/pacsystem/sitac.org/public/index.php(19): require_once("/home/pacsystem/sitac.org/craft/app/index.php") 14 } 15 16 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 17 } 18 19 require_once $path; |