Routing question and error

I'm trying to route an URL like this

using the following routing rules:
$route['(:any)'] = 'search/filter/$1/AND/0/0';

This is not working. I get an error:
Quote:Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 47 bytes) in project\system\database\drivers\mysql\mysql_result.php on line 162

Does anyone have an idea?


This is not a routing related issue.

In your search controller you try to get a too big result set from the mysql server.
Either raise the memory limit in php.ini or limit the search results.

a) I doubt this eror is caused by the route...
b) Can you increse the memory limit, or do you nit have access to that
c) How much data are you expecting that tp return from the database?

Edit: Damn PistolPete, beat me to it Tongue

First of all, thank you both for the fast reply.

b) Yes, I could increase the memory limit, I have full access to everything.

But why is alternative 2 ( perfectly working while alternative 1 is not?

This URL obviously triggers a search. I'm getting data from a) my DB and b) a remote Web Service. In this case the search string "Tennis" returns 0 results from my DB and 49 results from the Web Service.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.