• I understand that pingback will not work if the server fopen is disabled. My host said that they have to disable it for security reason. after they have disabled, I can not longer receive pingback (a note in a comment saying that someone is linking my post at their site)

    Are there anyways of making this pingback works without changing host.

    ** They told me that Curl can be used.

    Please advise. Thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter akira01

    (@akira01)

    Anyone have an idea of how to solve this.

    Please advise. Thanks in advance.

    Thread Starter akira01

    (@akira01)

    Any help would be very much appreciated.

    Thanks

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    My host said that they have to disable it for security reason.

    Yes. Many bad hosts think this. It’s a common misconception. They are wrong. For security, they should disable allow_url_include, not allow_url_fopen. This, of course, assumes they are running a modern version of PHP in the first place (5.2 and up). Sadly, many hosts still support PHP 4, and so resort to extremely stupid measures like this in the name of security.

    Are there anyways of making this pingback works without changing host.

    No.

    ** They told me that Curl can be used.

    Yes, WordPress already supports using curl if allow_url_fopen is disabled. If it’s not working, then they don’t have curl working.

    I would simply switch hosts. If a host, whom I’m paying for, doesn’t understand basic security principles, then I don’t want to use them.

    Could you tell us who the hosting company is so that we can recommend that WordPress users avoid them in the future?

    Yes, WordPress already supports using curl if allow_url_fopen is disabled. If it’s not working, then they don’t have curl working.

    Actually I wondered that as well because every other thread on this said that wordpress would fall back to curl if fopen was not available.

    Thanks. You helped me out as well.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    If you’re interested, the relevant code is in wp-includes/functions.php, in the function wp_remote_fopen(). That’s where the curl fallback is.

    Thread Starter akira01

    (@akira01)

    I have check phpinfo() and it shows:
    allow_url_fopen – off(local) – off(master)

    cURL support – Enabled
    cURL Information – libcurl/7.16.0 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6

    If cURL is enabled, wordpress should place the pingback correctly in the comments, right? But Mine is not. I have disabled all plugins and still pingback is not showing in my post comment area.

    Any advise. Thanks

    Thread Starter akira01

    (@akira01)

    Any advise would be very much appreciated. Thanks

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    It’s checking for the presence of the curl_init function in PHP. So if you have curl enabled, then it will use it.

    Double check that you’re running the latest version of WordPress (2.3.1). Older versions didn’t have this support, I think.

    Thread Starter akira01

    (@akira01)

    Oh, I am still using 2.2.3. Well Got to upgrade, I guess.

    Thanks

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Also try running this code in it’s own page, see what it does:

    <?php
    if (function_exists('curl_init')) {
    echo "Curl found";
    } else {
    echo "Curl not found";
    }
    ?>

    Thread Starter akira01

    (@akira01)

    I have upgraded to 2.3.1. Well Pingback still can’t work.

    Otto, May I know how to run this code.

    Please advise. Thanks

    Thread Starter akira01

    (@akira01)

    I place this code in single.php and it says “Curl Found”

    But the pingback just can’t work? Hmmm…

    Any advise. Thanks

    Thread Starter akira01

    (@akira01)

    I checked the php.ini and the Curl is written like this :

    cURL support enabled
    cURL Information libcurl/7.16.0 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    akira01: Do future dated posts also not work for you?

    You may be having a wp-cron related problem instead.

    When you make a post, it doesn’t perform the pingbacks and such right away. These get delayed through the wp-cron process. Then they run in the background later. Because of the way some servers are configured, wp-cron does not work on them.

    If you have access to the database directly (through phpMyAdmin), you can look at the postmeta table for keys with the name of “_pingme”. If they are there, then wp-cron has yet to take care of them and perform the pingback operations.

    Thread Starter akira01

    (@akira01)

    Hi Otto, Thank you for your time in helping me.
    I’ve checked my database and did a search for “pingme” and “_pingme” and can’t find it in all tables.

    I normally post in real time. Meaning that I will post today and publish today.

    Anyway, sometime I may create a post first, then publish it later. Anyhow all these posts cannot receive pingback.

    Please advise. Thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘fopen disabled – anyway to make pingback works’ is closed to new replies.