我在错误日志中有这样的错误错误:PHP公告:未定义指数
mod_fcgid:标准错误:PHP公告:未定义指数:网址在/var/www/vhosts/mysite.it/httpdocs/wp-content/主题/ colormag-pro/js/sharrre/sharrre.php上线
4行受影响。
它们对我的网站有危险吗?我该如何修正它们?
更新:在sharre.php前4行此代码得到错误
$json['url'] = $_GET['url'];
$url = urlencode($_GET['url']);
$type = urlencode($_GET['type']);
if(filter_var($_GET['url'], FILTER_VALIDATE_URL)){
if($type == 'googlePlus'){ //source http://www.helmutgranda.com/2011/11/01/get-a-url-google-count-via-php/
$contents = parse('https://plusone.google.com/u/0/_/+1/fastbutton?url=' . $url . '&count=true');
这通常意味着PHP无法访问数组索引中的项目,该项目实际上尚未定义。尝试查看sharrre.php文件中的行号,以查看在那里访问了哪些$变量。 – igraczech
对不起。只是添加了错误的代码行。你知道我应该做些什么修改来修复这些错误? – willsmith7
请把你的标签和标题对! –