Twig\Error\SyntaxError

Unknown "strpos" function.

/var/www/html/themes/survey/vanilla/views/subviews/privacy/privacy_datasecurity_notice_label.twig(10)

01 {# 
02     use aSurveyInfo datasecurity_notice_label
03 #}
04 {% set STARTPOLICYLINK = "" %}
05 {% set ENDPOLICYLINK = "" %}
06 {% if(aSurveyInfo.showsurveypolicynotice == 2) %}
07     {% set STARTPOLICYLINK = "<a href='#data-security-modal-" ~ aSurveyInfo.sid ~ "' data-toggle='collapse'>" %}
08     {% set ENDPOLICYLINK = "</a>" %}
09 {% endif %}
10 {% if( strpos( " " ~ dataSecurityNoticeLabel, '{STARTPOLICYLINK}') == false and strpos( " " ~ dataSecurityNoticeLabel, '{ENDPOLICYLINK}') == false) %}
11     {% set dataSecurityNoticeLabel = dataSecurityNoticeLabel ~ "<br/> {STARTPOLICYLINK}" ~ gT("Show policy") ~ "{ENDPOLICYLINK}" %}
12 {% endif %}
13 {% set haveENDPOLICYLINK = strpos( " " ~ dataSecurityNoticeLabel, '{ENDPOLICYLINK}') %}
14 {% set dataSecurityNoticeLabel = str_replace('{STARTPOLICYLINK}', STARTPOLICYLINK, dataSecurityNoticeLabel) %}
15 {% set dataSecurityNoticeLabel = str_replace('{ENDPOLICYLINK}', ENDPOLICYLINK, dataSecurityNoticeLabel) %}
16 {% if( haveENDPOLICYLINK == false ) %}
17     {% set dataSecurityNoticeLabel = dataSecurityNoticeLabel ~ ENDPOLICYLINK %}
18 {% endif %}
19 {{ dataSecurityNoticeLabel }}

Stack Trace

#1
+
 /var/www/html/third_party/twig/twig/src/ExpressionParser.php(243): Twig\ExpressionParser->getFunctionNode()
238                         $node = new ConstantExpression(null, $token->getLine());
239                         break;
240 
241                     default:
242                         if ('(' === $this->parser->getCurrentToken()->getValue()) {
243                             $node = $this->getFunctionNode($token->getValue(), $token->getLine());
244                         } else {
245                             $node = new NameExpression($token->getValue(), $token->getLine());
246                         }
247                 }
248                 break;
#2
+
 /var/www/html/third_party/twig/twig/src/ExpressionParser.php(183): Twig\ExpressionParser->parsePrimaryExpression()
178             $this->parser->getStream()->expect(Token::PUNCTUATION_TYPE, ')', 'An opened parenthesis is not properly closed');
179 
180             return $this->parsePostfixExpression($expr);
181         }
182 
183         return $this->parsePrimaryExpression();
184     }
185 
186     protected function parseConditionalExpression($expr)
187     {
188         while ($this->parser->getStream()->nextIf(Token::PUNCTUATION_TYPE, '?')) {
2022-05-16 06:04:22 Apache/2.4.53 (Debian) Yii Framework/1.1.24-dev