Jump to content

Advanced Search Module Compilation failed: invalid range in character class Error


nicholas

Recommended Posts

I am currently getitng this error when using the advanced search module for proximity searching. 

 

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid range in character class at offset 22 in ../plugins/geomaps.php on line 463

 

Here is the line from there

                        $controller->passedArgs['url'] = preg_replace('/\/'.$search_address_field._PARAM_CHAR.'[\p{L},-\s0-9]+/ui','',$controller->passedArgs['url']);

                        $controller->passedArgs['url'] = preg_replace('/\/'.$search_address_field._PARAM_CHAR.'[a-z,0-9-\s]+/ui','',$controller->passedArgs['url']); // One above doesn't work well in all cases, but required for non-latin characters in address

I am assuming its a small PHP error, but im sub par whe it comes to php.  Care to solve this one.  Thanks.

Link to comment
×
×
  • Create New...