PHP error

str_getcsv(): the $escape parameter must be provided as its default value will change

/media/shnoulle/data/www/master/application/controllers/admin/Tokens.php(2299)

2287                             case 'semicolon':
2288                                 $sSeparator = ';';
2289                                 break;
2290                             default:
2291                                 $comma = substr_count((string) $buffer, ',');
2292                                 $semicolon = substr_count((string) $buffer, ';');
2293                                 if ($semicolon > $comma) {
2294                                     $sSeparator = ';';
2295                                 } else {
2296                                     $sSeparator = ',';
2297                                 }
2298                         }
2299                         $aFirstLine = str_getcsv((string) $buffer, $sSeparator, '"');
2300                         $aFirstLine = array_map('trim', $aFirstLine);
2301                         $aIgnoredColumns = array();
2302                         // Now check the first line for invalid fields
2303                         foreach ($aFirstLine as $index => $sFieldname) {
2304                             $aFirstLine[$index] = preg_replace("/(.*) <[^,]*>$/", "$1", $sFieldname);
2305                             $sFieldname = $aFirstLine[$index];
2306                             if (!in_array($sFieldname, $aAllowedFieldNames)) {
2307                                 $aIgnoredColumns[] = $sFieldname;
2308                             }
2309                             if (array_key_exists($sFieldname, $aReplacedFields)) {
2310                                 $aFirstLine[$index] = $aReplacedFields[$sFieldname];
2311                             }

Stack Trace

#0
+
 /media/shnoulle/data/www/master/application/controllers/admin/Tokens.php(2299): str_getcsv("firstname,lastname,email,token,attribute_1,attribute_2 ", ",", """)
2294                                     $sSeparator = ';';
2295                                 } else {
2296                                     $sSeparator = ',';
2297                                 }
2298                         }
2299                         $aFirstLine = str_getcsv((string) $buffer, $sSeparator, '"');
2300                         $aFirstLine = array_map('trim', $aFirstLine);
2301                         $aIgnoredColumns = array();
2302                         // Now check the first line for invalid fields
2303                         foreach ($aFirstLine as $index => $sFieldname) {
2304                             $aFirstLine[$index] = preg_replace("/(.*) <[^,]*>$/", "$1", $sFieldname);
#3
+
 /media/shnoulle/data/www/master/application/core/SurveyCommonAction.php(86): CAction->runWithParamsInternal(Tokens, ReflectionMethod, array("r" => "admin/tokens/sa/import/surveyid/278647", "sa" => "import", "surveyid" => 278647, "iSurveyId" => 278647, ...))
81             $oMethod = new ReflectionMethod($this, $sDefault);
82         }
83 
84         // We're all good to go, let's execute it
85         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
86         return parent::runWithParamsInternal($this, $oMethod, $params);
87     }
88 
89     /**
90      * Some functions have different parameters, which are just an alias of the
91      * usual parameters we're getting in the url. This function just populates
#7
+
 /media/shnoulle/data/www/master/application/controllers/AdminController.php(204): CController->run("tokens")
199         $this->runModuleController($action);
200         // this will redirect the default action to the new controller previously "admin/index" or "admin" to "dashboard/view"
201         if (empty($action) || $action === 'index') {
202             $this->redirect($this->createUrl('dashboard/view'));
203         }
204         return parent::run($action);
205     }
206 
207     /**
208      * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers.
209      *
2026-02-03 14:38:50 nginx/1.26.3 Yii Framework/1.1.31