Prado\Exceptions\TConfigurationException

Description

Application configuration <alias id="N"> uses an invalid file path "npm/node_modules".

Source File

${PradoFramework}/TApplicationConfiguration.php (210)

0199:             switch ($element->getTagName()) {
0200:                 case 'alias':
0201:                 {
0202:                     if (($id = $element->getAttribute('id')) !== null && ($path = $element->getAttribute('path')) !== null) {
0203:                         $path = str_replace('\\', '/', $path);
0204:                         if (preg_match('/^\\/|.:\\/|.:\\\\/', $path)) {    // if absolute path
0205:                             $p = realpath($path);
0206:                         } else {
0207:                             $p = realpath($configPath . DIRECTORY_SEPARATOR . $path);
0208:                         }
0209:                         if ($p === false || !is_dir($p)) {
0210: throw new TConfigurationException('appconfig_aliaspath_invalid', $id, $path);
0211: } 0212: if (isset($this->_aliases[$id])) { 0213: throw new TConfigurationException('appconfig_alias_redefined', $id); 0214: } 0215: $this->_aliases[$id] = $p; 0216: } else { 0217: throw new TConfigurationException('appconfig_alias_invalid'); 0218: } 0219: $this->_empty = false; 0220: break; 0221: } 0222: case 'using':

Stack Trace

#0 ${PradoFramework}/TApplicationConfiguration.php(138): Prado\TApplicationConfiguration->loadPathsXml(Object(Prado\Xml\TXmlElement), '/var/www/stagin...')
#1 ${PradoFramework}/TApplicationConfiguration.php(74): Prado\TApplicationConfiguration->loadFromXml(Object(Prado\Xml\TXmlDocument), '/var/www/stagin...')
#2 ${PradoFramework}/TApplication.php(1036): Prado\TApplicationConfiguration->loadFromFile('/var/www/stagin...')
#3 ${PradoFramework}/TApplication.php(368): Prado\TApplication->initApplication()
#4 phar://${DocumentRoot}/protected/konvergence.phar/core/boot/KabudachiCM.php(90): Prado\TApplication->run()
#5 ${DocumentRoot}/index.php(19): polarisalliance\konvergence\core\boot\KabudachiCM->run()
#6 {main}
2024-11-04 12:51 Apache/2.4.59 (Debian) PRADO/4.1.2