Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.68 KB | None | 0 0
  1.  
  2. Twig_Error_Syntax
  3.  
  4. Unknown "processString" function.
  5.  
  6. /srv/limesurvey/themes/survey/vanilla/views/subviews/header/head.twig(33)
  7.  
  8. 21 {{ registerScript('activateActionLink',"activateActionLink();", "POS_POSTSCRIPT") }}
  9. 22 {{ registerScript('activateConfirmButton',"activateConfirmButton();", "POS_POSTSCRIPT") }}
  10. 23
  11. 24 <head>
  12. 25 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  13. 26 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  14. 27 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  15. 28 <meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
  16. 29
  17. 30 {{ aSurveyInfo.metas }}
  18. 31
  19. 32 <title>
  20. 33 {{ processString(aSurveyInfo.surveyls_title,1) }}
  21. 34 </title>
  22. 35
  23. 36 <link rel="shortcut icon" href="{{ aSurveyInfo.oTemplate.sTemplateurl }}files/favicon.ico" />
  24. 37 <script type="text/javascript">
  25. 38 if(window.basicThemeScripts === undefined){
  26. 39 window.basicThemeScripts = new ThemeScripts();
  27. 40 }
  28. 41 </script>
  29. 42 {# Ajax mode #}
  30. 43 {% if(aSurveyInfo.options.ajaxmode == "on") %}
  31. 44 <script type="text/javascript">
  32. 45 var ajaxHandler = new AjaxSubmitObject();
  33.  
  34. Stack Trace
  35. #0
  36. /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(374): Twig_ExpressionParser->getFunctionNodeClass("processString", 33)
  37.  
  38. 369
  39. 370 return $node;
  40. 371 }
  41. 372
  42. 373 $args = $this->parseArguments(true);
  43. 374 $class = $this->getFunctionNodeClass($name, $line);
  44. 375
  45. 376 return new $class($name, $args, $line);
  46. 377 }
  47. 378 }
  48. 379
  49.  
  50. #1
  51. /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(162): Twig_ExpressionParser->getFunctionNode("processString", 33)
  52.  
  53. 157 $node = new Twig_Node_Expression_Constant(null, $token->getLine());
  54. 158 break;
  55. 159
  56. 160 default:
  57. 161 if ('(' === $this->parser->getCurrentToken()->getValue()) {
  58. 162 $node = $this->getFunctionNode($token->getValue(), $token->getLine());
  59. 163 } else {
  60. 164 $node = new Twig_Node_Expression_Name($token->getValue(), $token->getLine());
  61. 165 }
  62. 166 }
  63. 167 break;
  64.  
  65. #2
  66. /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(102): Twig_ExpressionParser->parsePrimaryExpression()
  67.  
  68. 097 $this->parser->getStream()->expect(Twig_Token::PUNCTUATION_TYPE, ')', 'An opened parenthesis is not properly closed');
  69. 098
  70. 099 return $this->parsePostfixExpression($expr);
  71. 100 }
  72. 101
  73. 102 return $this->parsePrimaryExpression();
  74. 103 }
  75. 104
  76. 105 protected function parseConditionalExpression($expr)
  77. 106 {
  78. 107 while ($this->parser->getStream()->nextIf(Twig_Token::PUNCTUATION_TYPE, '?')) {
  79.  
  80. #3
  81. /srv/limesurvey/application/third_party/Twig/ExpressionParser.php(55): Twig_ExpressionParser->getPrimary()
  82.  
  83. 50 }
  84. 51 }
  85. 52
  86. 53 public function parseExpression($precedence = 0)
  87. 54 {
  88. 55 $expr = $this->getPrimary();
  89. 56 $token = $this->parser->getCurrentToken();
  90. 57 while ($this->isBinary($token) && $this->binaryOperators[$token->getValue()]['precedence'] >= $precedence) {
  91. 58 $op = $this->binaryOperators[$token->getValue()];
  92. 59 $this->parser->getStream()->next();
  93. 60
  94.  
  95. #4
  96. /srv/limesurvey/application/third_party/Twig/Parser.php(150): Twig_ExpressionParser->parseExpression()
  97.  
  98. 145 $rv[] = new Twig_Node_Text($token->getValue(), $token->getLine());
  99. 146 break;
  100. 147
  101. 148 case Twig_Token::VAR_START_TYPE:
  102. 149 $token = $this->stream->next();
  103. 150 $expr = $this->expressionParser->parseExpression();
  104. 151 $this->stream->expect(Twig_Token::VAR_END_TYPE);
  105. 152 $rv[] = new Twig_Node_Print($expr, $token->getLine());
  106. 153 break;
  107. 154
  108. 155 case Twig_Token::BLOCK_START_TYPE:
  109.  
  110. #5
  111. /srv/limesurvey/application/third_party/Twig/Parser.php(106): Twig_Parser->subparse(null, false)
  112.  
  113. 101 $this->blockStack = array();
  114. 102 $this->importedSymbols = array(array());
  115. 103 $this->embeddedTemplates = array();
  116. 104
  117. 105 try {
  118. 106 $body = $this->subparse($test, $dropNeedle);
  119. 107
  120. 108 if (null !== $this->parent && null === $body = $this->filterBodyNodes($body)) {
  121. 109 $body = new Twig_Node();
  122. 110 }
  123. 111 } catch (Twig_Error_Syntax $e) {
  124.  
  125. #6
  126. /srv/limesurvey/application/third_party/Twig/Environment.php(684): Twig_Parser->parse(Twig_TokenStream)
  127.  
  128. 679 {
  129. 680 if (null === $this->parser) {
  130. 681 $this->parser = new Twig_Parser($this);
  131. 682 }
  132. 683
  133. 684 return $this->parser->parse($stream);
  134. 685 }
  135. 686
  136. 687 /**
  137. 688 * Gets the Compiler instance.
  138. 689 *
  139.  
  140. #7
  141. /srv/limesurvey/application/third_party/Twig/Environment.php(742): Twig_Environment->parse(Twig_TokenStream)
  142.  
  143. 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);
  144. 738 $source = new Twig_Source($source, $name);
  145. 739 }
  146. 740
  147. 741 try {
  148. 742 return $this->compile($this->parse($this->tokenize($source)));
  149. 743 } catch (Twig_Error $e) {
  150. 744 $e->setSourceContext($source);
  151. 745 throw $e;
  152. 746 } catch (Exception $e) {
  153. 747 throw new Twig_Error_Syntax(sprintf('An exception has been thrown during the compilation of a template ("%s").', $e->getMessage()), -1, $source, $e);
  154.  
  155. #8
  156. /srv/limesurvey/application/third_party/Twig/Environment.php(443): Twig_Environment->compileSource(Twig_Source)
  157.  
  158. 438 $source = new Twig_Source($loader->getSource($name), $name);
  159. 439 } else {
  160. 440 $source = $loader->getSourceContext($name);
  161. 441 }
  162. 442
  163. 443 $content = $this->compileSource($source);
  164. 444
  165. 445 if ($this->bcWriteCacheFile) {
  166. 446 $this->writeCacheFile($key, $content);
  167. 447 } else {
  168. 448 $this->cache->write($key, $content);
  169.  
  170. #9
  171. /srv/limesurvey/application/third_party/Twig/Environment.php(559): Twig_Environment->loadTemplate("./subviews/header/head.twig")
  172.  
  173. 554 if ($name instanceof Twig_Template) {
  174. 555 return $name;
  175. 556 }
  176. 557
  177. 558 try {
  178. 559 return $this->loadTemplate($name);
  179. 560 } catch (Twig_Error_Loader $e) {
  180. 561 }
  181. 562 }
  182. 563
  183. 564 if (1 === count($names)) {
  184.  
  185. #10
  186. /srv/limesurvey/application/third_party/Twig/Extension/Core.php(1400): Twig_Environment->resolveTemplate(array("./subviews/header/head.twig"))
  187.  
  188. 1395 }
  189. 1396 }
  190. 1397
  191. 1398 $result = null;
  192. 1399 try {
  193. 1400 $result = $env->resolveTemplate($template)->render($variables);
  194. 1401 } catch (Twig_Error_Loader $e) {
  195. 1402 if (!$ignoreMissing) {
  196. 1403 if ($isSandboxed && !$alreadySandboxed) {
  197. 1404 $sandbox->disableSandbox();
  198. 1405 }
  199.  
  200. #11
  201. /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")
  202.  
  203. 68 echo ">
  204. 69
  205. 70 ";
  206. 71 // line 91
  207. 72 echo " ";
  208. 73 echo $this->env->getExtension('Twig_Extension_Sandbox')->ensureToStringAllowed(twig_include($this->env, $context, "./subviews/header/head.twig"));
  209. 74 echo "
  210. 75
  211. 76 <body class=\" ";
  212. 77 // line 93
  213. 78 echo $this->env->getExtension('Twig_Extension_Sandbox')->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["aSurveyInfo"] ?? null), "class", array()), "body", array()));
  214.  
  215. #12
  216. /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"), ...))
  217.  
  218. 433 }
  219. 434
  220. 435 protected function displayWithErrorHandling(array $context, array $blocks = array())
  221. 436 {
  222. 437 try {
  223. 438 $this->doDisplay($context, $blocks);
  224. 439 } catch (Twig_Error $e) {
  225. 440 if (!$e->getSourceContext()) {
  226. 441 $e->setSourceContext($this->getSourceContext());
  227. 442 }
  228. 443
  229.  
  230. #13
  231. /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"), ...))
  232.  
  233. 401 /**
  234. 402 * {@inheritdoc}
  235. 403 */
  236. 404 public function display(array $context, array $blocks = array())
  237. 405 {
  238. 406 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
  239. 407 }
  240. 408
  241. 409 /**
  242. 410 * {@inheritdoc}
  243. 411 */
  244.  
  245. #14
  246. /srv/limesurvey/application/third_party/Twig/Template.php(417): Twig_Template->display(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)))
  247.  
  248. 412 public function render(array $context)
  249. 413 {
  250. 414 $level = ob_get_level();
  251. 415 ob_start();
  252. 416 try {
  253. 417 $this->display($context);
  254. 418 } catch (Exception $e) {
  255. 419 while (ob_get_level() > $level) {
  256. 420 ob_end_clean();
  257. 421 }
  258. 422
  259.  
  260. #15
  261. /srv/limesurvey/application/core/LSETwigViewRenderer.php(348): Twig_Template->render(array("aSurveyInfo" => array("publicSurveys" => array(), "futureSurveys" => array(), "oTemplate" => TemplateConfiguration, "sSiteName" => "Lime Survey", ...)), false)
  262.  
  263. 343 list($sString, $aDatas) = $this->getPluginsData($sString, $aDatas);
  264. 344 }
  265. 345
  266. 346 // Twig rendering
  267. 347 $oTwigTemplate = $twig->createTemplate($sString);
  268. 348 $sHtml = $oTwigTemplate->render($aDatas, false);
  269. 349
  270. 350 return $sHtml;
  271. 351 }
  272. 352
  273. 353 /**
  274.  
  275. #16
  276. /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)
  277.  
  278. 37 {
  279. 38 $oTemplate = Template::model()->getInstance();
  280. 39 $oLayoutTemplate = $this->getTemplateForView($sLayout, $oTemplate);
  281. 40 if ($oLayoutTemplate) {
  282. 41 $line = file_get_contents($oLayoutTemplate->viewPath.$sLayout);
  283. 42 $sHtml = $this->convertTwigToHtml($line, $aDatas, $oTemplate);
  284. 43 $sEmHiddenInputs = LimeExpressionManager::FinishProcessPublicPage(true);
  285. 44 if($sEmHiddenInputs) {
  286. 45 $sHtml = str_replace("<!-- emScriptsAndHiddenInputs -->","<!-- emScriptsAndHiddenInputs updated -->\n".$sEmHiddenInputs,$sHtml);
  287. 46 }
  288. 47 if ($bReturn) {
  289.  
  290. #17
  291. /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)
  292.  
  293. 49 $aData['alanguageChanger']['datas'] = $alanguageChangerDatas;
  294. 50 }
  295. 51
  296. 52 Yii::app()->clientScript->registerScriptFile(Yii::app()->getConfig("generalscripts").'nojs.js', CClientScript::POS_HEAD);
  297. 53
  298. 54 Yii::app()->twigRenderer->renderTemplateFromFile("layout_survey_list.twig", array('aSurveyInfo'=>$aData), false);
  299. 55
  300. 56 }
  301. 57 /**
  302. 58 * System error : only 404 error are managed here (2016-11-29)
  303. 59 * SurveysController is the default controller set in internal
  304.  
  305. #18
  306. unknown(0): SurveysController->actionPublicList(null)
  307. #19
  308. /srv/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveysController, array(null))
  309.  
  310. 104 elseif($param->isDefaultValueAvailable())
  311. 105 $ps[]=$param->getDefaultValue();
  312. 106 else
  313. 107 return false;
  314. 108 }
  315. 109 $method->invokeArgs($object,$ps);
  316. 110 return true;
  317. 111 }
  318. 112 }
  319.  
  320. #20
  321. /srv/limesurvey/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SurveysController, ReflectionMethod, array())
  322.  
  323. 42 {
  324. 43 $methodName='action'.$this->getId();
  325. 44 $controller=$this->getController();
  326. 45 $method=new ReflectionMethod($controller, $methodName);
  327. 46 if($method->getNumberOfParameters()>0)
  328. 47 return $this->runWithParamsInternal($controller, $method, $params);
  329. 48
  330. 49 $controller->$methodName();
  331. 50 return true;
  332. 51 }
  333. 52 }
  334.  
  335. #21
  336. /srv/limesurvey/framework/web/CController.php(308): CInlineAction->runWithParams(array())
  337.  
  338. 303 {
  339. 304 $priorAction=$this->_action;
  340. 305 $this->_action=$action;
  341. 306 if($this->beforeAction($action))
  342. 307 {
  343. 308 if($action->runWithParams($this->getActionParams())===false)
  344. 309 $this->invalidActionParams($action);
  345. 310 else
  346. 311 $this->afterAction($action);
  347. 312 }
  348. 313 $this->_action=$priorAction;
  349.  
  350. #22
  351. /srv/limesurvey/framework/web/CController.php(286): CController->runAction(CInlineAction)
  352.  
  353. 281 * @see runAction
  354. 282 */
  355. 283 public function runActionWithFilters($action,$filters)
  356. 284 {
  357. 285 if(empty($filters))
  358. 286 $this->runAction($action);
  359. 287 else
  360. 288 {
  361. 289 $priorAction=$this->_action;
  362. 290 $this->_action=$action;
  363. 291 CFilterChain::create($this,$action,$filters)->run();
  364.  
  365. #23
  366. /srv/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
  367.  
  368. 260 {
  369. 261 if(($parent=$this->getModule())===null)
  370. 262 $parent=Yii::app();
  371. 263 if($parent->beforeControllerAction($this,$action))
  372. 264 {
  373. 265 $this->runActionWithFilters($action,$this->filters());
  374. 266 $parent->afterControllerAction($this,$action);
  375. 267 }
  376. 268 }
  377. 269 else
  378. 270 $this->missingAction($actionID);
  379.  
  380. #24
  381. /srv/limesurvey/framework/web/CWebApplication.php(282): CController->run("")
  382.  
  383. 277 {
  384. 278 list($controller,$actionID)=$ca;
  385. 279 $oldController=$this->_controller;
  386. 280 $this->_controller=$controller;
  387. 281 $controller->init();
  388. 282 $controller->run($actionID);
  389. 283 $this->_controller=$oldController;
  390. 284 }
  391. 285 else
  392. 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
  393. 287 array('{route}'=>$route===''?$this->defaultController:$route)));
  394.  
  395. #25
  396. /srv/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("")
  397.  
  398. 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
  399. 137 $_GET[$name]=$value;
  400. 138 }
  401. 139 else
  402. 140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
  403. 141 $this->runController($route);
  404. 142 }
  405. 143
  406. 144 /**
  407. 145 * Registers the core application components.
  408. 146 * This method overrides the parent implementation by registering additional core components.
  409.  
  410. #26
  411. /srv/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest()
  412.  
  413. 180 public function run()
  414. 181 {
  415. 182 if($this->hasEventHandler('onBeginRequest'))
  416. 183 $this->onBeginRequest(new CEvent($this));
  417. 184 register_shutdown_function(array($this,'end'),0,false);
  418. 185 $this->processRequest();
  419. 186 if($this->hasEventHandler('onEndRequest'))
  420. 187 $this->onEndRequest(new CEvent($this));
  421. 188 }
  422. 189
  423. 190 /**
  424.  
  425. #27
  426. /srv/limesurvey/index.php(194): CApplication->run()
  427.  
  428. 189 require_once APPPATH . 'core/LSYii_Application' . EXT;
  429. 190
  430. 191 $config = require_once(APPPATH . 'config/internal' . EXT);
  431. 192
  432. 193 Yii::$enableIncludePath = false;
  433. 194 Yii::createApplication('LSYii_Application', $config)->run();
  434. 195
  435. 196 /* End of file index.php */
  436. 197 /* Location: ./index.php */
  437.  
  438. 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