PHP notice

Trying to access array offset on value of type int

/data/webdev/3LTS/application/controllers/admin/dataentry.php(1433)

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

Stack Trace

#2
+
 /data/webdev/3LTS/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(dataentry, ReflectionMethod, array("r" => "admin/dataentry/sa/update", "sa" => "update", "iId" => "1", "iSurveyId" => "592229", ...))
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
+
 /data/webdev/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
+
 /data/webdev/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 */
2021-11-22 16:46:32 nginx/1.18.0 Yii Framework/1.1.24-dev
Journal d'application
Heure Niveau Categorie Message
16:46:32.770771 error php
Trying to access array offset on value of type int
(/data/webdev/3LTS/application/controllers/admin/dataentry.php:1433)
Stack trace:
#0 /data/webdev/3LTS/application/core/Survey_Common_Action.php(83):
dataentry->runWithParamsInternal()
#1 /data/webdev/3LTS/framework/web/CController.php(308):
dataentry->runWithParams()
#2 /data/webdev/3LTS/framework/web/CController.php(286):
AdminController->runAction()
#3 /data/webdev/3LTS/framework/web/CController.php(265):
AdminController->runActionWithFilters()
#4 /data/webdev/3LTS/application/controllers/AdminController.php(165):
AdminController->run()
#5 /data/webdev/3LTS/framework/web/CWebApplication.php(282):
AdminController->run()
#6 /data/webdev/3LTS/framework/web/CWebApplication.php(141):
LSYii_Application->runController()
#7 /data/webdev/3LTS/framework/base/CApplication.php(185):
LSYii_Application->processRequest()
#8 /data/webdev/3LTS/index.php(194): LSYii_Application->run()
REQUEST_URI=/3LTS/index.php?r=admin/dataentry/sa/update