Getting php Warning on frontend about inet_pton(): Unrecognized address
-
Hi,
recently we started getting the Warning mentioned below pointed out by Query Monitor and it seems that it happens only on the frontend.
We use CF and the “CF-Connecting-IP” is set in Wordfence All Options page. In the All options page, Wordfence seems to get the IP just fine, but on the frontend Query Monitor reports the following error.
Warning: inet_pton(): Unrecognized address
in: wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php:28
component: Plugin: query-monitorWF version: 7.5.7
QM version: 3.8.2
WP version: 5.5.8I stumbled upon some older forum posts where they suggest checking whether php has ipv6 enabled – so I checked and it has it enabled and recognizes it fine in the traffic section of WF. And the Warning is happening, when WF sees my IP as v4 too.
Thanks for the plugin and any help ??
Bests
- The topic ‘Getting php Warning on frontend about inet_pton(): Unrecognized address’ is closed to new replies.