PHP notice

Trying to access array offset on value of type null

/mnt/data/shnoulle/nginx/www/3LTS/application/views/admin/token/managetokenattributes.php(103)

091                                             {
092                                                 echo CHtml::dropDownList('cpdbmap_'.$sTokenField,$tokenvalues['cpdbmap'],$aCPDBAttributes, array('class' => 'form-control'));
093                                             }
094                                             else
095                                             {
096                                                 echo $aCPDBAttributes[$tokenvalues['cpdbmap']];
097                                             }
098                                         ?></td>
099                                         <td>
100                                         <?php
101                                         if ($examplerow !== false)
102                                         {
103                                             echo htmlspecialchars($examplerow[$sTokenField]);
104                                         }
105                                         else
106                                         {
107                                             gT('<no data>');
108                                         }
109                                         echo "</td>";
110                                         echo "</tr>";
111                                     }
112                                     ?>
113                                     <tbody></table></div>
114                             <?php } ?>
115                     </div>

Stack Trace

#3
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/core/Survey_Common_Action.php(269): CController->renderPartial("/admin/token/managetokenattributes", array("sidemenu" => array("state" => false, "token_menu" => true), "title_bar" => array("title" => "Test prefill (ID:721221)"), "token_bar" => array("closebutton" => array("url" => "admin/tokens/sa/index/surveyid/721221")), "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "vanilla", "language" => "en", ...), ...), true)
264         // Load views
265         $content = "";
266         foreach ($aViewUrls as $sViewKey => $viewUrl) {
267             if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
268                 if (is_numeric($sViewKey)) {
269                     $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
270                 } elseif (is_array($viewUrl)) {
271                     foreach ($viewUrl as $aSubData) {
272                         $aSubData = array_merge($aData, $aSubData);
273                         $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
274                     }
#4
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/core/Survey_Common_Action.php(346): Survey_Common_Action->renderCentralContents("token", array("managetokenattributes"), array("sidemenu" => array("state" => false, "token_menu" => true), "title_bar" => array("title" => "Test prefill (ID:721221)"), "token_bar" => array("closebutton" => array("url" => "admin/tokens/sa/index/surveyid/721221")), "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "vanilla", "language" => "en", ...), ...))
341             }
342         } else {
343             $renderFile = $basePath.'/'.$sRenderFile;
344         }
345 
346         $content = $this->renderCentralContents($sAction, $aViewUrls, $aData);
347         $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true);
348 
349         App()->getClientScript()->render($out);
350         echo $out;
351     }
#5
+
 /mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/tokens.php(2605): Survey_Common_Action->_renderWrappedTemplate("token", array("managetokenattributes"), array("sidemenu" => array("state" => false, "token_menu" => true), "title_bar" => array("title" => "Test prefill (ID:721221)"), "token_bar" => array("closebutton" => array("url" => "admin/tokens/sa/index/surveyid/721221")), "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "vanilla", "language" => "en", ...), ...), false)
2600     protected function _renderWrappedTemplate($sAction = 'token', $aViewUrls = array(), $aData = array(), $sRenderFile = false)
2601     {
2602         $aData['imageurl'] = Yii::app()->getConfig('adminimageurl');
2603         $aData['display']['menu_bars'] = false;
2604         $aData['subaction'] = gT('Survey participants');
2605         parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData, $sRenderFile);
2606     }
2607 
2608     /**
2609      * @return string SQL condition
2610      */
2020-07-10 14:50:06 nginx/1.18.0 Yii Framework/1.1.22-dev