Error in /lib/classes/class.CmsRoute.php on line 251

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

Error in /lib/classes/class.CmsRoute.php on line 251

Post by blackrain »

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
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

Re: Error in /lib/classes/class.CmsRoute.php on line 251

Post by blackrain »

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       }
Post Reply

Return to “CMSMS Core”