Craft CMS Asked by Tim Print on May 17, 2021
I have a site running Craft 3.6.11.1. I’ve been working on it for a while, have multi environment config set up and everything working great. I have recently installed and uninstalled quite a few plugins. I’m not sure exactly when something went wrong but now in terminal when I do ./craft I get:
Exception 'yiibaseInvalidArgumentException' with message 'Invalid path alias: @'
in /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/BaseYii.php:154
Stack trace:
#0 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/base/Module.php(257): yiiBaseYii::getAlias('@')
#1 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(245): yiibaseModule->getControllerPath()
#2 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(240): yiiconsolecontrollersHelpController->getModuleCommands(Object(modulessitemoduleSiteModule))
#3 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(172): yiiconsolecontrollersHelpController->getModuleCommands(Object(craftconsoleApplication))
#4 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(192): yiiconsolecontrollersHelpController->getCommands()
#5 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(292): yiiconsolecontrollersHelpController->getCommandDescriptions()
#6 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/controllers/HelpController.php(67): yiiconsolecontrollersHelpController->getDefaultHelp()
#7 [internal function]: yiiconsolecontrollersHelpController->actionIndex(NULL)
#8 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/base/Controller.php(181): yiibaseInlineAction->runWithParams(Array)
#10 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/Controller.php(184): yiibaseController->runAction('', Array)
#11 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/base/Module.php(534): yiiconsoleController->runAction('', Array)
#12 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/Application.php(181): yiibaseModule->runAction('', Array)
#13 /srv/users/serverpilot/apps/dev-odette-craft/vendor/craftcms/cms/src/console/Application.php(89): yiiconsoleApplication->runAction('', Array)
#14 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/console/Application.php(148): craftconsoleApplication->runAction('', Array)
#15 /srv/users/serverpilot/apps/dev-odette-craft/vendor/yiisoft/yii2/base/Application.php(392): yiiconsoleApplication->handleRequest(Object(craftconsoleRequest))
#16 /srv/users/serverpilot/apps/dev-odette-craft/craft(22): yiibaseApplication->run()
#17 {main}
Any ideas on how to fix this would be much appreciated.
This was an error in a module I have built for this site. Going through the docs and some tutorials again fixed it.
Answered by Tim Print on May 17, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP