Quote:
Originally Posted by tpearl5
still getting this on every thread page:
Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '1' in [path]/includes/class_postbit.php(321) : eval()'d code on line 113
and then in threads all posts where replacements would be, there is no post text at all.
This is with 4.0.7
|
I figured this out - it has to do with keywords that start with numbers. As soon as I removed those keywords, the errors went away.
Not quite sure how to fix it, but here's some info:
http://php.net/manual/en/function.preg-replace.php
Quote:
When working with a replacement pattern where a backreference is immediately followed by another number (i.e.: placing a literal number immediately after a matched pattern), you cannot use the familiar \\1 notation for your backreference. \\11, for example, would confuse preg_replace() since it does not know whether you want the \\1 backreference followed by a literal 1, or the \\11 backreference followed by nothing. In this case the solution is to use \${1}1. This creates an isolated $1 backreference, leaving the 1 as a literal.
|