The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP5 problem
Hi
I updated my server PHP version to PHP5, and get error in one of the addons regarding to preg_replace function, could you please to recode the function using preg_replace_callback function? The old code is PHP Code: PHP Code:
|
#2
|
|||
|
|||
Replace preg_replace() e modifier with preg_replace_callback
|
#3
|
||||
|
||||
What version of Vbulletin are you using?
|
#4
|
|||
|
|||
Quote:
--------------- Added [DATE]1465317190[/DATE] at [TIME]1465317190[/TIME] --------------- vb4.2.3 |
#5
|
||||
|
||||
You need to contact the author of the add-on, and/or post in its thread.
|
#6
|
|||
|
|||
I want just to replace the function preg_replace with preg_replace_callback function.
|
#7
|
|||
|
|||
What you are most likely getting is a warning similar to this...
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead That warning is simply telling you that preg_replace will not be supported in future versions of PHP. That is a WARNING, not an error. You can safely turn off deprecated warnings using something like this as the first line of the code... error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); |
#8
|
|||
|
|||
change php version to 5.4 rather then 5.5 try that
|
#9
|
||||
|
||||
|
#10
|
|||
|
|||
I will go with this solution, contact to the author of addon will help you solve the problem and fix your codes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|