/var/www/vhosts/passthesound.com/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 |
+
–
/var/www/vhosts/passthesound.com/craft/app/etc/web/WebApp.php(693): CApplication->handleError(2, "count(): Parameter must be an array or an object that implements...", "/var/www/vhosts/passthesound.com/craft/app/vendor/twig/twig/lib/...", 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 |
+
–
/var/www/vhosts/passthesound.com/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...", "/var/www/vhosts/passthesound.com/craft/app/vendor/twig/twig/lib/...", 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 |
+
–
/var/www/vhosts/passthesound.com/craft/storage/runtime/compiled_templates/0b/0bf064bcc6002da9079ea5c4ea0f0295c27e25fcd9af61b3ce3c504410a04cfa.php(65): twig_length_filter(Craft\TwigEnvironment, null) 60 } 61 // line 16 62 echo " 63 "; 64 // line 17 65 if (twig_length_filter($this->env, $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "body", array()))) { 66 // line 18 67 echo " "; 68 $context["description"] = strip_tags($this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "body", array())); 69 // line 19 70 echo " "; |
#3 |
+
–
/var/www/vhosts/passthesound.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_a59ad17f9d42dbaa0913fd654ef1f9d45328e0858d7de73a5670226f24b4c6ab->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 |
#4 |
+
–
/var/www/vhosts/passthesound.com/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 { |
#5 |
+
–
/var/www/vhosts/passthesound.com/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(); |
#6 |
+
–
/var/www/vhosts/passthesound.com/craft/storage/runtime/compiled_templates/dd/dd18ecb7e2e33ce9c974f4379ee4c58ef1dea392fcbb82524ada76aca9b20e74.php(26): Twig_Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...)) 21 echo "<!DOCTYPE html> 22 <html lang=\"EN\"> 23 \t<head> 24 \t\t"; 25 // line 4 26 $this->loadTemplate("/modules/_meta-data", "layouts/_base", 4)->display($context); 27 // line 5 28 echo "\t\t<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\""; 29 echo twig_escape_filter($this->env, \Craft\UrlHelper::getUrl("assets/icons/favicon-32x32.png"), "html", null, true); 30 echo "\"> 31 \t\t<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\""; |
#7 |
+
–
/var/www/vhosts/passthesound.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_ec23c0612778f08ad90a7d4e9636040e33bc1b7fba258a59c4758ac2cae2c6de->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("header" => array(__TwigTemplate_ec23c0612778f08ad90a7d4e9636040e33bc1b7fba258a59c4758ac2cae2c6de, "block_header"), "content" => array(__TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/craft/app/etc/templating/BaseTemplate.php(26): Twig_Template->displayWithErrorHandling(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("header" => array(__TwigTemplate_ec23c0612778f08ad90a7d4e9636040e33bc1b7fba258a59c4758ac2cae2c6de, "block_header"), "content" => array(__TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/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("header" => array(__TwigTemplate_ec23c0612778f08ad90a7d4e9636040e33bc1b7fba258a59c4758ac2cae2c6de, "block_header"), "content" => array(__TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/craft/storage/runtime/compiled_templates/10/1089c8e69a655b4f56755a8d80ca5d7665163acbe1a420b255bb1ad6d6285cd3.php(29): Twig_Template->display(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "block_content"))) 24 // line 2 25 $context["categories"] = $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "category", array()); 26 // line 3 27 $context["title"] = $this->getAttribute(($context["entry"] ?? $this->getContext($context, "entry")), "title", array()); 28 // line 1 29 $this->parent->display($context, array_merge($this->blocks, $blocks)); 30 } 31 32 // line 5 33 public function block_content($context, array $blocks = array()) 34 { |
#11 |
+
–
/var/www/vhosts/passthesound.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478->doDisplay(array("entry" => Craft\EntryModel, "user" => null, "currentUser" => null, "craft" => Craft\CraftVariable, ...), array("content" => array(__TwigTemplate_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/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_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/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_9545da6a543e2633fac04009aef1ce0d5e76f8d2a638777d3b4c97d3beba3478, "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/vhosts/passthesound.com/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/vhosts/passthesound.com/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 * |
#16 |
+
–
/var/www/vhosts/passthesound.com/craft/app/services/TemplatesService.php(256): Twig_Environment->render("instructors/_instructors-single", 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/vhosts/passthesound.com/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render("instructors/_instructors-single", 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/vhosts/passthesound.com/craft/app/controllers/TemplatesController.php(68): Craft\BaseController->renderTemplate("instructors/_instructors-single", 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("instructors/_instructors-single", array("entry" => Craft\EntryModel))
|
#20 |
+
–
/var/www/vhosts/passthesound.com/craft/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Craft\TemplatesController, array("instructors/_instructors-single", 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/vhosts/passthesound.com/craft/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Craft\TemplatesController, ReflectionMethod, array("p" => "instructors/emma-rekers", "variables" => array("entry" => Craft\EntryModel), "template" => "instructors/_instructors-single")) 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/vhosts/passthesound.com/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("p" => "instructors/emma-rekers", "variables" => array("entry" => Craft\EntryModel), "template" => "instructors/_instructors-single")) 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/vhosts/passthesound.com/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/vhosts/passthesound.com/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/vhosts/passthesound.com/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/vhosts/passthesound.com/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/vhosts/passthesound.com/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 * |
#28 |
+
–
/var/www/vhosts/passthesound.com/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/vhosts/passthesound.com/craft/app/index.php(62): CApplication->run() 57 58 // Load and run Craft 59 // ----------------------------------------------------------------------------- 60 61 $app = require 'bootstrap.php'; 62 $app->run(); |
#30 |
+
–
/var/www/vhosts/passthesound.com/httpdocs/index.php(19): require_once("/var/www/vhosts/passthesound.com/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; |