[FIX] PluginMatcher.php, parserlib.php : fixing NOTICE E_DEPRECATED strlen():...
The error NOTICE (E_DEPRECATED): strlen(): Passing null to parameter #1 ($string) of type string is deprecated
occurs when the match()
function is called and the value passed as a parameter is null. That’s why I initialized the value of $text = ''
in the case where the value passed to the parameter is null. The error NOTICE (E_DEPRECATED): str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
also occurs when the $data
variable is null. That’s why I also initialized the value of $data = ''
in the case where the value passed to the parameter is null, to avoid the error that occurs when using the str_replace()
function. Here’s how I reproduced the error: Create a blog and follow this link on your Tiki: tiki-ajax_services.php?controller=comment&action=post&type=blog+post&objectId=1
. The error reproduces on the master branch.