As per this change record https://www.drupal.org/node/1969794, ip_address() was removed in D8.
Also, I don't think this code:
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
should trigger an error.

Comments

mfernea created an issue. See original summary.

mfernea’s picture

Issue summary: View changes
mfernea’s picture

Status: Active » Needs review
klausi’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
Status: Needs review » Needs work

Thanks, left some comments there!

mfernea’s picture

Status: Needs work » Needs review

I updated the PR.

klausi’s picture

Status: Needs review » Fixed

Commited, thanks!

  • klausi committed 6e88ebe on 8.x-3.x authored by mfernea
    fix(RemoteAddress): Improve error message for Drupal 8 and prevent...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.