We are experiencing some PHP errors due to a "too large" regular expression that is taking place during template parsing in Template.php. We noticed it was only occurring on templates that load an entry based on URL title and the URL title contains the word "random". The regular expression that is failing can be found in Template.php in the early 800 lines:
// Strip the "chunk" from the template, replacing it with a unique marker.
if (stristr($raw_tag, 'random'))
{
$this->template = preg_replace("|".preg_quote($chunk)."|s", 'M'.$this->loop_count.$this->marker, $this->template, 1);
}
else
{
$this->template = str_replace($chunk, 'M'.$this->loop_count.$this->marker, $this->template);
}
We're not sure how to go about fixing this issue.