The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BB Code PHP Error
Hello
I'm using this code in class_bbcode.php. This is for IMG to URL convert Code:
// Start IMG to URL BBCode Converter if ($this->contains_bbcode_img_tags($message)) { $message = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $message); } // End IMG to URL BBCode Converter PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/includes/class_bbcode.php on line 1866 Any idea what is the problem in that code ? Before my php is old and I never see any problem. Regards |
#2
|
||||
|
||||
The best thing to do here is to upgrade your vB to a version that is compatible with the PHP you are using now.
|
#3
|
|||
|
|||
But my vB also compatible my php version. Only that code seems to be old. I think preg_replace changed in php 5.6. But how can I correct that code I don't know.
Maybe preg_replace change to preg_replace_callback ? |
#4
|
||||
|
||||
What are your vB and PHP version numbers?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|