/srv/users/major-tom/apps/major-tom/craft/plugins/imager/variables/ImagerVariable.php(45)
33 * 34 * todo : Implement support for other descriptors 35 * 36 * @param Array $images 37 * @param string $descriptor 38 * @return string 39 */ 40 public function srcset($images, $descriptor = 'w') 41 { 42 $r = ''; 43 $widths = array(); 44 45 foreach ($images as $image) { 46 if (!isset($widths[$image->getWidth()])) { 47 $r .= $image->getUrl() . ' ' . $image->getWidth() . 'w, '; 48 $widths[$image->getWidth()] = true; 49 } 50 } 51 52 return substr($r, 0, strlen($r) - 2); 53 } 54 55 /** 56 * Returns a base64 encoded transparent pixel. Useful for adding as src on img tags for validation when using srcset. 57 *
#0 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/etc/web/WebApp.php(694): CApplication->handleError(2, "Invalid argument supplied for foreach()", "/srv/users/major-tom/apps/major-tom/craft/plugins/imager/variabl...", 45) 689 if (version_compare(PHP_VERSION, '7.1', '>=') && strpos($message, 'Narrowing occurred during type inference. Please file a bug report') !== false) 690 { 691 return; 692 } 693 694 parent::handleError($code, $message, $file, $line); 695 } 696 697 /** 698 * Raised right AFTER the application processes the request. 699 * |
#1 |
+
–
/srv/users/major-tom/apps/major-tom/craft/plugins/imager/variables/ImagerVariable.php(45): Craft\WebApp->handleError(2, "Invalid argument supplied for foreach()", "/srv/users/major-tom/apps/major-tom/craft/plugins/imager/variabl...", 45, ...) 40 public function srcset($images, $descriptor = 'w') 41 { 42 $r = ''; 43 $widths = array(); 44 45 foreach ($images as $image) { 46 if (!isset($widths[$image->getWidth()])) { 47 $r .= $image->getUrl() . ' ' . $image->getWidth() . 'w, '; 48 $widths[$image->getWidth()] = true; 49 } 50 } |
#2 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(685): Craft\ImagerVariable->srcset(null) 680 // to call is not supported. If ignoreStrictCheck is true, we should return null. 681 try { 682 if (!$arguments) { 683 $ret = $object->$method(); 684 } else { 685 $ret = \call_user_func_array([$object, $method], $arguments); 686 } 687 } catch (\BadMethodCallException $e) { 688 if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) { 689 return; 690 } |
#3 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/etc/templating/BaseTemplate.php(64): Twig\Template->getAttribute(Craft\ImagerVariable, "srcset", array(null), "method", ...) 59 if (is_object($object) && $object instanceof BaseElementModel) 60 { 61 $this->_includeElementInTemplateCaches($object); 62 } 63 64 return parent::getAttribute($object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck); 65 } 66 67 // Private Methods 68 // ========================================================================= 69 |
#4 |
+
–
/srv/users/major-tom/apps/major-tom/craft/storage/runtime/compiled_templates/ba/ba628a0ca422fa757cd2611deddd82b9169138997a67884f5a08077c99e56225.php(311): Craft\BaseTemplate->getAttribute(Craft\ImagerVariable, "srcset", array(null), "method") 306 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "imager", []), "base64Pixel", [0 => 2, 1 => 1], "method"), "html", null, true); 307 echo "\" 308 data-sizes=\"100vw\" 309 data-srcset=\""; 310 // line 159 311 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "imager", []), "srcset", [0 => ($context["transformedImages"] ?? $this->getContext($context, "transformedImages"))], "method"), "html", null, true); 312 echo "\" 313 alt=\""; 314 // line 160 315 echo twig_escape_filter($this->env, $this->getAttribute(($context["image"] ?? $this->getContext($context, "image")), "title", []), "html", null, true); 316 echo "\"> |
#5 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(217): __TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5->block_main(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 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 |
#6 |
+
–
/srv/users/major-tom/apps/major-tom/craft/storage/runtime/compiled_templates/15/158f2b9bdb54b1830bb297567a7830597ab585b7137989514ea2c4a3448b7c9f.php(115): Twig\Template->displayBlock("main", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 110 </div> 111 112 <main id=\"main\" role=\"main\"> 113 "; 114 // line 71 115 $this->displayBlock('main', $context, $blocks); 116 // line 72 117 echo " </main> 118 "; 119 // line 73 120 if ((($this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "request", []), "getFirstSegment", [], "method") != "") && ($this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "request", []), "getFirstSegment", [], "method") != "client-area"))) { |
#7 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(217): __TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3->block_body(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 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 |
#8 |
+
–
/srv/users/major-tom/apps/major-tom/craft/storage/runtime/compiled_templates/7e/7e5c0df697cdc006df940554ab089ec786e98ce2eb5e046f52c87d0c66d630d2.php(52): Twig\Template->displayBlock("body", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 47 } 48 echo "> 49 50 "; 51 // line 120 52 $this->displayBlock('body', $context, $blocks); 53 // line 121 54 echo " 55 56 "; 57 // line 135 |
#9 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 423 } 424 425 protected function displayWithErrorHandling(array $context, array $blocks = []) 426 { 427 try { 428 $this->doDisplay($context, $blocks); 429 } catch (Error $e) { 430 if (!$e->getSourceContext()) { 431 $e->setSourceContext($this->getSourceContext()); 432 } 433 |
#10 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 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 { |
#11 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("head" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_head"), "body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "foot" => array(__TwigTemplate_2e2050047ec2f7432523cd95cfe830d9f8cf9917ab554940c58d264ade6da030, "block_foot"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 394 return $this->blocks; 395 } 396 397 public function display(array $context, array $blocks = []) 398 { 399 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 400 } 401 402 public function render(array $context) 403 { 404 $level = ob_get_level(); |
#12 |
+
–
/srv/users/major-tom/apps/major-tom/craft/storage/runtime/compiled_templates/15/158f2b9bdb54b1830bb297567a7830597ab585b7137989514ea2c4a3448b7c9f.php(36): Twig\Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 31 return "_layouts/_base"; 32 } 33 34 protected function doDisplay(array $context, array $blocks = []) 35 { 36 $this->parent->display($context, array_merge($this->blocks, $blocks)); 37 } 38 39 // line 18 40 public function block_body($context, array $blocks = []) 41 { |
#13 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 423 } 424 425 protected function displayWithErrorHandling(array $context, array $blocks = []) 426 { 427 try { 428 $this->doDisplay($context, $blocks); 429 } catch (Error $e) { 430 if (!$e->getSourceContext()) { 431 $e->setSourceContext($this->getSourceContext()); 432 } 433 |
#14 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 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 { |
#15 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("body" => array(__TwigTemplate_2f6e24bece0dca099be5a369cff4f70ad9f8650ca4bd72c0b6b7494fc6ea2cf3, "block_body"), "main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 394 return $this->blocks; 395 } 396 397 public function display(array $context, array $blocks = []) 398 { 399 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 400 } 401 402 public function render(array $context) 403 { 404 $level = ob_get_level(); |
#16 |
+
–
/srv/users/major-tom/apps/major-tom/craft/storage/runtime/compiled_templates/ba/ba628a0ca422fa757cd2611deddd82b9169138997a67884f5a08077c99e56225.php(42): Twig\Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 37 // line 2 38 $context["titleLink"] = "/news"; 39 // line 3 40 $context["section"] = "news"; 41 // line 5 42 $this->parent->display($context, array_merge($this->blocks, $blocks)); 43 } 44 45 // line 7 46 public function block_main($context, array $blocks = []) 47 { |
#17 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 423 } 424 425 protected function displayWithErrorHandling(array $context, array $blocks = []) 426 { 427 try { 428 $this->doDisplay($context, $blocks); 429 } catch (Error $e) { 430 if (!$e->getSourceContext()) { 431 $e->setSourceContext($this->getSourceContext()); 432 } 433 |
#18 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 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 { |
#19 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("main" => array(__TwigTemplate_98467af2a51ae544fdb95f427a8cea39b175db4bc627eb30eb73e7bfecd3bea5, "block_main"))) 394 return $this->blocks; 395 } 396 397 public function display(array $context, array $blocks = []) 398 { 399 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 400 } 401 402 public function render(array $context) 403 { 404 $level = ob_get_level(); |
#20 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Template.php(407): Twig\Template->display(array("entry" => Craft\EntryModel)) 402 public function render(array $context) 403 { 404 $level = ob_get_level(); 405 ob_start(); 406 try { 407 $this->display($context); 408 } catch (\Exception $e) { 409 while (ob_get_level() > $level) { 410 ob_end_clean(); 411 } 412 |
#21 |
+
–
/srv/users/major-tom/apps/major-tom/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 * |
#22 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/vendor/twig/twig/src/Environment.php(385): Twig\TemplateWrapper->render(array("entry" => Craft\EntryModel)) 380 * @throws SyntaxError When an error occurred during compilation 381 * @throws RuntimeError When an error occurred during rendering 382 */ 383 public function render($name, array $context = []) 384 { 385 return $this->load($name)->render($context); 386 } 387 388 /** 389 * Displays a template. 390 * |
#23 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/services/TemplatesService.php(256): Twig\Environment->render("_views/_newsEntry", 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 { |
#24 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("_views/_newsEntry", 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 } |
#25 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("_views/_newsEntry", 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 } |
#26 |
unknown(0): Craft\TemplatesController->actionRender("_views/_newsEntry", array("entry" => Craft\EntryModel))
|
#27 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("_views/_newsEntry", 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 } |
#28 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("p" => "news/beatriz-at-dinner-trailer", "variables" => array("entry" => Craft\EntryModel), "template" => "_views/_newsEntry")) 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 } |
#29 |
+
–
/srv/users/major-tom/apps/major-tom/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("p" => "news/beatriz-at-dinner-trailer", "variables" => array("entry" => Craft\EntryModel), "template" => "_views/_newsEntry")) 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; |
#30 |
+
–
/srv/users/major-tom/apps/major-tom/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(); |
#31 |
+
–
/srv/users/major-tom/apps/major-tom/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); |
#32 |
+
–
/srv/users/major-tom/apps/major-tom/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))); |
#33 |
+
–
/srv/users/major-tom/apps/major-tom/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. |
#34 |
+
–
/srv/users/major-tom/apps/major-tom/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 * |
#35 |
+
–
/srv/users/major-tom/apps/major-tom/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 /** |
#36 |
+
–
/srv/users/major-tom/apps/major-tom/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(); |
#37 |
+
–
/srv/users/major-tom/apps/major-tom/public/index.php(19): require_once("/srv/users/major-tom/apps/major-tom/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; |