PHP warning

array_sum(): Addition is not supported on type string

/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)

2161                     if ($argsPassed < $minArgs) {
2162                         $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken);
2163                         return false;
2164                     }
2165                     if (!$this->RDP_onlyparse) {
2166                         switch ($funcName) {
2167                             case 'sprintf':
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
2179                     switch ($argsPassed) {
2180                         case 0:
2181                             if (!$this->RDP_onlyparse) {
2182                                 $result = call_user_func($funcName);
2183                             }
2184                             break;
2185                         case 1:

Stack Trace

#0
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", ""))
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
#1
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", ""))
876                     }
877                 }
878             }
879             if ($token3[2] == 'RP') {
880                 ++$this->RDP_pos; // consume the token so can process next clause
881                 return $this->RDP_RunFunction($funcNameToken, $params);
882             } else {
883                 if ($this->RDP_EvaluateExpression()) {
884                     $value = $this->RDP_StackPop();
885                     if (is_null($value)) {
886                         return false;
#2
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction()
684                 return true;
685                 // NB: No break needed
686             case 'WORD':
687             case 'SGQA':
688                 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') {
689                     return $this->RDP_EvaluateFunction();
690                 } else {
691                     if ($this->RDP_isValidVariable($token[0])) {
692                         $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation
693                         if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) {
694                             $relStatus = 1; // static, so always relevant
2024-12-17 10:07:21 nginx/1.22.1 Yii Framework/1.1.30
PHP warning

PHP warning

array_sum(): Addition is not supported on type string

/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)

2161                     if ($argsPassed < $minArgs) {
2162                         $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken);
2163                         return false;
2164                     }
2165                     if (!$this->RDP_onlyparse) {
2166                         switch ($funcName) {
2167                             case 'sprintf':
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
2179                     switch ($argsPassed) {
2180                         case 0:
2181                             if (!$this->RDP_onlyparse) {
2182                                 $result = call_user_func($funcName);
2183                             }
2184                             break;
2185                         case 1:

Stack Trace

#0
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", ""))
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
#1
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", ""))
876                     }
877                 }
878             }
879             if ($token3[2] == 'RP') {
880                 ++$this->RDP_pos; // consume the token so can process next clause
881                 return $this->RDP_RunFunction($funcNameToken, $params);
882             } else {
883                 if ($this->RDP_EvaluateExpression()) {
884                     $value = $this->RDP_StackPop();
885                     if (is_null($value)) {
886                         return false;
#2
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction()
684                 return true;
685                 // NB: No break needed
686             case 'WORD':
687             case 'SGQA':
688                 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') {
689                     return $this->RDP_EvaluateFunction();
690                 } else {
691                     if ($this->RDP_isValidVariable($token[0])) {
692                         $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation
693                         if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) {
694                             $relStatus = 1; // static, so always relevant
2024-12-17 10:07:21 nginx/1.22.1 Yii Framework/1.1.30
PHP warning

PHP warning

array_sum(): Addition is not supported on type string

/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)

2161                     if ($argsPassed < $minArgs) {
2162                         $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken);
2163                         return false;
2164                     }
2165                     if (!$this->RDP_onlyparse) {
2166                         switch ($funcName) {
2167                             case 'sprintf':
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
2179                     switch ($argsPassed) {
2180                         case 0:
2181                             if (!$this->RDP_onlyparse) {
2182                                 $result = call_user_func($funcName);
2183                             }
2184                             break;
2185                         case 1:

Stack Trace

#0
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", ""))
2168                                 /* function with any number of params */
2169                                 $result = call_user_func_array('sprintf', $params);
2170                                 break;
2171                             default:
2172                                 /* function with array as param*/
2173                                 $result = call_user_func($funcName, $params);
2174                                 break;
2175                         }
2176                     }
2177                 // Call  function with the params passed
2178                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
#1
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", ""))
876                     }
877                 }
878             }
879             if ($token3[2] == 'RP') {
880                 ++$this->RDP_pos; // consume the token so can process next clause
881                 return $this->RDP_RunFunction($funcNameToken, $params);
882             } else {
883                 if ($this->RDP_EvaluateExpression()) {
884                     $value = $this->RDP_StackPop();
885                     if (is_null($value)) {
886                         return false;
#2
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction()
684                 return true;
685                 // NB: No break needed
686             case 'WORD':
687             case 'SGQA':
688                 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') {
689                     return $this->RDP_EvaluateFunction();
690                 } else {
691                     if ($this->RDP_isValidVariable($token[0])) {
692                         $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation
693                         if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) {
694                             $relStatus = 1; // static, so always relevant
2024-12-17 10:07:21 nginx/1.22.1 Yii Framework/1.1.30