Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几天前,a 通过使用 UVC 插件在 wordpress 中创建了一个仅用于视频的网站,并使用了更多付费插件,例如 sero 流量磁铁、反弹控制和 wp sensei。但问题是wp sensei,安装成功,但无论如何都无法激活它。尝试了更多,说在 wp sensei 的 108 行中触发了致命的。我的网站链接是网站设计公司。我需要快速解决这个问题。谢谢。
这是 wp sensei "if($bans[$i]['ip'] == $_SERVER['REMOTE_ADDR'])" 的第 108 行
尝试用
if(array_key_exists('ip',$bans[$i])){
IE:
if(array_key_exists('ip',$bans[$i])){ if($bans[$i]['ip'] == $_SERVER['REMOTE_ADDR']){ //plugin code is here } }
这将检查阵列密钥 IP 是否存在于阵列列表中,