I have logged into the server and attempted to create a migration for my plugin. However I get this output:

exception 'CException' with message 'CHttpRequest is unable to determine the request URI.'

The request is targeting "/craft/app/framework/web/CHttpRequest.php:519".

Stack trace:
#0 /craft/app/framework/web/CHttpRequest.php(431): CHttpRequest->getRequestUri()
#1 /httpdocs/craft/app/services/HttpRequestService.php(816): CHttpRequest->getPathInfo()
#2 /httpdocs/craft/app/services/HttpRequestService.php(43): Craft\HttpRequestService->getNormalizedPath()
#3 /httpdocs/craft/app/framework/base/CModule.php(387): Craft\HttpRequestService->init()
#4 /httpdocs/craft/app/framework/base/CModule.php(103): CModule->getComponent('request')
#5 /httpdocs/craft/plugins/redactorclips/RedactorClipsPlugin.php(31): CModule->__get('request')
#6 /httpdocs/craft/app/services/PluginsService.php(136): Craft\RedactorClipsPlugin->init()
#7 /httpdocs/craft/app/etc/console/ConsoleApp.php(53): Craft\PluginsService->loadPlugins()
#8 /httpdocs/craft/app/framework/base/CApplication.php(165): Craft\ConsoleApp->init()
#9 /httpdocs/craft/app/framework/YiiBase.php(121): CApplication->__construct('/var/www/vhosts...')
#10 /httpdocs/craft/app/etc/console/yiic.php(76): YiiBase::createApplication('Craft\ConsoleAp...', '/var/www/vhosts...')
#11 /httpdocs/craft/app/etc/console/yiic(4): require_once('/var/www/vhosts...')
  • Do you get a full stack trace? Can you share the entire yiic command you used to attempt to generate it? – Brad Bell Jul 8 '14 at 23:30
  • I did get a full stack trace. Here is the command I used: " ./yiic migrate create Create_Relations Events". – aran Jul 8 '14 at 23:33
  • Can you share the stack trace in the original post (redacting out any sensitive info you don't want to share)? – Brad Bell Jul 8 '14 at 23:39
  • It is shared with sensitive info redacted. – aran Jul 8 '14 at 23:54

That's a bug in our RedactorClips plugin, actually. Just fixed it, so if you grab the latest from here (https://github.com/pixelandtonic/RedactorClips), yiic still should run fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.