PHP warning

Undefined array key ""

E:\WEB\limesurvey\www\application\models\Plugin.php(360)

348     }
349 
350     /**
351      * Get installation folder of this plugin.
352      * Installation folder is different for core and
353      * user plugins.
354      * @return string
355      * @throws Exception
356      */
357     protected function getDir()
358     {
359         $pluginManager = App()->getPluginManager();
360         $alias = $pluginManager->pluginDirs[$this->plugin_type];
361 
362         if (empty($alias)) {
363             throw new \Exception('Unknown plugin type: ' . json_encode($this->plugin_type));
364         }
365 
366         $folder = Yii::getPathOfAlias($alias);
367 
368         if (empty($folder)) {
369             throw new \Exception('Alias has no folder: ' . json_encode($alias));
370         }
371 
372         // NB: Name is same as plugin folder and plugin main class.

Stack Trace

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