PHP notice

Undefined index:

E:\WebSite\limesurvey\application\models\Plugin.php(345)

333     }
334 
335     /**
336      * Get installation folder of this plugin.
337      * Installation folder is different for core and
338      * user plugins.
339      * @return string
340      * @throws Exception
341      */
342     protected function getDir()
343     {
344         $pluginManager = App()->getPluginManager();
345         $alias = $pluginManager->pluginDirs[$this->plugin_type];
346 
347         if (empty($alias)) {
348             throw new \Exception('Unknown plugin type: ' . json_encode($this->plugin_type));
349         }
350 
351         $folder = Yii::getPathOfAlias($alias);
352 
353         if (empty($folder)) {
354             throw new \Exception('Alias has no folder: ' . json_encode($alias));
355         }
356 
357         // NB: Name is same as plugin folder and plugin main class.

Stack Trace

#0
+
 E:\WebSite\limesurvey\application\models\Plugin.php(100): Plugin->getDir()
095      * @return ExtensionConfig
096      * @throws Exception if file does not exist.
097      */
098     public function getExtensionConfig()
099     {
100         $file = $this->getDir() . DIRECTORY_SEPARATOR . 'config.xml';
101         if (file_exists($file)) {
102             if (\PHP_VERSION_ID < 80000) {
103                 libxml_disable_entity_loader(false);
104             }
105             $config = simplexml_load_file(realpath($file));
#1
+
 E:\WebSite\limesurvey\application\models\Plugin.php(171): Plugin->getExtensionConfig()
166      * @return string
167      * @throws Exception
168      */
169     public function getDescription()
170     {
171         $config = $this->getExtensionConfig();
172         // Harden for XSS
173         $filter = LSYii_HtmlPurifier::getXssPurifier();
174         return $filter->purify($config->getDescription());
175     }
176 
#2
+
 E:\WebSite\limesurvey\application\models\Plugin.php(185): Plugin->getDescription()
180      * @return string
181      */
182     public function getPossibleDescription()
183     {
184         try {
185             return $this->getDescription();
186         } catch (\Throwable $ex) {
187             return sprintf(gT('Error: Could not get plugin description: %s'), $ex->getMessage());
188         }
189     }
190 
2023-07-12 13:46:10 Microsoft-IIS/10.0 Yii Framework/1.1.28