Problem communicating with WP_CRON: Failure when receiving data from the peer

Hi there,

When I installed AutoBlog I got this error message: "Problem communicating with WP_CRON: Failure when receiving data from the peer".

I have check the wp-config.php file and there is no mention of WP_CRON. Also, there are no other active plug-ins on the network, apart from WPMU DEV Dashboard and AutoBlog.

If you could please help

Many thanks
Panos

  • Panos

    Sorry, problem uploading, so here it is:

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'content removed');

    /** MySQL database username */
    define('DB_USER', 'content removed');

    /** MySQL database password */
    define('DB_PASSWORD', 'content removed');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY', 'content removed');
    define('SECURE_AUTH_KEY', 'content removed');
    define('LOGGED_IN_KEY', 'content removed');
    define('NONCE_KEY', 'content removed');
    define('AUTH_SALT', 'content removed');
    define('SECURE_AUTH_SALT', 'content removed');
    define('LOGGED_IN_SALT', 'content removed');
    define('NONCE_SALT', 'content removed');

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'wp_';

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
    * language support.
    */
    define('WPLANG', '');

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    */
    define('WP_DEBUG', false);

    /**
    * Change this to true to run multiple blogs on this installation.
    * Then login as admin and go to Tools ->a Network
    */

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.philosophy-of-cosmology.ox.ac.uk');
    define('PATH_CURRENT_SITE', '/events/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    /* That's all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    /* Destination directory for file streaming */
    define('WP_TEMP_DIR', ABSPATH . 'wp-content/');

  • Ivan

    Hey Panos,

    Hope you are well today.

    This is odd. Can you post a link to the feed/s you are trying to fetch?

    Also it might be problem if you are using your own VPS or dedicated server(I believe you are using Webfusion), if so you might want to check your ServerName in Apache. Please check this post. Or even better ask your provider for advice as they might have already seen this on their network.

    Let me know if this helps.
    Ivan

  • Panos

    Hi Ivan,

    Please see the answer to your questions below:

    The link to feed is http://www.philosophy-of-cosmology.ox.ac.uk/events/feed/

    I am not using my own VPS and dedicated server.

    I have contacted my hosting company and they suggested using the alternative wp-cron feature (adding define('ALTERNATE_WP_CRON', true); to the wp-config.php file). After doing so, I can see for the first 1 processed feed on the Auto Blog dashboard. Unfortunately, there was also an error “WP HTTP Error: Failure when receiving data from the peer”.

    I went back to the hosting company for more suggestions. Here is their response:

    “Unfortunately there isn't much more that I can suggest. It does look like this is performing a loopback connection. Our servers prevent scripts making HTTP (port 80) connections back to the same server that they're running on, as policy.

    This is done to prevent the possibility that mis-configured scripts could enter, essentially, an "infinite loop", making call-backs to themselves. Such a situation is extremely detrimental to server performance, and would negatively impact other users also on this shared server.

    Unfortunately we are not able to lift this block on a per-site or per-script basis, so you will need to see if you are able to reconfigure the script (or contact the script authors for assistance doing this), or use an alternative script that doesn't require HTTP requests to its own server.”

    Unless you have any other suggestions, I am wondering if I should give up on this plug-in and try Multisite Content Copier instead. I have been told that it should be OK for my requirements. Could you please confirm?

    How can I download it without a monthly membership?

    If you could please let me know

    Many thanks
    Panos

  • Ivan

    Hey Panos,

    Hope you are well and thanks for the informative answer.

    It seems that you are using Autoblog in a multi-site install.
    Since you are trying to fetch the feed on the same server from different sub-site, and your host provider it doesn't allow this it is not going to work I am afraid.

    The only option will be to change the hosting if they are not willing to allow this. If that doesn't work for you we can always swap your membership for the Multisite Content Copier.

    Thanks,
    Ivan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.