vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327820

IMG to URL convert
by Bulent Tekcan
11 Feb 2020 12:53

Hello,


I'm using this code in class_bbcode.php line 1866




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I think something is old in this code,because this is generate error.log like that


PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /includes/class_bbcode.php on line 1866



But this code is working without any problem. Only generate this error.log


My php version is 5.6.x and vB 4.2.x


Regards

iA1 11 Feb 2020 13:49

It is php error. Just remove e from preg_replace.

Updated code will be like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Bulent Tekcan 11 Feb 2020 14:41

It is not OK :( This error occured in qoute and not work



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Quote:

Originally Posted by iA1 (Post 2602010)
It is php error. Just remove e from preg_replace.

Updated code will be like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


shka 11 Feb 2020 15:45

I think


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Bulent Tekcan 11 Feb 2020 20:16

Thanks so much :up: This code is perfectly working and didn't create any error.log


Many thanks again






Quote:

Originally Posted by shka (Post 2602014)
I think


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 17:13.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.