Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Twig_Error_Syntax
- Unknown "processString" function.
- /srv/limesurvey/themes/survey/vanilla/views/subviews/header/head.twig(33)
- 21 {{ registerScript('activateActionLink',"activateActionLink();", "POS_POSTSCRIPT") }}
- 22 {{ registerScript('activateConfirmButton',"activateConfirmButton();", "POS_POSTSCRIPT") }}
- 23
- 24 <head>
- 25 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- 26 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- 27 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- 28 <meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
- 29
- 30 {{ aSurveyInfo.metas }}
- 31
- 32 <title>
- 33 {{ processString(aSurveyInfo.surveyls_title,1) }}
- 34 </title>
- 35
- 36 <link rel="shortcut icon" href="{{ aSurveyInfo.oTemplate.sTemplateurl }}files/favicon.ico" />
- 37 <script type="text/javascript">
- 38 if(window.basicThemeScripts === undefined){
- 39 window.basicThemeScripts = new ThemeScripts();
- 40 }
- 41 </script>
- 42 {# Ajax mode #}
- 43 {% if(aSurveyInfo.options.ajaxmode == "on") %}
- 44 <script type="text/javascript">
- 45 var ajaxHandler = new AjaxSubmitObject();
- Stack Trace
- #0
- –
- /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(374): Twig_ExpressionParser->getFunctionNodeClass("processString", 33)
- 369
- 370 return $node;
- 371 }
- 372
- 373 $args = $this->parseArguments(true);
- 374 $class = $this->getFunctionNodeClass($name, $line);
- 375
- 376 return new $class($name, $args, $line);
- 377 }
- 378 }
- 379
- #1
- –
- /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(162): Twig_ExpressionParser->getFunctionNode("processString", 33)
- 157 $node = new Twig_Node_Expression_Constant(null, $token->getLine());
- 158 break;
- 159
- 160 default:
- 161 if ('(' === $this->parser->getCurrentToken()->getValue()) {
- 162 $node = $this->getFunctionNode($token->getValue(), $token->getLine());
- 163 } else {
- 164 $node = new Twig_Node_Expression_Name($token->getValue(), $token->getLine());
- 165 }
- 166 }
- 167 break;
- #2
- –
- /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(102): Twig_ExpressionParser->parsePrimaryExpression()
- 097 $this->parser->getStream()->expect(Twig_Token::PUNCTUATION_TYPE, ')', 'An opened parenthesis is not properly closed');
- 098
- 099 return $this->parsePostfixExpression($expr);
- 100 }
- 101
- 102 return $this->parsePrimaryExpression();
- 103 }
- 104
- 105 protected function parseConditionalExpression($expr)
- 106 {
- 107 while ($this->parser->getStream()->nextIf(Twig_Token::PUNCTUATION_TYPE, '?')) {
- #3
- –
- /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(55): Twig_ExpressionParser->getPrimary()
- 50 }
- 51 }
- 52
- 53 public function parseExpression($precedence = 0)
- 54 {
- 55 $expr = $this->getPrimary();
- 56 $token = $this->parser->getCurrentToken();
- 57 while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $precedence) {
- 58 $op = $this->binaryOperators[$token->getValue()];
- 59 $this->parser->getStream()->next();
- 60
- #4
- –
- /srv/limesurvey/application/third_party/Twig/Parser.php(150): Twig_ExpressionParser->parseExpression()
- 145 $rv[] = new Twig_Node_Text($token->getValue(), $token->getLine());
- 146 break;
- 147
- 148 case Twig_Token::VAR_START_TYPE:
- 149 $token = $this->stream->next();
- 150 $expr = $this->expressionParser->parseExpression();
- 151 $this->stream->expect(Twig_Token::VAR_END_TYPE);
- 152 $rv[] = new Twig_Node_Print($expr, $token->getLine());
- 153 break;
- 154
- 155 case Twig_Token::BLOCK_START_TYPE:
- #5
- –
- /srv/limesurvey/application/third_party/Twig/Parser.php(106): Twig_Parser->subparse(null, false)
- 101 $this->blockStack = array();
- 102 $this->importedSymbols = array(array());
- 103 $this->embeddedTemplates = array();
- 104
- 105 try {
- 106 $body = $this->subparse($test, $dropNeedle);
- 107
- 108 if (null !== $this->parent && null === $body = $this->filterBodyNodes($body)) {
- 109 $body = new Twig_Node();
- 110 }
- 111 } catch (Twig_Error_Syntax $e) {
- #6
- –
- /srv/limesurvey/application/third_party/Twig/Environment.php(684): Twig_Parser->parse(Twig_TokenStream)
- 679 {
- 680 if (null === $this->parser) {
- 681 $this->parser = new Twig_Parser($this);
- 682 }
- 683
- 684 return $this->parser->parse($stream);
- 685 }
- 686
- 687 /**
- 688 * Gets the Compiler instance.
- 689 *
- #7
- –
- /srv/limesurvey/application/third_party/Twig/Environment.php(742): Twig_Environment->parse(Twig_TokenStream)
- 737 @trigger_error(sprintf('Passing a string as the $source argument of %s() is deprecated since version 1.27. Pass a Twig_Source instance instead.', __METHOD__), E_USER_DEPRECATED);
- 738 $source = new Twig_Source($source, $name);
- 739 }
- 740
- 741 try {
- 742 return $this->compile($this->parse($this->tokenize($source)));
- 743 } catch (Twig_Error $e) {
- 744 $e->setSourceContext($source);
- 745 throw $e;
- 746 } catch (Exception $e) {
- 747 throw new Twig_Error_Syntax(sprintf('An exception has been thrown during the compilation of a template ("%s").', $e->getMessage()), -1, $source, $e);
- #8
- –
- /srv/limesurvey/application/third_party/Twig/Environment.php(443): Twig_Environment->compileSource(Twig_Source)
- 438 $source = new Twig_Source($loader->getSource($name), $name);
- 439 } else {
- 440 $source = $loader->getSourceContext($name);
- 441 }
- 442
- 443 $content = $this->compileSource($source);
- 444
- 445 if ($this->bcWriteCacheFile) {
- 446 $this->writeCacheFile($key, $content);
- 447 } else {
- 448 $this->cache->write($key, $content);
- #9
- –
- /srv/limesurvey/application/third_party/Twig/Environment.php(559): Twig_Environment->loadTemplate("./subviews/header/head.twig")
- 554 if ($name instanceof Twig_Template) {
- 555 return $name;
- 556 }
- 557
- 558 try {
- 559 return $this->loadTemplate($name);
- 560 } catch (Twig_Error_Loader $e) {
- 561 }
- 562 }
- 563
- 564 if (1 === count($names)) {
- #10
- –
- /srv/limesurvey/application/third_party/Twig/Extension/Core.php(1400): Twig_Environment->resolveTemplate(array("./subviews/header/head.twig"))
- 1395 }
- 1396 }
- 1397
- 1398 $result = null;
- 1399 try {
- 1400 $result = $env->resolveTemplate($template)->render($variables);
- 1401 } catch (Twig_Error_Loader $e) {
- 1402 if (!$ignoreMissing) {
- 1403 if ($isSandboxed && !$alreadySandboxed) {
- 1404 $sandbox->disableSandbox();
- 1405 }
- #11
- –
- /srv/limesurvey/tmp/runtime/twig_cache/bb/bb57f81dd35995da8cbd2e25af96dd49842dffa4a12c1b6729881f42a58d87f8.php(73): twig_include(Twig_Environment, array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...), "App" => LSYii_Application, "C" => ETwigViewRendererYiiCoreStaticClassesProxy, "html" => ETwigViewRendererStaticClassProxy), "./subviews/header/head.twig")
- 68 echo ">
- 69
- 70 ";
- 71 // line 91
- 72 echo " ";
- 73 echo $this->env->getExtension('Twig_Extension_Sandbox')->ensureToStringAllowed(twig_include($this->env, $context, "./subviews/header/head.twig"));
- 74 echo "
- 75
- 76 <body class=\" ";
- 77 // line 93
- 78 echo $this->env->getExtension('Twig_Extension_Sandbox')->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["aSurveyInfo"] ?? null), "class", array()), "body", array()));
- #12
- –
- /srv/limesurvey/application/third_party/Twig/Template.php(438): __TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62->doDisplay(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...), "App" => LSYii_Application, "C" => ETwigViewRendererYiiCoreStaticClassesProxy, "html" => ETwigViewRendererStaticClassProxy), array("body" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_body"), "nav_bar" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_nav_bar"), "content" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_content"), "footer" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_footer"), ...))
- 433 }
- 434
- 435 protected function displayWithErrorHandling(array $context, array $blocks = array())
- 436 {
- 437 try {
- 438 $this->doDisplay($context, $blocks);
- 439 } catch (Twig_Error $e) {
- 440 if (!$e->getSourceContext()) {
- 441 $e->setSourceContext($this->getSourceContext());
- 442 }
- 443
- #13
- –
- /srv/limesurvey/application/third_party/Twig/Template.php(406): Twig_Template->displayWithErrorHandling(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...), "App" => LSYii_Application, "C" => ETwigViewRendererYiiCoreStaticClassesProxy, "html" => ETwigViewRendererStaticClassProxy), array("body" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_body"), "nav_bar" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_nav_bar"), "content" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_content"), "footer" => array(__TwigTemplate_f5529b9fa1762781b5d315e7063a7522ae1b58a2a66a682b5fd497b159af6f62, "block_footer"), ...))
- 401 /**
- 402 * {@inheritdoc}
- 403 */
- 404 public function display(array $context, array $blocks = array())
- 405 {
- 406 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
- 407 }
- 408
- 409 /**
- 410 * {@inheritdoc}
- 411 */
- #14
- –
- /srv/limesurvey/application/third_party/Twig/Template.php(417): Twig_Template->display(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)))
- 412 public function render(array $context)
- 413 {
- 414 $level = ob_get_level();
- 415 ob_start();
- 416 try {
- 417 $this->display($context);
- 418 } catch (Exception $e) {
- 419 while (ob_get_level() > $level) {
- 420 ob_end_clean();
- 421 }
- 422
- #15
- –
- /srv/limesurvey/application/core/LSETwigViewRenderer.php(348): Twig_Template->render(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)), false)
- 343 list($sString, $aDatas) = $this->getPluginsData($sString, $aDatas);
- 344 }
- 345
- 346 // Twig rendering
- 347 $oTwigTemplate = $twig->createTemplate($sString);
- 348 $sHtml = $oTwigTemplate->render($aDatas, false);
- 349
- 350 return $sHtml;
- 351 }
- 352
- 353 /**
- #16
- –
- /srv/limesurvey/application/core/LSETwigViewRenderer.php(42): LSETwigViewRenderer->convertTwigToHtml("{# LimeSurvey Copyright (C) 2007-2017 The LimeSurvey Pro...", array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)), TemplateConfiguration)
- 37 {
- 38 $oTemplate = Template::model()->getInstance();
- 39 $oLayoutTemplate = $this->getTemplateForView($sLayout, $oTemplate);
- 40 if ($oLayoutTemplate) {
- 41 $line = file_get_contents($oLayoutTemplate->viewPath.$sLayout);
- 42 $sHtml = $this->convertTwigToHtml($line, $aDatas, $oTemplate);
- 43 $sEmHiddenInputs = LimeExpressionManager::FinishProcessPublicPage(true);
- 44 if($sEmHiddenInputs) {
- 45 $sHtml = str_replace("<!-- emScriptsAndHiddenInputs -->","<!-- emScriptsAndHiddenInputs updated -->\n".$sEmHiddenInputs,$sHtml);
- 46 }
- 47 if ($bReturn) {
- #17
- –
- /srv/limesurvey/application/controllers/SurveysController.php(54): LSETwigViewRenderer->renderTemplateFromFile("layout_survey_list.twig", array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)), false)
- 49 $aData['alanguageChanger']['datas'] = $alanguageChangerDatas;
- 50 }
- 51
- 52 Yii::app()->clientScript->registerScriptFile(Yii::app()->getConfig("generalscripts").'nojs.js', CClientScript::POS_HEAD);
- 53
- 54 Yii::app()->twigRenderer->renderTemplateFromFile("layout_survey_list.twig", array('aSurveyInfo'=>$aData), false);
- 55
- 56 }
- 57 /**
- 58 * System error : only 404 error are managed here (2016-11-29)
- 59 * SurveysController is the default controller set in internal
- #18
- unknown(0): SurveysController->actionPublicList(null)
- #19
- –
- /srv/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveysController, array(null))
- 104 elseif($param->isDefaultValueAvailable())
- 105 $ps[]=$param->getDefaultValue();
- 106 else
- 107 return false;
- 108 }
- 109 $method->invokeArgs($object,$ps);
- 110 return true;
- 111 }
- 112 }
- #20
- –
- /srv/limesurvey/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SurveysController, ReflectionMethod, array())
- 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 }
- #21
- –
- /srv/limesurvey/framework/web/CController.php(308): CInlineAction->runWithParams(array())
- 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;
- #22
- –
- /srv/limesurvey/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();
- #23
- –
- /srv/limesurvey/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);
- #24
- –
- /srv/limesurvey/framework/web/CWebApplication.php(282): CController->run("")
- 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)));
- #25
- –
- /srv/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("")
- 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.
- #26
- –
- /srv/limesurvey/framework/base/CApplication.php(185): CWebApplication->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 /**
- #27
- –
- /srv/limesurvey/index.php(194): CApplication->run()
- 189 require_once APPPATH . 'core/LSYii_Application' . EXT;
- 190
- 191 $config = require_once(APPPATH . 'config/internal' . EXT);
- 192
- 193 Yii::$enableIncludePath = false;
- 194 Yii::createApplication('LSYii_Application', $config)->run();
- 195
- 196 /* End of file index.php */
- 197 /* Location: ./index.php */
- 2018-07-18 09:06:48 Apache/2.4.10 (Debian) Yii Framework/1.1.19
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement