Friday, September 3rd, 2010

Addressing HTTP Error When Requesting API in Wordpress

10

Frankly I am not familiar with that name ng-blog. Even so, I’m not one new to the website.Because during this time that I have more I spend with Joomla. Recently I started glancing at cms which is so global.

Worpress … cms yes this is incredible. In addition to the Open Source nature, the support of the developers are also very high. Plugins that are available even been so many. Moreover, we can find plugins that we need a back-end via our blog and then install it. Super once.

However, the plugin installation process online is not without obstacles. The problem that occurs is at Http Error request to the API. The message appears “An Unexpected HTTP error occurred during the API request”. Unexpected error occurred during the request to the API. But it is not clear what the mistake was happening that made me wonder.

From the results of googling, I earn a little guidance. It is probably due to the influence of mod_security. I try to disable mod_security by htaccess. Result ….?

Experiment was a failure. Security module can not be disabled. Er it turns out, the security module on the server that I rent is mod_security2 that he simply can not be disabled by the user using. Htaccess.

Finally I decided to seek his own cause by doing a search on PHP scripts. During several hours of searching, finally found the cause, too. Following discussion.

The cause of error is too long to process the request API plugin in wordpress server timeout causing operation. By default, wordpress allow time milisecond 5000 aka 5 seconds to reqeust plugin. If within 5 seconds does not also get a replay, then the process will be terminated and there was an error “An Unexpected HTTP error occurred during the API request”. For that, we need to change the number 5 is a number greater than 5. I personally replaced it with the number 30.

What is the scriptnya …?
Please open the file /wp_includes/http.php on line 223.

'timeout' => apply_filters ( 'http_request_timeout', 5),

Change the script above becomes:

'timeout' => apply_filters ( 'http_request_timeout', 30),

By changing the value 5 to 30, then have time to request a plugin API to be longer. This way powerful enough to overcome the problems above.

Good try …..

Incoming search terms for the article:

an unexpected http error occurred during the api request An Unexpected HTTP Error occured during the API request wordpress 3 An Unexpected HTTP Error occurred during the API request An unexpected error occurred during HTTP request API http error wordpress wordpress an unexpected http error occurred during the api request --Post Related Search-- search plugin An Unexpected HTTP Error occurred during the API request wordpress plugins An Unexpected HTTP Error occurred during the API request Comments links could be nofollow free WP3 An Unexpected HTTP Error occurred during the API request unexpected http error occurred during the API request search theme An Unexpected HTTP Error occured during the API request searching for plugins in wordpress An Unexpected HTTP Error occurred during the API request solusi http error solusi web acceleration eror theme An Unexpected HTTP Error occured during the API request wordpress registry cleaner Comments links could be nofollow free process of API in wordpress Powered by Related Keyword Wordpress Plugin 

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Comments

10 Responses to “Addressing HTTP Error When Requesting API in Wordpress”
  1. Arthur says:

    Halo bro, thanks berat atas infonya.
    Saya mengalami hal seperti itu, maklum blogger pemula,
    jadi saya cari di wordpress, ketemu : http://wordpress.org/support/topic/227430

    Dan cara yang bro posting berfungsi di saya. It works for me.
    Thanks :)

  2. tikak says:

    thanks bro.. you fix my problem..

  3. gunawantw says:

    It works for me!
    Thanks a lot :-)

  4. Saya memakai Wordpress Adsense System untuk blog2 saya jadi belum menemukan masalah ini, tapi terima kasih untuk tips nya yg sewaktu-waktu dapat dipakai apabila menemukan masalah ini.

  5. Great post. This is help me with the SEO services I provide for my clients. Thanks!

  6. Manila SEO says:

    Thank you! You solved my problem! I have been solving this for the last 3 hours. I was too busy running through the code so I wasn’t able to think of searching the net for possible solutions.

    Danke!

  7. maskuncoro says:

    Very useful tips. Especially for new bloggers like me. Thank you.

Trackbacks

Check out what others are saying about this post...
  1. [...] Tapi terkadang, untuk melihat daftar plugin tersebut kita memerlukan waktu yang cukup lama karena lambatnya koneksi internet yang kita miliki. Secara default, wordpress akan menampilkan maksimal 24 daftar plugin yang ditemukan. Hal ini mungkin akan menjadi masalah bagi Anda yang memiliki koneksi internet cukup lambat atau sangat lambat. Bahkan terkadang yang tampil hanyalah pesan HTTP Error. [...]

  2. [...] Ada masalah masa mula-mula nak set theme blog ni. Mujur solusi tu ada kat sini http://justepri.web.id/mengatasi-http-error-saat-me-request-api-di-wordpress [...]



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Comments links could be nofollow free.