/srv/users/serverpilot/apps/obi-site/craft/plugins/imager/services/ImagerService.php(317)
305 } else { 306 throw new Exception($msg); 307 } 308 } 309 310 if (!IOHelper::fileExists($pathsModel->sourcePath . $pathsModel->sourceFilename)) { 311 $msg = Craft::t('Requested image “{fileName}” does not exist in path “{sourcePath}”', array('fileName' => $pathsModel->sourceFilename, 'sourcePath' => $pathsModel->sourcePath)); 312 313 if (craft()->imager->getSetting('suppressExceptions')===true) { 314 ImagerPlugin::log($msg, LogLevel::Error); 315 return null; 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 }
#0 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/plugins/imager/variables/ImagerVariable.php(26): Craft\ImagerService->transformImage(Craft\AssetFileModel, array("width" => 580, "format" => "jpg"), null, 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 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(685): Craft\ImagerVariable->transformImage(Craft\AssetFileModel, array("width" => 580, "format" => "jpg")) 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 } |
#2 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/etc/templating/BaseTemplate.php(64): Twig\Template->getAttribute(Craft\ImagerVariable, "transformImage", array(Craft\AssetFileModel, array("width" => 580, "format" => "jpg")), "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 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/storage/runtime/compiled_templates/6d/6dc1d589ca4694128472975448e5ed29c97aec50d202c25854931c0a5b954c72.php(51): Craft\BaseTemplate->getAttribute(Craft\ImagerVariable, "transformImage", array(Craft\AssetFileModel, array("width" => 580, "format" => "jpg")), "method") 46 "; 47 // line 17 48 if (($this->getAttribute(($context["settings"] ?? null), "photo", [], "any", true, true) && !(null === $this->getAttribute(($context["settings"] ?? $this->getContext($context, "settings")), "photo", [])))) { 49 // line 18 50 echo "\t"; 51 $context["transformedImage"] = $this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "imager", []), "transformImage", [0 => $this->getAttribute($this->getAttribute(($context["settings"] ?? $this->getContext($context, "settings")), "photo", []), "first", []), 1 => ["width" => 580, "format" => "jpg"]], "method"); 52 } 53 // line 20 54 echo " 55 <li class=\"c-home-tile"; 56 // line 21 |
#4 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_555d200c121f953286c61e5d1ad97a680b1f61a0e17b2e0225dda00fa6d2558d->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array()) 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 |
#5 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/etc/templating/BaseTemplate.php(26): Twig\Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array()) 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 { |
#6 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array()) 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(); |
#7 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/storage/runtime/compiled_templates/81/81ff9b85fb708e6f8f5993b6a2341fa62d2e1e7c2d64b0c5403ed015c78e771f.php(195): Twig\Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...)) 190 } 191 // line 88 192 echo " 193 \t\t\t\t\t\t\t\t\t"; 194 // line 89 195 $this->loadTemplate("components/_home-tile", "index", 89)->display(twig_array_merge($context, ["settings" => ["type" => $this->getAttribute($this->getAttribute( // line 90 196 $context["item"], "type", []), "handle", []), "heading" => $this->getAttribute( // line 91 197 $context["item"], "heading", []), "description" => // line 92 198 ($context["description"] ?? $this->getContext($context, "description")), "link" => $this->getAttribute( // line 93 199 $context["item"], "linkedUrl", []), "photo" => $this->getAttribute( // line 94 200 $context["item"], "backgroundImage", []), "featured" => // line 95 |
#8 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(217): __TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55->block_content(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "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 |
#9 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/storage/runtime/compiled_templates/5d/5dae29b5c4931b0fa152dcfaaa98efc23f6c845d017e53b5b81e653679fe531f.php(407): Twig\Template->displayBlock("content", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 402 \t\t"; 403 // line 183 404 echo "\t\t<main id=\"content\"> 405 \t\t\t"; 406 // line 184 407 $this->displayBlock('content', $context, $blocks); 408 // line 187 409 echo "\t\t</main> 410 411 \t\t<footer class=\"site-footer\"> 412 \t\t\t<div class=\"site-footer__copy\"> |
#10 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_d7c27f3330c9f8b805be7c5e8653ea86c0868cd9a4119ba950c67ae70e2b9492->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 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 |
#11 |
+
–
/srv/users/serverpilot/apps/obi-site/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_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "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 { |
#12 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 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(); |
#13 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/storage/runtime/compiled_templates/81/81ff9b85fb708e6f8f5993b6a2341fa62d2e1e7c2d64b0c5403ed015c78e771f.php(35): Twig\Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 30 return "_layout"; 31 } 32 33 protected function doDisplay(array $context, array $blocks = []) 34 { 35 $this->parent->display($context, array_merge($this->blocks, $blocks)); 36 } 37 38 // line 22 39 public function block_content($context, array $blocks = []) 40 { |
#14 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(428): __TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 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 |
#15 |
+
–
/srv/users/serverpilot/apps/obi-site/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_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "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 { |
#16 |
+
–
/srv/users/serverpilot/apps/obi-site/craft/app/vendor/twig/twig/src/Template.php(399): Craft\BaseTemplate->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_bd67f1c51f8a7969517fd3ce9c272f1368a14563965ae4a5d53ac7929d451b55, "block_content"))) 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(); |
#17 |
+
–
/srv/users/serverpilot/apps/obi-site/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 |
#18 |
+
–
/srv/users/serverpilot/apps/obi-site/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 * |
#19 |
+
–
/srv/users/serverpilot/apps/obi-site/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 * |
#20 |
+
–
/srv/users/serverpilot/apps/obi-site/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 { |
#21 |
+
–
/srv/users/serverpilot/apps/obi-site/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 } |
#22 |
+
–
/srv/users/serverpilot/apps/obi-site/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 } |
#23 |
unknown(0): Craft\TemplatesController->actionRender("index", array("entry" => Craft\EntryModel))
|
#24 |
+
–
/srv/users/serverpilot/apps/obi-site/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 } |
#25 |
+
–
/srv/users/serverpilot/apps/obi-site/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 } |
#26 |
+
–
/srv/users/serverpilot/apps/obi-site/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; |
#27 |
+
–
/srv/users/serverpilot/apps/obi-site/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(); |
#28 |
+
–
/srv/users/serverpilot/apps/obi-site/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); |
#29 |
+
–
/srv/users/serverpilot/apps/obi-site/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))); |
#30 |
+
–
/srv/users/serverpilot/apps/obi-site/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. |
#31 |
+
–
/srv/users/serverpilot/apps/obi-site/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 * |
#32 |
+
–
/srv/users/serverpilot/apps/obi-site/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 /** |
#33 |
+
–
/srv/users/serverpilot/apps/obi-site/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(); |
#34 |
+
–
/srv/users/serverpilot/apps/obi-site/public/fr/index.php(22): require_once("/srv/users/serverpilot/apps/obi-site/craft/app/index.php") 17 } 18 19 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 20 } 21 22 require_once $path; |