• Resolved derekakelly

    (@derekakelly)


    Just noticed the following messages while using your plugin on a brand new site, it is literally the only plug-in installed or even downloaded..

    Warning: inet_pton(): Unrecognized address in /home/xxxx/public_html/xxxx.com/wp-content/plugins/underconstruction/ucOptions.php on line 114
    
    Warning: inet_ntop(): Invalid in_addr value in /home/xxxx/public_html/xxxx.com/wp-content/plugins/underconstruction/ucOptions.php on line 114
Viewing 3 replies - 1 through 3 (of 3 total)
  • I am getting the same as well. I’ve seen it for some time now, but it has worked as intended still to the extent I am using the plugin for

    It is coding problem, can be fixed by changes below, hope developer can correct it soon ??

    
    --- wp-content/plugins/underconstruction/ucOptions.php	2017-01-09 18:37:31.153741580 +0800
    +++ wp-content/plugins/underconstruction/ucOptions.php.new	2017-01-09 18:36:58.882741608 +0800
    @@ -108,7 +108,7 @@
     // 		process IP addresses
     // ======================================
     
    -if(isset($_POST['ip_address'])){
    +if(isset($_POST['ip_address']) && $_POST['ip_address']){
     
     	$ip = $_POST['ip_address'];
     	$ip = inet_ntop(inet_pton($ip));
    
    • This reply was modified 7 years, 10 months ago by Jan Dembowski. Reason: Fixing code block
    Plugin Author Garrett Grimm

    (@grimmdude)

    Thanks for the ticket, this has been resolved in 1.18

    -Garrett

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘warning inet_pton’ is closed to new replies.