Unknown component type 'MainLayout'. This may be caused by the following parsing error in the MainLayout class file: [Warning] include_once(/var/www/html/v2/protected/layouts/MainLayout.php): failed to open stream: No such file or directory (@line 384 in file /var/www/html/v2/vendor/pradosoft/prado/framework/PradoBase.php).
/var/www/html/v2/vendor/pradosoft/prado/framework/PradoBase.php (390)
0379: self::$_usings[substr($namespace, 0, $pos)] = $path;
0380: } else { // a file
0381: //self::$_usings[$namespace]=$path;
0382: if (!$checkClassExistence || (!class_exists($className, false) && !interface_exists($className, false))) {
0383: try {
0384: include_once($path);
0385: if (class_exists($namespace, false) || interface_exists($namespace, false)) {
0386: class_alias($namespace, $className);
0387: }
0388: } catch (\Exception $e) {
0389: if ($checkClassExistence && !class_exists($className, false)) {
0390: throw new TInvalidOperationException('prado_component_unknown', $className, $e->getMessage());
0391: } else {
0392: throw $e;
0393: }
0394: }
0395: }
0396: }
0397: }
0398: }
0399:
0400: /**
0401: * Translates a namespace into a file path.
0402: * The first segment of the namespace is considered as a path alias
#0 /var/www/html/v2/vendor/pradosoft/prado/framework/PradoBase.php(288): Prado\PradoBase::using('Application\\lay...')
#1 /var/www/html/v2/vendor/pradosoft/prado/framework/Web/UI/TTemplateControl.php(230): Prado\PradoBase::createComponent('Application.lay...')
#2 /var/www/html/v2/vendor/pradosoft/prado/framework/Web/UI/TPage.php(220): Prado\Web\UI\TTemplateControl->initRecursive()
#3 /var/www/html/v2/vendor/pradosoft/prado/framework/Web/UI/TPage.php(208): Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
#4 /var/www/html/v2/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(528): Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#5 /var/www/html/v2/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage(Object(AuthError), Array)
#6 /var/www/html/v2/vendor/pradosoft/prado/framework/TApplication.php(1190): Prado\Web\Services\TPageService->run()
#7 /var/www/html/v2/vendor/pradosoft/prado/framework/TApplication.php(382): Prado\TApplication->runService()
#8 /var/www/html/v2/index.php(20): Prado\TApplication->run()
#9 {main}