PHP Warning: preg_match(): Unknown modifier 'n' in /lib/classes/class.CmsRoute.php on line 251
I have got this error occurring on my site. I have no idea why this is now an issue but it keeps coming up.
any thoughts.
I am running php 5.6.40 and nothing has changed except this error.
thanks
Error in /lib/classes/class.CmsRoute.php on line 251
Re: Error in /lib/classes/class.CmsRoute.php on line 251
This is the related section of the class file.
Code: Select all
238 {
239 $this->_results = null;
240 if( (isset($this->_data['absolute']) && $this->_data['absolute']) || $exact ) {
241 $a = trim($this->_data['term']);
242 $a = trim($a,'/');
243 $b = trim($str);
244 $b = trim($b,'/');
245
246 if( !strcasecmp($a,$b) ) return TRUE;
247 return FALSE;
248 }
249
250 $tmp = array();
251 $res = (bool)preg_match($this->_data['term'],$str,$tmp);
252 if( $res && is_array($tmp) ) $this->_results = $tmp;
253 return $res;
254 }