PHP notice

Trying to access array offset on value of type int

/mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/dataentry.php(1431)

1419                         } else {
1420                             $thisvalue = date("Y-m-d\TH:i", (int) mktime(0, 0, 0, 1, 1, 1980));
1421                         }
1422                     }
1423                 case 'startdate':
1424                 case 'datestamp':
1425                     if(empty($thisvalue)) {
1426                         $oReponse->$fieldname = null;
1427                         break;
1428                     }
1429                     $dateformatdetails = getDateFormatForSID($surveyid);
1430                     tracevar($dateformatdetails);
1431                     $datetimeobj = DateTime::createFromFormat('!'.$dateformatdetails['phpdate'], $thisvalue);
1432                     if (!$datetimeobj) {
1433                         /* Not able to use js system */
1434                         $datetimeobj = DateTime::createFromFormat('Y-m-d\TH:i', $thisvalue);
1435                     }
1436                     if ($datetimeobj) {
1437                         $oReponse->$fieldname = $datetimeobj->format('Y-m-d H:i');
1438                     } else {
1439                         Yii::app()->setFlashMessage(sprintf(gT("Invalid datetime %s value for %s"),htmlentities($thisvalue),$fieldname), 'warning');
1440                         if($irow['type'] != 'submitdate') {
1441                             $oReponse->$fieldname = date("Y-m-d H:i:s");// Need not null value
1442                         } else {
1443                             $oReponse->$fieldname = null;

Stack Trace

#2
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(dataentry, ReflectionMethod, array("r" => "admin/dataentry/sa/update", "sa" => "update", "iId" => "3", "iSurveyId" => "113413", ...))
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
#6
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/AdminController.php(165): CController->run("dataentry")
160                     $this->redirect(array('/admin/authentication/sa/login'));
161                 }
162             }
163         }
164 
165         return parent::run($action);
166     }
167 
168     /**
169      * Routes all the actions to their respective places
170      *
#10
+
 /mnt/data/shnoulle/nginx/www/3LTS/index.php(194): CApplication->run()
189 require_once APPPATH . 'core/LSYii_Application' . EXT;
190 
191 $config = require_once(APPPATH . 'config/internal' . EXT);
192 
193 Yii::$enableIncludePath = false;
194 Yii::createApplication('LSYii_Application', $config)->run();
195 
196 /* End of file index.php */
197 /* Location: ./index.php */
2020-06-08 17:14:26 nginx/1.18.0 Yii Framework/1.1.22-dev
Application Log
Timestamp Level Category Message
17:14:26.632859 trace vardump
/mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/dataentry.php
(1430):
1