I've got a very strange problem. I have some simple routes configured which worked on my local server (PHP 5.3 and 5.4, both work fine) but on the deployment server (PHP 5.3.23) they failed, so I even switched to the default routes preconfigured by Yii (even though I'm pretty sure mine was correct), but they also fail with the following exception The URL pattern "<controller:\w+>/<id:\d+>" for route "<controller>/view" is not a valid regular expression.
Here are the routes:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
//'^$' => 'site/index',
//'<view:[\w\-\_\d]+>' => 'site/paged',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
'showScriptName' => true,
),
as you can see I've commented out my two routes to make sure I didn't made some stupid mistake.
What is wrong?
here's the backtrace if anyone's interested http://i.imgur.com/z0HtioQ.png