Not sure why you haven't attached it to your post, as that'd be the most reliable thing when people will read this in 1-2 years and your host might have vanished.beatme101 wrote: http://hurr.org/i/phpbb_preg_replace_callback.png
The error clearly states thatbeatme101 wrote:the 5 line replacement
/e
is not supported anymore. So you have to ask yourself where it is used in the first place. What does "my" code change? You see nowhere turning an /e
into /
. Since the regexp in any preg_replace*()
is always passed as the first argument you should ask "where is $preg
populated?" (alternatively: just print out its content and you'll understand the error message much better). And then you would discover it comes thru class bbcode::bbcode_cache_init()
(starting with line 211): every time the modifier e is used you have to delete it: Code: Select all
#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:=".*?")?:$uid\]).)?#ise
#\[code(?:=([a-z]+))?:$uid\](.*?)\[/code:$uid\]#ise
#\[list=([^\[]+):$uid\]#e
Code: Select all
#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:=".*?")?:$uid\]).)?#is
#\[code(?:=([a-z]+))?:$uid\](.*?)\[/code:$uid\]#is
#\[list=([^\[]+):$uid\]#
I just guess you mean line 488 in an untouched file, as I can't have a clue on how your modified file may look like.beatme101 wrote:The line 494 replacement works.
My whole point was: for the development team it should have been a rather easy task, just as it'd be for me (speak: something achievable within days or even hours, not weeks). Hence I have no clue why it needed to wait until 3.2.