Undefined variable: visitor_location
-
Hi, in plugin version 2.0 I cannot login to admin, as I am getting error Notice: Undefined variable: visitor_location in /home/rainware/public_html/new/wp-content/plugins/user-login-log/user-login-log.php on line 372
On that line #372 is $guest_ip = $visitor_location[‘IP’];
while $visitor location is not defined. I believe this line can safely be removed, as on line #386 the ip is stored as
‘ip’ => isset($_SERVER[‘HTTP_X_FORWARDED_FOR’]) ? esc_sql($_SERVER[‘HTTP_X_FORWARDED_FOR’]) : esc_sql($_SERVER[‘REMOTE_ADDR’]),and the $guest_ip is not used at all. Can you confirm if that is correct and perhaps fix it in the next version.
Thanks, cheers
Jan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined variable: visitor_location’ is closed to new replies.