PHP error

trim(): Passing null to parameter #1 ($string) of type string is deprecated

/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/db/CDbCommand.php(1101)

1089      * </pre>
1090      *
1091      * @return static the command object itself
1092      * @since 1.1.6
1093      */
1094     public function order($columns)
1095     {
1096         if(is_string($columns) && strpos($columns,'(')!==false)
1097             $this->_query['order']=$columns;
1098         else
1099         {
1100             if(!is_array($columns))
1101                 $columns=preg_split('/\s*,\s*/',trim($columns),-1,PREG_SPLIT_NO_EMPTY);
1102             foreach($columns as $i=>$column)
1103             {
1104                 if(is_object($column))
1105                     $columns[$i]=(string)$column;
1106                 elseif(strpos($column,'(')===false)
1107                 {
1108                     if(preg_match('/^(.*?)\s+(asc|desc)$/i',$column,$matches))
1109                         $columns[$i]=$this->_connection->quoteColumnName($matches[1]).' '.strtoupper($matches[2]);
1110                     else
1111                         $columns[$i]=$this->_connection->quoteColumnName($column);
1112                 }
1113             }

Stack Trace

#3
+
 /media/shnoulle/data/webdev/master/application/helpers/admin/exportresults_helper.php(108): CComponent->__set("order", null)
103         $surveyDao = new SurveyDao();
104         $survey = $surveyDao->loadSurveyById($iSurveyId, $sLanguageCode, $oOptions);
105         $writer->init($survey, $sLanguageCode, $oOptions);
106 
107         $countResponsesCommand = $surveyDao->loadSurveyResults($survey, $oOptions->responseMinRecord, $oOptions->responseMaxRecord, $sFilter, $oOptions->responseCompletionState, $oOptions->selectedColumns, $oOptions->aResponses);
108         $countResponsesCommand->order = null;
109         $countResponsesCommand->select('count(*)');
110         $responseCount = $countResponsesCommand->queryScalar();
111         $maxRows = 100;
112         $maxPages = ceil($responseCount / $maxRows);
113         for ($i = 0; $i < $maxPages; $i++) {
#4
+
 /media/shnoulle/data/webdev/master/application/controllers/admin/Export.php(352): ExportSurveyResultsService->exportResponses(282267, "en", "csv", FormattingOptions, ...)
347         } else {
348             $sFilter = '';
349         }
350 
351         viewHelper::disableHtmlLogging();
352         $resultsService->exportResponses($iSurveyID, $explang, $sExportType, $options, $sFilter);
353 
354         Yii::app()->end();
355     }
356 
357     /**
#7
+
 /media/shnoulle/data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(Export, ReflectionMethod, array("r" => "admin/export/sa/exportresults/surveyid/282267", "sa" => "exportresults", "surveyid" => 282267, "iSurveyId" => 282267, ...))
78             $oMethod = new ReflectionMethod($this, $sDefault);
79         }
80 
81         // We're all good to go, let's execute it
82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83         return parent::runWithParamsInternal($this, $oMethod, $params);
84     }
85 
86     /**
87      * Some functions have different parameters, which are just an alias of the
88      * usual parameters we're getting in the url. This function just populates
2023-11-24 08:43:26 nginx/1.22.1 Yii Framework/1.1.28