/var/www/cofoco/releases/0029a7e75a07cc1a3b8df221c5a102e4ab96c359/plugins/imager/services/ImagerService.php(328)
316 } else { 317 throw new Exception($msg); 318 } 319 } 320 321 if (!craft()->images->checkMemoryForImage($pathsModel->sourcePath . $pathsModel->sourceFilename)) { 322 $msg = Craft::t("Not enough memory available to perform this image operation."); 323 324 if (craft()->imager->getSetting('suppressExceptions')===true) { 325 ImagerPlugin::log($msg, LogLevel::Error); 326 return null; 327 } else { 328 throw new Exception($msg); 329 } 330 } 331 332 /** 333 * Transform can be either an array or just an object. 334 * Act accordingly and return the results the same way to the template. 335 */ 336 $r = null; 337 338 if (isset($transform[0])) { 339 $transformedImages = array(); 340 foreach ($transform as $t) {
#0 |
+
–
/var/www/cofoco/releases/0029a7e75a07cc1a3b8df221c5a102e4ab96c359/plugins/imager/variables/ImagerVariable.php(26): Craft\ImagerService->transformImage(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778), null) 21 * @param $configOverrides 22 * @return mixed 23 */ 24 public function transformImage($file, $transform, $transformDefaults = null, $configOverrides = null) 25 { 26 $image = craft()->imager->transformImage($file, $transform, $transformDefaults, $configOverrides); 27 return $image; 28 } 29 30 /** 31 * Takes an array of Imager_ImageModel (or anything else that supports getUrl() and getWidth()) |
#1 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(690): Craft\ImagerVariable->transformImage(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778)) 685 // to call is not supported. If ignoreStrictCheck is true, we should return null. 686 try { 687 if (!$arguments) { 688 $ret = $object->$method(); 689 } else { 690 $ret = call_user_func_array(array($object, $method), $arguments); 691 } 692 } catch (BadMethodCallException $e) { 693 if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) { 694 return; 695 } |
#2 |
+
–
/var/www/cofoco/craft/app/etc/templating/BaseTemplate.php(64): Twig_Template->getAttribute(Craft\ImagerVariable, "transformImage", array(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778)), "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 |
#3 |
+
–
/var/www/cofoco/craft/storage/runtime/compiled_templates/2a/2a04b410d88415e57b36279d2c538ffd9ccd0c9ac795271b2824e5f697a24ab1.php(115): Craft\BaseTemplate->getAttribute(Craft\ImagerVariable, "transformImage", array(Craft\AssetFileModel, array(array("width" => 360), array("width" => 720, "jpegQuality" => 80)), array("position" => "center-center", "ratio" => 1.7777777777778)), "method") 110 // line 52 111 echo "\t\t\t\t"; 112 $context["sizes"] = array(0 => array("width" => 360), 1 => array("width" => (360 * 2), "jpegQuality" => 80)); 113 // line 56 114 echo "\t\t\t\t"; 115 $context["transformedImages"] = $this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "imager", array()), "transformImage", array(0 => ($context["image"] ?? $this->getContext($context, "image")), 1 => ($context["sizes"] ?? $this->getContext($context, "sizes")), 2 => twig_array_merge(($context["imageSettings"] ?? $this->getContext($context, "imageSettings")), array("ratio" => (16 / 9)))), "method"); 116 // line 57 117 echo " 118 \t\t\t\t"; 119 // line 59 120 echo "\t\t\t\t"; |
#4 |
+
–
/var/www/cofoco/craft/storage/runtime/compiled_templates/af/aff3e03762af4971d0b9c95bbb06b699950263b2270d26a1c56d0762ca5f5e9b.php(205): __TwigTemplate_0453fee1ad8da7201e3820febb441afff8451e9c927626853fe7367bb1465049->getteasers(Craft\ElementCriteriaModel, Craft\EntryModel, array("modifier" => "cta", "url" => "https://cofoco-staging.fallwinter.dk/en/news/", "meta" => "Stay Updated", "title" => "Want more news?", ...)) 200 } 201 ob_start(); 202 // line 100 203 echo "\t\t\t\t"; 204 echo $context["__internal_e39a0f5b7f25ed95d53c0b433b5f91d4c883d4630001112aaca4eca0d2f2238a"]->getteasers($this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "selectedNewsEntries", array()), $this->getAttribute($this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "selectedNewsEntries", array()), "first", array()), array("modifier" => "cta", "url" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 102 205 ($context["craft"] ?? $this->getContext($context, "craft")), "entries", array()), "section", array(0 => "newsArchive"), "method"), "first", array()), "url", array()), "meta" => \Craft\Craft::t("Stay Updated"), "title" => \Craft\Craft::t("Want more news?"), "label" => \Craft\Craft::t("Click for more"))); 206 // line 106 207 echo " 208 \t\t\t"; 209 $cacheBody3 = ob_get_clean(); 210 if (!$ignoreCache3) { |
#5 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(215): __TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991->block_content(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("siteHeader" => array(__TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be, "block_siteHeader"), "content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 210 throw new LogicException('A block must be a method on a Twig_Template instance.'); 211 } 212 213 if (null !== $template) { 214 try { 215 $template->$block($context, $blocks); 216 } catch (Twig_Error $e) { 217 if (!$e->getSourceContext()) { 218 $e->setSourceContext($template->getSourceContext()); 219 } 220 |
#6 |
+
–
/var/www/cofoco/craft/storage/runtime/compiled_templates/59/59731e7aca695f4eb0bac82ad0d3b99a5dd88ab345701bf0aba64e66e1811490.php(76): Twig_Template->displayBlock("content", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("siteHeader" => array(__TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be, "block_siteHeader"), "content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 71 // line 48 72 echo " 73 \t\t<main id=\"content\" class=\"content-main\" role=\"main\"> 74 \t\t\t"; 75 // line 50 76 $this->displayBlock("content", $context, $blocks); 77 echo " 78 79 \t\t\t"; 80 // line 52 81 $this->loadTemplate("@csr-billboard", "layout", 52)->display(array_merge($context, array("solarStats" => array("linkUrl" => ((($this->getAttribute($this->getAttribute($this->getAttribute( // line 54 |
#7 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("siteHeader" => array(__TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be, "block_siteHeader"), "content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 427 } 428 429 protected function displayWithErrorHandling(array $context, array $blocks = array()) 430 { 431 try { 432 $this->doDisplay($context, $blocks); 433 } catch (Twig_Error $e) { 434 if (!$e->getSourceContext()) { 435 $e->setSourceContext($this->getSourceContext()); 436 } 437 |
#8 |
+
–
/var/www/cofoco/craft/app/etc/templating/BaseTemplate.php(26): Twig_Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("siteHeader" => array(__TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be, "block_siteHeader"), "content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "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 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(403): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("siteHeader" => array(__TwigTemplate_3fb6239122d7050407bde8e4020cdb8b6c6d2dc513fe2b79abf484eaa58103be, "block_siteHeader"), "content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 398 return $this->blocks; 399 } 400 401 public function display(array $context, array $blocks = array()) 402 { 403 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 404 } 405 406 public function render(array $context) 407 { 408 $level = ob_get_level(); |
#10 |
+
–
/var/www/cofoco/craft/storage/runtime/compiled_templates/af/aff3e03762af4971d0b9c95bbb06b699950263b2270d26a1c56d0762ca5f5e9b.php(51): Twig_Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 46 } 47 $_parent = $context['_parent']; 48 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']); 49 $context = array_intersect_key($context, $_parent) + $_parent; 50 // line 1 51 $this->parent->display($context, array_merge($this->blocks, $blocks)); 52 } 53 54 // line 35 55 public function block_content($context, array $blocks = array()) 56 { |
#11 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 427 } 428 429 protected function displayWithErrorHandling(array $context, array $blocks = array()) 430 { 431 try { 432 $this->doDisplay($context, $blocks); 433 } catch (Twig_Error $e) { 434 if (!$e->getSourceContext()) { 435 $e->setSourceContext($this->getSourceContext()); 436 } 437 |
#12 |
+
–
/var/www/cofoco/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_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "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 { |
#13 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(403): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_8b5ea7c17879ac4a3be698d61abad50d405daea4d334bce2e278681451905991, "block_content"))) 398 return $this->blocks; 399 } 400 401 public function display(array $context, array $blocks = array()) 402 { 403 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 404 } 405 406 public function render(array $context) 407 { 408 $level = ob_get_level(); |
#14 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(array("entry" => Craft\EntryModel)) 406 public function render(array $context) 407 { 408 $level = ob_get_level(); 409 ob_start(); 410 try { 411 $this->display($context); 412 } catch (Exception $e) { 413 while (ob_get_level() > $level) { 414 ob_end_clean(); 415 } 416 |
#15 |
+
–
/var/www/cofoco/craft/app/vendor/twig/twig/lib/Twig/Environment.php(363): Twig_Template->render(array("entry" => Craft\EntryModel)) 358 * @throws Twig_Error_Syntax When an error occurred during compilation 359 * @throws Twig_Error_Runtime When an error occurred during rendering 360 */ 361 public function render($name, array $context = array()) 362 { 363 return $this->loadTemplate($name)->render($context); 364 } 365 366 /** 367 * Displays a template. 368 * |
#16 |
+
–
/var/www/cofoco/craft/app/services/TemplatesService.php(256): Twig_Environment->render("index", 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 { |
#17 |
+
–
/var/www/cofoco/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("index", 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 } |
#18 |
+
–
/var/www/cofoco/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("index", 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 } |
#19 |
unknown(0): Craft\TemplatesController->actionRender("index", array("entry" => Craft\EntryModel))
|
#20 |
+
–
/var/www/cofoco/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("index", 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 } |
#21 |
+
–
/var/www/cofoco/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("variables" => array("entry" => Craft\EntryModel), "template" => "index")) 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 } |
#22 |
+
–
/var/www/cofoco/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("variables" => array("entry" => Craft\EntryModel), "template" => "index")) 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; |
#23 |
+
–
/var/www/cofoco/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(); |
#24 |
+
–
/var/www/cofoco/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); |
#25 |
+
–
/var/www/cofoco/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))); |
#26 |
+
–
/var/www/cofoco/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. |
#27 |
+
–
/var/www/cofoco/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 * |
#28 |
+
–
/var/www/cofoco/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 /** |
#29 |
+
–
/var/www/cofoco/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(); |
#30 |
+
–
/var/www/cofoco/releases/2a734e5392f681e62ef02ce6e30ee51ec5a32f6e/public/en/index.php(34): require_once("/var/www/cofoco/craft/app/index.php") 29 } 30 31 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 32 } 33 34 require_once $path; |