• I just installed wordpress and am running into errors trying to install plugins and themes. I get the error:

    An Unexpected HTTP Error occurred during the API request.

    I changed the timeout setting on class-http.php to 30, doesn’t work. Does anyone have any suggestions, btw my host is hostgator. thx

Viewing 8 replies - 1 through 8 (of 8 total)
  • Me too, I have the some problem, and i don’t know what to do 🙁

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    – resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    I had installed wordpress yesterday, and i didn’t install or active any plug-in or theme.
    But after writing my post, i tried to active Akismet plug-in after getting a API key. And this is what i have:
    Server Connectivity

    Network functions are disabled.

    Your web host or server administrator has disabled PHP’s fsockopen or gethostbynamel functions. Akismet cannot work correctly until this is fixed. Please contact your web host or firewall administrator and give them this information about Akismet’s system requirements.

    Last checked 1 min ago.
    What should i do?

    I’m hosting at byethost.com for free 🙂

    I would talk to my host like the error message says.

    WP has a time-out for api requests. This is a problem your host can fix most likely. There is a way to alter the code but I don’t think altering the wp core files is the answer. The problem will come back after every upgrade. http://www.wohill.com/an-unexpected-http-error-occurred-during-the-api-request/ Talking to your host is the best solution.

    i have this problem too and hosting at byethost.com for free

    http://209.190.27.142/index.php?/article/AA-00261

    On free hosting sockets in php are disabled due to abuse.

    This will cause the following functions to not work.

    1) sending emails using a third part mail server (eg google apps , etc)

    2) plugins that connect to the internet to check anything.

    3) automatic update system in scripts that download files from the internet.

    4) and generic function in a script that requires the script to connect to the internet.

    If sockets / curl is required please upgrade your account.

    we must upgrade dude… 🙁

    I would say not necessarily upgrade, just do everything manually, don’t expect the free byethost panel to be of much help. Upload your themes, plugins, etc no other option.

    Cheers

    I had the same issue with my WP site.
    Refer to this page on editin wp-config.php file.
    http://codex.wordpress.org/Editing_wp-config.php#FTP.2FSSH_Constants

    if you dont have time to read through the whole page
    here is what you need to do:

    you might need to add the following lines at the end of the file:

    define(‘FS_METHOD’, ‘value’); // either use direct, ssh2, ftpext or ftpsockets. in my case direct worked

    define(‘FTP_BASE’, ‘/path/to/wordpress/’);
    define(‘FTP_CONTENT_DIR’, ‘/path/to/wordpress/wp-content/’);
    define(‘FTP_PLUGIN_DIR ‘, ‘/path/to/wordpress/wp-content/plugins/’);
    define(‘FTP_PUBKEY’, ‘/home/username/.ssh/id_rsa.pub’); // if you are using SSL. else you may not add this line
    define(‘FTP_PRIKEY’, ‘/home/username/.ssh/id_rsa’);// if you are using SSL. else you may not add this line
    define(‘FTP_USER’, ‘username’);
    define(‘FTP_PASS’, ‘password’);
    define(‘FTP_HOST’, ‘ftp.example.org’);
    define(‘FTP_SSL’, false);
    ?>

    Check if this helps. .

    CHeers 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘An Unexpected HTTP Error occurred during the API request.’ is closed to new replies.