inet_pton()
-
With Wordfence 6.03 (not sure if it occurs with 6.02) I am getting the following message from my inMotion Hosting…
Subject: Cron <th*****@biz***> cd /home/path/public_html/path/path; php -q wp-cron.php
Message:
Warning: inet_pton(): Unrecognized address in /home/path/public_html/path/path/wp-content/plugins/wordfence/lib/wfUtils.php> on line 126The *** and “path”‘s I’ve added to obscure.
This is happening on 4 of my sites – at least so far.
Please help!!
-
Please ensure you are on version 6.0.3, which addressed this specific error. If you are on it, please confirm your
- Operating system of the server
- WordPress version
- Get a screenshot of your system information (near bottom of options page)
Thanks!
tim
I’m on Wordfence 6.0.3
Apache 2.2.25
WordPress 4.2.2I can’t add a screenshot here… Hope this will help
PHP: 5.4.41
System:
Linux *****.inmotionhosting.com 2.6.32-431.5.1.el6.bl1.1.5_1.x86_64 #1 SMP Thu Mar 20 13:18:49 MDT 2014 x86_64
Build Date:
May 21 2015 08:59:16
Configure Command:
‘./configure’ ‘–build=x86_64-redhat-linux-gnu’ ‘–host=x86_64-redhat-linux-gnu’ ‘–target=x86_64-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/opt/php54’ ‘–exec-prefix=/opt/php54’ ‘–bindir=/opt/php54/bin’ ‘–sbindir=/opt/php54/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/opt/php54/share’ ‘–includedir=/opt/php54/include’ ‘–libdir=/opt/php54/lib64’ ‘–libexecdir=/opt/php54/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir=/var/lib’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–with-libdir=lib64’ ‘–libdir=/opt/php54/lib/php’ ‘–with-sqlite3=static’ ‘–with-pdo-sqlite=static’ ‘–disable-fileinfo’ ‘–enable-cli’ ‘–disable-cli-server’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-dbase’ ‘–enable-exif’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–enable-libxml=static’ ‘–enable-magic-quotes’ ‘–enable-mbstring’ ‘–enable-pdo=static’ ‘–enable-soap’ ‘–enable-sockets’ ‘–enable-sqlite-utf8’ ‘–enable-zend-multibyte’ ‘–enable-zip’ ‘–with-bz2’ ‘–with-curl’ ‘–with-curlwrappers’ ‘–with-freetype-dir=/usr’ ‘–with-gd’ ‘–with-gettext’ ‘–with-imap’ ‘–with-imap-ssl’ ‘–enable-intl’ ‘–with-icu-dir=/opt/icu-last’ ‘–with-jpeg-dir=/usr’ ‘–with-kerberos’ ‘–with-libexpat-dir=/usr’ ‘–with-mcrypt’ ‘–with-mhash’ ‘–with-mime-magic’ ‘–with-mm’ ‘–with-mysql=mysqlnd’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-mysqli=mysqlnd’ ‘–with-openssl’ ‘–with-openssl-dir=/usr’ ‘–with-pcre-regex’ ‘–with-pdo-mysql=mysqlnd’ ‘–with-pic’ ‘–with-png-dir=/usr’ ‘–with-pspell’ ‘–with-tidy’ ‘–with-ttf’ ‘–with-xmlrpc’ ‘–with-xpm-dir=/usr’ ‘–with-xsl’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’ ‘–with-pdo-pgsql=/usr/pgsql-9.3’ ‘–with-pgsql=/usr/pgsql-9.3’
Server API:
CGI/FastCGI
Virtual Directory Support:
disabled
Configuration File (php.ini) Path:
/opt/php54/lib/php
Loaded Configuration File:
/opt/php54/lib/php/php.ini
Scan this dir for additional .ini files:
(none)
Additional .ini files parsed:
(none)
PHP API:
20100412
PHP Extension:
20100525
Zend Extension:
220100525
Zend Extension Build:
API220100525,NTS
PHP Extension Build:
API20100525,NTS
Debug Build:
no
Thread Safety:
disabled
Zend Signal Handling:
disabled
Zend Memory Manager:
enabled
Zend Multibyte Support:
provided by mbstring
IPv6 Support:
enabled
DTrace Support:
disabled
Registered PHP Streams:
compress.zlib, compress.bzip2, tftp, ftp, telnet, dict, ldap, ldaps, http, https, ftps, scp, sftp, php, file, glob, data, phar, zip, bfa
Registered Stream Socket Transports:
tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters:
zlib.*, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunkCan you try deactivating and reactivating the plugin?
tim
So are you running wp-cron from the command line in a cron job? You probably should try this command instead.
wget http://example.com/wp-cron.php`
Obviously, replacing example.com with your domain name.Let me know if this fixes it.
tim
I’ve deactivated and reactivated Wordfence. As you’ve noticed, I’ve disabled WP Cron in my wp-config.php and am running a cron job from my cPanel.
I had do do this some time ago as I have 9 WP sites on my hosting account – each with Wordfence – And WF was killing my resource usage, so I gave each site a separate cron job – each staggered by an hour. That and disabling WF’s Live view, brought things under control.
Also, I don’t know if it makes any difference, or if you noticed, I run my WP sites from a folder. So the only files in each site root are .htaccess and index.php… everything else is in a folder on that site.
Ken
Hi Ken,
So you’re saying you don’t want to do a wget?
Thanks,
Mark.
I’m pleading ignorance! LOL
I set the cron jobs via my cPanel after reading some suggestions to do that on the web.I’m on shared hosting… So how do I do the wget instead? For each site? Staggered?
I’m open to suggestions!
Well, the disabling and reenabling of the plugin didn’t help… I just got another of the same message…
Also, inMotion Hosting does not allow wget on shared servers
Hi,
So the issue you’re having is that you’re running the wp-cron which is really WordPress from the PHP command line. That means that WordPress does not normally have access to the usual data that it would have. And what you’re seeing is an error related to the fact that there is no IP address from an HTTP request- because you’re running PHP from the command line.
Doing this you may run into issues with some other plugins too that expect IP addresses or other HTTP request data during cron processing.
I’m going to log an issue to try to get this fixed – at least on our side. But until then we suggest you launch the wp-cron using an actual HTTP request which is started by something like wget or curl or another command line HTTP client.
Regards,
Mark.
I know that you’ve marked this resolved… But I thought this might help…
inMotion Hosting has an article on disabling the wp-cron.
http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpressIn the article, they say to use…
cd /home/userna5/public_html; php -q wp-cron.php
This has worked fine up until the new Wordfence change. I have a message into them with regards to my problem, but from your perspective what would you folks recommend?
And as a final coda… I just want to place this here as I was able to solve my problem by using curl for the cron on my hosting… Perhaps it will help someone else.
/usr/bin/curl –user-agent cPanel-Cron http://xyz.com/folder/wp-cron.php > /dev/null 2>&1
Took care of the problem just fine!
The topic ‘inet_pton()’ is closed to new replies.