I’m running WordPress on a localhost WAMP server and whenever I go to “Plugins” or “Dashboard > Updates” or even to “Dashboard” nothing loads (no WordPress news, no updates, and I’m not able to search for plugins nor update them).
In the “Plugins” section, I see this when I try to search for something:
An unexpected error occurred. Something may be wrong with
WordPress.org or this serverâs configuration. If you continue to have
problems, please try the support forums.
Has anyone encountered this issue before? It happened overnight a few weeks ago for me. It was working for a long time and then one day it stopped. What I already done:
- Searched Google and WordPress.org support forums. This issue is mentioned hundreds of times and there is no solution.
- Checked php.ini, Apache’s config, .htaccess, enabled potentially related PHP/Apache modules, checked if WAMP is set to “online” (my WAMP is accessible from other network computers now).
- Allowed every permission for WAMP in “Allow a program through Windows Firewall”.
- Deactivated all plugins and themes other than the default one.
- Checked [Settings > General] to see if URLs are valid and they are.
- Resaved [Settings > Permalinks].
- Installed another WordPress on this localhost and it works. So, why doesn’t the first one?
In my case, it was simply the SITE URL left blank in Settings -> General. I
filled it with my site URL, and everything started working again.
I found out by enabling WP_DEBUG in wp-config.php, and I got this error:
“Notice: Undefined index: host”
For me, the issue was that my localhost software (MAMP, on macOS) was not able to make a secure connection. After enabling WP_DEBUG and checking the log file, I saw the following error (emphasis added by me):
After a bit of research, I found one site saying that my PHP cURL extension might be disabled. I created a phpinfo() page to check; it was already enabled.
Then I found another site saying that MAMP comes with a libcurl library which is missing a ca-cert bundle. I’ll copy the page content here, just in case this page lasts longer 🙂
Copied from http://dev.soup.io/post/56438473/If-youre-using-MAMP-and-doing-something
Well Even had Got a similar issue, It way resolved by following steps.
1) Login to “Cpanel” of Your Hosting
2) Goto “Health Checks and Monitoring”
3) Click “Port 80”
4) Check if its Blocked ,
a) YES>>Delete files which may be listed there.
b) NO >> Contact your Hosting Support.
5) if 4a>>Click unblock the port , It might take couple of min/hrs to get unblocked.
After spending more time is this I have solved this by looking at
Make sure this flag is false, if it’s true update couldn’t be happen
Encountered the same problem. Dashboard was loading fine, just the Themes and plugins sections were really slow.
Found out that it was just a DNS problem after checking with nslookup, which gave me this :
instead of my actual ip adress.
Solved it by doing this :
Try to ping wordpress.org, put dns entry in /etc/resolv.conf
Edit
wp_config.php
and add the following piece of code to the buttom of the file:That should allow plugins and themes installation directly from the online repository.
Go to This page download the plugin zip file and install it then activate it.
Go to your WordPress Dashboard, click WPCF Editor, Open Tab Proxy.
Set your HTTP Proxy.
At least it works on mine.
Just define your site URL in the
wp_config
file, example:This is how my issue fixed.
Step1: Go to Cpanel
Step2: Click on “File Manager”
Step3: Open “Wp-config.php” in edit mode.
Step4: Paste this line
define('WP_HTTP_BLOCK_EXTERNAL', false);
at the end.Step5:Save the file
Now check your
http://yourdomain.com/wp-admin/
Dashboard – i Guess it will be fixed.