Yii Framework Forum: Error - Trying To Set Up Testdrive App(From Yii Tutorial) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error - Trying To Set Up Testdrive App(From Yii Tutorial) Rate Topic: -----

#1 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 19 December 2012 - 11:36 PM

I'm a newbie trying to use Yii for some interesting projects.
Using Tutorial :http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app

When I try to access htpp://localhost/testdrive/index.php?r=user I am getting following error:
Unable to resolve the request "user".

Troubleshooting attempted:
- Checked permissions.
- Checked main.php file , I have not touched the default except for enabling gii and mysql connection.


The error log states:
2012/12/19 16:18:19 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "user".' in /opt/csw/apache 2/share/htdocs/yii12/framework/web/CWebApplication.php:287
Stack trace:
#0 /opt/csw/apache2/share/htdocs/yii12/framework/web/CWebApplication.php(142): CWebApplication->runController('user')
#1 /opt/csw/apache2/share/htdocs/yii12/framework/base/CApplication.php(162): CWebApplication->processRequest()
#2 /opt/csw/apache2/share/htdocs/testdrive/index.php(13): CApplication->run()
#3 {main}
REQUEST_URI=/testdrive/index.php?r=user





Please help!? :-)
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 20 December 2012 - 03:50 AM

You did create the user model and CRUD ?
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 20 December 2012 - 10:58 AM

View PostMaurizio Domba, on 20 December 2012 - 03:50 AM, said:

You did create the user model and CRUD ?


Yes I did . I followed all the steps in the tutorial up until the point where I have to access :
localhost/testdrive/index.php?r=user

There was no error I encountered in earlier steps. There was a permissions issue that I had to fix (to allow nobody apache user have access to testdrive directory under WebRoot)
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 20 December 2012 - 01:44 PM

Just to be sure.. .check that you have the UserController and that the permissions are right.
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 20 December 2012 - 07:00 PM

View PostMaurizio Domba, on 20 December 2012 - 01:44 PM, said:

Just to be sure.. .check that you have the UserController and that the permissions are right.


And where should I check that ?(pardon my ignorance) :-)
0

#6 User is offline   yii_help 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 12-December 12

Posted 20 December 2012 - 08:10 PM

View Postyii_help, on 20 December 2012 - 07:00 PM, said:

And where should I check that ?(pardon my ignorance) :-)


My bad, just did CRUD part again , and it worked. Thanks for the help.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users