I have installed WAMP Server 3.3.0 in my computer and after that when I go to localhost loading page displaying following error messages
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in C:wamp64scriptsconfig.inc.php on line 82
this is my config.inc.php
foreach($Text_Encoding as $key => $value) {
if(preg_match('~^'.$key.'s+:s+(.+)~mi',$output,$matches) === 1) { //line 82
$Text_Encoding[$key] = $matches[1];
}
}
how could I fix this problem?
2
Answers
Look like you need to change by this ?
Your $output is not set and you don’t use $value in your code
The intent of your code fragment likely follows along these lines which is to fetch the current environment encoding and replace the array entries with actual values:
From this it appears that using
$value
is not what you want.Source: http://forum.wampserver.com/read.php?2,163848,163848