Error 404 Unable To Resolve The Request Gii
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gii 404 error. Unable to use Gii up vote 2 down vote favorite 2 Following http://www.yiiframework.com/doc/blog/1.1/en/prototype.scaffold tutorial, it mentions to add some code to /blog/protected/config/main.php return array( ...... 'import'=>array( 'application.models.*', 'application.components.*', ), 'modules'=>array( 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'pick up a password here', ), ), ); These are the last few lines of my code for main.php, as you can see, I have followed instructions... 'errorHandler'=>array( // use 'site/error' action to display errors 'errorAction'=>'site/error', ), 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), // uncomment the following to show log messages on web pages /* array( 'class'=>'CWebLogRoute', ), */ ), ), ), // application-level parameters that can be accessed // using Yii::app()->params['paramName'] 'params'=>array( // this is used in contact page 'adminEmail'=>'example@example.com', ), 'import'=>array( 'application.models.*', 'application.components.*', ), 'modules'=>array( 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'pick up a password here', ), ), ); Yet when I visit index.php?r=gii, I get the following error: Error 404 Unable to resolve the request "gii". FYI - I am using version 1.1.12 which is the latest stable release. UPDATE I deleted everything and started again, and now is working. must have done something silly en-route yii installation http-status-code-404 gii share|improve this question edited Sep 19 '12 at 20:43 asked Sep 19 '12 at 19:50 G
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Not Found (#404) Unable to resolve the request “gii/” in Yii2 up vote 2 down vote favorite I am using the alpha version of Yii 2.I can acess the GII module via frontend but not via backend. The http://stackoverflow.com/questions/12501858/gii-404-error-unable-to-use-gii url '/advanced/backend/web/index.php?r=gii/' gives me 404 error. Any fix for the issue? yii share|improve this question asked Feb 4 '14 at 9:23 Dency G B 4,55562854 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Found out. I need to add this to the backend config file manually. 'modules' => [ 'gii' => 'yii\gii\Module', ], share|improve this answer answered Feb 4 '14 at 10:07 Dency G B 4,55562854 Why are you using Yii 2? As http://stackoverflow.com/questions/21548377/not-found-404-unable-to-resolve-the-request-gii-in-yii2 you probably know, This version of Yii is not for production –Ali MasudianPour Feb 4 '14 at 11:07 I knw..but i have enf time! –Dency G B Feb 4 '14 at 11:36 Oh, Sorry, Just intent to tell you that ;) –Ali MasudianPour Feb 4 '14 at 11:37 you should approve your own answer –realtebo Oct 31 '14 at 13:59 1 You have saved my time. Thanks for the question and answer –Khasan 24-7 Aug 27 '15 at 11:32 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged yii or ask your own question. asked 2 years ago viewed 2345 times active 2 years ago Related 2Yii openid - requested url not found?0Gii Unable to resolve the request “gii/index” - merge array understanding2gii 404 error. Unable to use Gii3Unable to resolve the request yii0Unable to resolve the request in Yii0Error 404 Unable to process request in Yii?0Getting Error 404 Unable to resolve the request “ActionName” when using webapp on server2Database Exception with Gii Generator on Yii21404 Not Found in yii framework0Yii - Random “unable to resolve request” Hot Network Questions
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/12476655/gii-unable-to-resolve-the-request-gii-index-merge-array-understanding site About Us Learn more about Stack Overflow the company Business Learn https://hatadu.wordpress.com/2011/04/19/gii-error-404-unable-to-find-the-code-you-requested/ more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gii error 404 Unable to resolve the request “gii/index” - merge array understanding up vote 0 down vote favorite 2 Trying to access locally http://mysite.dev/gii but I'm getting: Gii Unable to resolve the request "gii/index" Here is my config/localdev.php file: 'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>false, // If removed, Gii defaults to localhost only. 'ipFilters'=>array('127.0.0.1','::1'), ), If I use this error 404 unable address: http://mysite.dev/gii/default/login But this a password protect one, and we defined as false. We may think that localdev.php is NOT being applied, but I've echo "hello" inside the conditional that loads it, and it appeared". Note: Inside Yii framework there is a .htaccess file with: deny from all I don't see the reason for this behavior. Can I have your help please ? Update regarding the comments: Here's the localdev.php requiring main.php return CMap::mergeArray( require_once(dirname(__FILE__).'/main.php'), array( 'modules'=>array( 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>false, 'ipFilters'=>array('127.0.0.1','::1'), ), ), Here's the URL on main.php 'components'=>array( 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( '
bug today and like to share the solution. I notice that I have 3 red js errors saying ‘missing jquery library'. Then I remember that I explicitly tell Yii do not use built-in jquery library as in this post how-to-use-your-own-jquery-library-in-yii/ I do not know how to include jquery library for Gii use. Therefore, I have to comment out the clientScript in config/main.php and the problem solved. I have to put it back after finishing Gii business. If you know another way to do it, please let me know. 'clientScript'=>array( 'class' => 'CClientScript', 'scriptMap' => array( 'jquery.js'=>false, 'jquery-ui.min.js'=>false, ), 'coreScriptPosition' => CClientScript::POS_BEGIN, ), On the side note, SJFred has great article on Gii 403 error @ http://www.yiiframework.com/wiki/115/why-do-i-get-a-403-error-when-trying-to-use-gii/ Share this:ShareTwitterGoogleFacebookLike this:Like Loading... Related This entry was posted in javasript, Yii. Bookmark the permalink. One response to “Gii - Error 404 Unable to find the code yourequested.” Robert Longworth says: September 10, 2012 at 6:25 pm Ha! You legend you saved me so much time, re-jogging my memory I had done a few comments earlier in time to strip out an old version of jquery in framework\web\js\packages.php. I'd been messing with some jquery calendar's earlier and forgot to remove the comments! Thanks for the MA_HA-ASSIVE time saver!🙂 Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/Change) Canc