MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: An unexpected error occurred. Something may be wrong with WordPress.org.  (Read 3568 times)

0 Members and 1 Guest are viewing this topic.

Offline Taposh

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Question: How to resolve error (Title : An unexpected error occurred.) while updating WordPress theme/plugin?



Error: An unexpected error occurred. Something may be wrong with WordPress.org or this serverís configuration.



Solution: If you have been facing this error when you try to update your wordpress theme or plugin or if you try to install new plugin or theme.



This error can occur if the server is not able to connect to WordPress.org or api.wordpress.org. You need to edit your /etc/hosts file and enter the IP where WordPress.org or api.wordpress.org is pointed. You can find the IP for using ping command from your local machine.

Open command line in your computer and use below command:

ping WordPress.org

or

ping api.wordpress.org

You will get result as below:

==========
Pinging wordpress.org [66.155.40.249] with 32 bytes of
Reply from 66.155.40.249: bytes=32 time=294ms TTL=49
Reply from 66.155.40.249: bytes=32 time=294ms TTL=49
Reply from 66.155.40.249: bytes=32 time=294ms TTL=49
Reply from 66.155.40.249: bytes=32 time=295ms TTL=49

Ping statistics for 66.155.40.249:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss
Approximate round trip times in milli-seconds:
    Minimum = 294ms, Maximum = 295ms, Average = 294ms
==========

You need to enter the IP (66.155.40.249 ) in your /etc/hosts file as below:

======
66.155.40.249                    WordPress.org www.WordPress.org api.wordpress.org www.api.wordpress.org
======


Your WordPress site will be able to connect WordPress.org or api.wordpress.org to download the required theme or plugin now.

MilesWeb Hosting Forum