Yii Framework Forum: Page Not Found after switching from Windows Vista to Ubuntu - Yii Framework Forum

Jump to content

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

Page Not Found after switching from Windows Vista to Ubuntu Rate Topic: -----

#1 User is offline   Bjorn Theart 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 02-March 09

Posted 25 May 2009 - 08:40 AM

I recently switched from running Yii on my laptop with Windows Vista on to an office server running Ubuntu(9.04) Linux.
I get a Page Not Found error when I access most of my controller actions now. I've just checked and notice that it is only when there are parameters passed in my url like

,but this

works perfectly.

Any suggestions???
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,889
  • Joined: 04-October 08
  • Location:DC, USA

Posted 25 May 2009 - 11:31 AM

Check  your controller file name. It is case sensitive on Linux.
0

#3 User is offline   Bjorn Theart 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 02-March 09

Posted 26 May 2009 - 12:33 AM

:-\ Didn't work qiang. Changed controller file name from RawMaterial.php to rawmaterial.php and I get the same error.

0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,889
  • Joined: 04-October 08
  • Location:DC, USA

Posted 26 May 2009 - 07:10 AM

You should use RawmaterialController.php.
0

#5 User is offline   Bjorn Theart 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 02-March 09

Posted 26 May 2009 - 07:30 AM

Sorry made a typo there qiang. I meant to say

Quote

I tried changing controller file name from RawMaterialController.php to rawmaterialcontroller.php and I get the same error.

RawMaterialController.php was the initial name for the controller. I didn't make any changes to any controller names after I copied it over to linux box
0

#6 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 26 May 2009 - 07:42 AM

Use RawmaterialController.php as Filename. Only the first letter of the controller name in the route will be uppercase.
1

#7 User is offline   Bjorn Theart 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 02-March 09

Posted 26 May 2009 - 07:56 AM

Spot on, thanx Mike,qiang  ;D
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