/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Extension/Core.php(1275)
1263 * @return int The length of the value 1264 */ 1265 function twig_length_filter(Twig_Environment $env, $thing) 1266 { 1267 if (is_scalar($thing)) { 1268 return mb_strlen($thing, $env->getCharset()); 1269 } 1270 1271 if (is_object($thing) && method_exists($thing, '__toString') && !$thing instanceof \Countable) { 1272 return mb_strlen((string) $thing, $env->getCharset()); 1273 } 1274 1275 return count($thing); 1276 } 1277 1278 /** 1279 * Converts a string to uppercase. 1280 * 1281 * @param Twig_Environment $env 1282 * @param string $string A string 1283 * 1284 * @return string The uppercased string 1285 */ 1286 function twig_upper_filter(Twig_Environment $env, $string) 1287 {
#0 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/etc/web/WebApp.php(693): CApplication->handleError(2, "count(): Parameter must be an array or an object that implements...", "/home/staging/public_html/subdomains/wizardjeans/craft/app/vendo...", 1275) 688 if (version_compare(PHP_VERSION, '7.1', '>=') && strpos($message, 'Narrowing occurred during type inference. Please file a bug report') !== false) 689 { 690 return; 691 } 692 693 parent::handleError($code, $message, $file, $line); 694 } 695 696 // Private Methods 697 // ========================================================================= 698 |
#1 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Extension/Core.php(1275): Craft\WebApp->handleError(2, "count(): Parameter must be an array or an object that implements...", "/home/staging/public_html/subdomains/wizardjeans/craft/app/vendo...", 1275, ...) 1270 1271 if (is_object($thing) && method_exists($thing, '__toString') && !$thing instanceof \Countable) { 1272 return mb_strlen((string) $thing, $env->getCharset()); 1273 } 1274 1275 return count($thing); 1276 } 1277 1278 /** 1279 * Converts a string to uppercase. 1280 * |
#2 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/storage/runtime/compiled_templates/6f/6f164c086311a502f7d06ab4dd929d07299310553e2edbecd2dd6dc8f3181e6a.php(118): twig_length_filter(Craft\TwigEnvironment, null) 113 "; 114 // line 52 115 echo " 116 "; 117 // line 53 118 if (twig_length_filter($this->env, $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "displayForm", array()))) { 119 // line 54 120 echo " <div class=\"display-form\"> 121 "; 122 // line 55 123 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["craft"] ?? $this->getContext($context, "craft")), "amForms", array()), "displayForm", array(0 => $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "displayForm", array())), "method"), "html", null, true); |
#3 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Template.php(215): __TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d->block_content(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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 |
#4 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/storage/runtime/compiled_templates/ed/ed2a555e277ab77d402dbb8ee91b33b431554167c9ee0580316ef5ce13712efb.php(1009): Twig_Template->displayBlock("content", array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_content"))) 1004 // line 307 1005 echo " 1006 "; 1007 // line 309 1008 echo " "; 1009 $this->displayBlock('content', $context, $blocks); 1010 // line 311 1011 echo " 1012 "; 1013 // line 313 1014 echo " <footer> |
#5 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_95501d86075a8a8b78e2ac337ef1c8390f53a3ce0147399f26c71e8264711c95->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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 |
#6 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/etc/templating/BaseTemplate.php(26): Twig_Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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 { |
#7 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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(); |
#8 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/storage/runtime/compiled_templates/6f/6f164c086311a502f7d06ab4dd929d07299310553e2edbecd2dd6dc8f3181e6a.php(30): Twig_Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_content"))) 25 // line 4 26 $context["activeslug"] = $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "slug", array()); 27 // line 5 28 $context["templateName"] = "temp-default temp-inner-page temp-shop"; 29 // line 3 30 $this->parent->display($context, array_merge($this->blocks, $blocks)); 31 } 32 33 // line 7 34 public function block_banner($context, array $blocks = array()) 35 { |
#9 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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 |
#10 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/etc/templating/BaseTemplate.php(26): Twig_Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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 { |
#11 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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("banner" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "block_banner"), "content" => array(__TwigTemplate_115264b01ab74509ae38b9293e9e625966d4bc7307d031b2e19237d4669a0b7d, "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(); |
#12 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/storage/runtime/compiled_templates/7e/7ebcf4b5ea22fd6ffd96af44f1cc30ef271f01063a39b0bfdf0c85b5e693cb70.php(19): Twig_Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...)) 14 } 15 16 protected function doDisplay(array $context, array $blocks = array()) 17 { 18 // line 2 19 $this->loadTemplate(("pages/_types/" . $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "type", array())), "pages/page-template", 2)->display($context); 20 } 21 22 public function getTemplateName() 23 { 24 return "pages/page-template"; |
#13 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_6920eb75846239608207606393e2ea3370ce6dcea7249336e11a9e2b1e78a983->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array()) 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 |
#14 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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 { |
#15 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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()) 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(); |
#16 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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 |
#17 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/vendor/twig/twig/lib/Twig/Environment.php(362): Twig_Template->render(array("entry" => Craft\EntryModel)) 357 * @throws Twig_Error_Syntax When an error occurred during compilation 358 * @throws Twig_Error_Runtime When an error occurred during rendering 359 */ 360 public function render($name, array $context = array()) 361 { 362 return $this->loadTemplate($name)->render($context); 363 } 364 365 /** 366 * Displays a template. 367 * |
#18 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/services/TemplatesService.php(256): Twig_Environment->render("pages/page-template", 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 { |
#19 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("pages/page-template", 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 } |
#20 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("pages/page-template", 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 } |
#21 |
unknown(0): Craft\TemplatesController->actionRender("pages/page-template", array("entry" => Craft\EntryModel))
|
#22 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("pages/page-template", 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 } |
#23 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("p" => "about/what-our-customers-say", "variables" => array("entry" => Craft\EntryModel), "template" => "pages/page-template")) 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 } |
#24 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("p" => "about/what-our-customers-say", "variables" => array("entry" => Craft\EntryModel), "template" => "pages/page-template")) 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; |
#25 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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(); |
#26 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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); |
#27 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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))); |
#28 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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. |
#29 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/etc/web/WebApp.php(290): CWebApplication->processRequest() 285 286 // If this is an action request, call the controller 287 $this->_processActionRequest(); 288 289 // If we're still here, finally let UrlManager do it's thing. 290 parent::processRequest(); 291 } 292 293 /** 294 * Returns the target application language. 295 * |
#30 |
+
–
/home/staging/public_html/subdomains/wizardjeans/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 /** |
#31 |
+
–
/home/staging/public_html/subdomains/wizardjeans/craft/app/index.php(62): CApplication->run() 57 58 // Load and run Craft 59 // ----------------------------------------------------------------------------- 60 61 $app = require 'bootstrap.php'; 62 $app->run(); |
#32 |
+
–
/home/staging/public_html/subdomains/wizardjeans/public/index.php(20): require_once("/home/staging/public_html/subdomains/wizardjeans/craft/app/index...") 15 } 16 17 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 18 } 19 20 require_once $path; |