PHP notice

Undefined index: type

/data/webdev/mastervanilla/application/models/QuestionTheme.php(738)

726             'title'         => $questionMetaData['title'],
727             'creation_date' => date('Y-m-d H:i:s', strtotime($questionMetaData['creationDate'])),
728             'author'        => $questionMetaData['author'] ?? '',
729             'author_email'  => $questionMetaData['authorEmail'] ?? '',
730             'author_url'    => $questionMetaData['authorUrl'] ?? '',
731             'copyright'     => $questionMetaData['copyright'] ?? '',
732             'license'       => $questionMetaData['license'] ?? '',
733             'version'       => $questionMetaData['version'],
734             'api_version'   => $questionMetaData['apiVersion'],
735             'description'   => $questionMetaData['description'],
736             'last_update'   => date('Y-m-d H:i:s'), //todo
737             'owner_id'      => 1, //todo
738             'theme_type'    => $questionMetaData['type'],
739             'question_type' => $questionMetaData['questionType'],
740             'core_theme'    => $questionMetaData['coreTheme'],
741             'extends'       => $questionMetaData['extends'],
742             'group'         => $questionMetaData['group'] ?? '',
743             'settings'      => $questionMetaData['settings'] ?? ''
744         ];
745         return $questionMetaData;
746     }
747 
748     /**
749      * Return the question Theme preview URL
750      *

Stack Trace

#0
+
 /data/webdev/mastervanilla/application/models/QuestionTheme.php(314): QuestionTheme::getMetaDataArray(array("name" => "bootstrap_dropdown", "title" => "Bootstrap Dropdown", "creationDate" => "2021-09-29", "author" => "Adam Zammit", ...))
309                 }
310             }
311             foreach ($aThemes['available_themes'] as $questionMetaData) {
312                 // TODO: replace by manifest
313                 $questionTheme = new QuestionTheme();
314                 $metaDataArray = self::getMetaDataArray($questionMetaData);
315                 $questionTheme->setAttributes($metaDataArray, false);
316                 $aAvailableThemes[] = $questionTheme;
317             }
318         }
319 
#1
+
 /data/webdev/mastervanilla/application/views/themeOptions/availablethemelist.php(5): QuestionTheme->getAvailableQuestionThemes()
01 <?php
02 /**
03  * @var QuestionTheme $oQuestionTheme
04  */
05 $aQuestionThemes = $oQuestionTheme->getAvailableQuestionThemes();
06 ?>
07 <?php if (!empty($aQuestionThemes['available_themes'])): ?>
08     <h3><?php eT('Available question themes:'); ?></h3>
09     <div class="row">
10         <div class="col-sm-12 content-right">
#5
+
 /data/webdev/mastervanilla/application/views/themeOptions/index.php(239): CController->renderPartial("./availablethemelist", array("oQuestionTheme" => QuestionTheme, "pageSize" => 10))
234                             'themeType' => 'question'
235                         ]
236                 ); ?>
237                 <?php $this->renderPartial('./installedthemelist', array('oQuestionTheme' => $oQuestionTheme, 'pageSize' => $pageSize)); ?>
238                 <!-- Available Quesiton Themes-->
239                 <?php $this->renderPartial('./availablethemelist', array('oQuestionTheme' => $oQuestionTheme, 'pageSize' => $pageSize)); ?>
240             </div>
241         </div>
242     </div>
243 </div>
244 
2022-05-25 12:37:16 nginx/1.18.0 Yii Framework/1.1.24-dev