EllisLab/CodeIgniter — Issue #646: Issue while routing
Author: miteshashar
Created: 2011-11-04 12:25:03+00:00
State: open

> A PHP Error was encountered
>
> Severity: Warning
>
> Message: preg_match() expects parameter 2 to be string, array given
>
> Filename: helpers/url_helper.php
>
> Line Number: 537

I tested by checking the value of $uri @ #537

This warning happens during the redirection happening while routing the following routing rule I am using:

```php
$route['(:any)'] = 'demo/index/$1';
```

It breaks my development environment, but is ok during production, since errors & warnings are turned off then!